Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Database in design a s follows;

Sch_Date datetime
Session number
Course text
Faculty_Code text


select * from Tb_SCh_TIme_Table;

from the database results are retrieved it is working fine.

Sch_Date Session Course Faculty_Code

23/1/2013 1 REO GS
23/1/2013 2 PH2 Vb
23/1/2013 3 TASCO CK
24/1/2013 1 CTF SJ



select Sch_Date,Session,Course,Faculty_Code,from Tb_SCh_TIme_Table where Session='1';

when i execute the below query error shows Data Type mismatch in criteria expression.

the below results is not coming.

23/1/2013 1 REO GS
24/1/2013 1 CTF SJ
Posted

select Sch_Date,Session,Course,Faculty_Code from Tb_SCh_TIme_Table where Session='1';

try this
 
Share this answer
 
v2
you have write wrong query. try this

C#
select Sch_Date, Session, Course, Faculty_Code from Tb_SCh_TIme_Table where Session=1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900