Click here to Skip to main content
11,634,634 members (67,609 online)
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
(no name)38.1K
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
0 OriginalGriff 8,736
1 Sergey Alexandrovich Kryukov 8,359
2 Mika Wendelius 6,845
3 F-ES Sitecore 2,354
4 Suvendu Shekhar Giri 2,205


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2015
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