SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other Forums
 Other Topics
 SQL Query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

saa18
Starting Member

1 Posts

Posted - 11/12/2008 :  06:31:48  Show Profile  Reply with Quote
Dear Friends,

Please help me getting soln for the below query.

A table consists of few records, given below, I have to get output in a single row.

ClassName Date Time Description
--------- ------ ------ ------------
K-11 10/10 08:30 Exam Hall
K-11 10/10 09:30 PGP Room
K-11 10/10 10:00 FPM Room
K-12 10/10 10:00 Audioturium


Output I should get as below using single sql command

ClassName 08:00 08:30 09:00 09:30 10:00 10:30
--------- ----- ----- ----- ----- ----- -----
K-11 08:30 09:30 10:00

Thanking you,

With Regards,
Asif

SwePeso
Patron Saint of Lost Yaks

Sweden
30114 Posts

Posted - 11/12/2008 :  06:34:31  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Search PIVOT or CROSS TAB queries.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 11/12/2008 :  06:35:30  Show Profile  Reply with Quote
you may be better off posting this in SQL 2005 or 2000 forums
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30114 Posts

Posted - 11/12/2008 :  06:40:46  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Maybe poster uses MS Access?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 11/12/2008 :  06:43:43  Show Profile  Reply with Quote
Then also there's a seperate forum for MSAccess
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000