Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
saidev
Posting Yak Master
101 Posts |
Posted - 2006-08-02 : 11:40:40
|
I have to use group by inorder to get the data from two tables(Table1 and Table2). can you guys help me with the query.Table1 Table2Month NameJan Name1 Feb Name2Mar Name3All i want is i need to group by all the names for "Jan" , "Feb" and so on. Expected Result is Month NameDec 05 SouthwestDec 05 Phoenix SunsDec 05 NESNMarch 06 West 2March 06 MSGMarch 06 Yes Network |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-08-02 : 12:06:17
|
Dod you want to concatenate the names?Post your expected resultMadhivananFailing to plan is Planning to fail |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-08-03 : 11:16:26
|
Do you want to return data in order of month names?TrySelect columns from yourTableOrder by monthNameMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|