Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Query as follows;


SQL
select Sch_Date,session,Faculty_Code from Tb_SCh_TIme_Table where course =  'cl2';


when i execute the above query,output as follows in Ms access database


Sch_Date	session	Faculty_Code
4/15/2013	1	DM
4/15/2013	2	VRV
4/16/2013	1	VRV
4/16/2013	2	AKR
4/17/2013	1	GS


from the above output i want the output as follows in Ms access database

Sch_Date	session	Faculty_Code    Comments
4/15/2013	1	DM
4/15/2013	2	VRV
4/16/2013	1	VRV
4/16/2013	2	AKR
4/17/2013	1	GS


for getting a above output in my above query how to add the Comments Column.

how can i do? please help me.

Regards,
Narasiman P
Posted
Updated 14-May-13 2:27am
v2
Comments
Johnny J. 14-May-13 7:56am    
You really should try doing your homework yourself!
Maciej Los 14-May-13 17:29pm    
And comments comming from the same table?

1 solution

Just change your SQL statement from

select Sch_Date,session,Faculty_Code from Tb_SCh_TIme_Table where course = 'cl2'; to
SQL
select Sch_Date,session,Faculty_Code, Comments from Tb_SCh_TIme_Table where course = 'cl2';


You just need to add the comments field.
 
Share this answer
 
v2

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