Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 23-Jan-13 23:37pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

select Sch_Date,Session,Course,Faculty_Code from Tb_SCh_TIme_Table where Session='1';
 
try this
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

you have write wrong query. try this
 
select Sch_Date, Session, Course, Faculty_Code from Tb_SCh_TIme_Table where Session=1
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 530
1 Sergey Alexandrovich Kryukov 340
2 BillWoodruff 259
3 PIEBALDconsult 230
4 CPallini 220
0 Sergey Alexandrovich Kryukov 10,615
1 Maciej Los 5,354
2 OriginalGriff 5,254
3 CPallini 3,719
4 BillWoodruff 3,476


Advertise | Privacy | Mobile
Web01 | 2.8.141029.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100