Click here to Skip to main content
15,879,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
select * from table name;

in the table all details are displayed. ok fine.

--course wise query

SQL
select Date,Session,Faculty_Code from Tb_SCh_TIme_Table where Course='REO' order by Date,session


when i run above query for particular course REO i get the ouput.ok fine.

Date Session Faculty_Code

2013-01-07 1 GS
2013-01-07 2 NR
2013-01-07 3 RJ
2013-01-07 4 CM
2013-01-08 1 RK
2013-01-08 2 CM
2013-01-08 3 NR
2013-01-08 4 SJ

But i want the output for All course means how can i do to write the query for all course.

how can i do, for all course details to get the output.

help me.
Posted
Updated 17-Jan-13 3:05am
v2
Comments
Zoltán Zörgő 17-Jan-13 8:30am    
What about not adding where clause?
select Date,Session,Faculty_Code,Course from Tb_SCh_TIme_Table order by Date,session
This is what you have asked for. But I am afraid you want something else, but what?
[no name] 17-Jan-13 9:09am    
Removing where clause will do your work. If your requirement is something different then let us know.

Just remove the WHERE clause:
SQL
SELECT Date,Session,Faculty_Code FROM Tb_SCh_TIme_Table ORDER BY Date,session
 
Share this answer
 
Hi,

Just remove the where condition from the query.
so you can get the all course detail.

SQL
select Date,Session,Faculty_Code from Tb_SCh_TIme_Table order by Date,session


i hope this will help you.
 
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