Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
this is my intput
 
SELECT Tb_Sch_TIme_Table.Sch_Date, Tb_Sch_TIme_Table.Session, Tb_Sch_TIme_Table.Course, Conc("Faculty_Code","Session"[Session],"Tb_Sch_TIme_Table","Sch_Date",[Sch_Date]) AS Faculty_Code
FROM Tb_Sch_TIme_Table
GROUP BY Tb_Sch_TIme_Table.Course, Tb_Sch_TIme_Table.Sch_Date, Tb_Sch_TIme_Table.Session;
 
when i run the above query;
 
output as follows in MS Access;
 
Sch_Date Session Course Faculty_Code
1/12/2013 1 AFF GS,NR
1/13/2013 1 TFC VB

 
select * from Tb_SCh_TIme_Table;
as follows;
 
the above output should match which select * from Tb_SCh_TIme_Table;
 
Sno Sch_Date Session Course Faculty_Code
1 1/12/2013 1 AFF GS
2 1/12/2013 1 AFF NR
3 1/13/2013 1 TFC VB

 
how can i get the ouput.help me
 
the above one is my input and output.
Posted 28-Jan-13 1:12am
Edited 28-Jan-13 1:26am
v2
Comments
Tharaka MTR at 28-Jan-13 8:15am
   
Your question is not clear. Please explain further
RobBranaghan at 28-Jan-13 9:30am
   
I think its because your grouping by on your Select statement, and you're not bringing back the sno field in your select statement. I dont quite understand what you are trying to do with this data. Why are you grouping?
Akbar Ali Hussain at 28-Jan-13 18:01pm
   
Is this similar to your another question which I already answered? http://www.codeproject.com/Questions/534089/InplusMSaccessplustehplusbelowplusisplusnotpluswro
vivek511 at 30-Jan-13 6:27am
   
I found a syntax error on your code "a coma is missing after Session" in tour code SELECT Tb_Sch_TIme_Table.Sch_Date, Tb_Sch_TIme_Table.Session, Tb_Sch_TIme_Table.Course, Conc("Faculty_Code","Session",[Session],"Tb_Sch_TIme_Table","Sch_Date",[Sch_Date]) AS Faculty_Code FROM Tb_Sch_TIme_Table GROUP BY Tb_Sch_TIme_Table.Course, Tb_Sch_TIme_Table.Sch_Date, Tb_Sch_TIme_Table.Session;

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 437
1 sanket saxena 355
2 thatraja 240
3 Abhinav S 216
4 CPallini 215
0 Sergey Alexandrovich Kryukov 8,784
1 OriginalGriff 5,025
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


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