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 |
gvvardhan
Starting Member
2 Posts |
Posted - 2010-07-06 : 10:38:32
|
Fieldname Abbyy Omni ABBYYPREACE OMNIPREACEHCFA01a 938736124 NULL NULL NULLHCFA01a NULL NULL 938736124 NULLHCFA01a NULL 938736124 NULL NULLHCFA01a NULL NULL NULL 938736124 This my table I need to fetch the values in a single row ie need to omit the null values and get the all the values in a single rowFieldname Abbyy Omni ABBYYPREACE OMNIPREACEHCFA01a 938736124 938736124 938736124 938736124Please anyone can help me Thanks & RegardsVardhan |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2010-07-06 : 11:10:11
|
SELECT FieldName, MAX(Abbyy), MAX(Omni), MAX(ABBYPREACE), MAX(OMNIPREACE)FROM YourTableNameHereGROUP BY FieldName N 56°04'39.26"E 12°55'05.63" |
 |
|
gvvardhan
Starting Member
2 Posts |
Posted - 2010-07-07 : 04:02:36
|
Thanks buddy,Its working...quote: Originally posted by Peso SELECT FieldName, MAX(Abbyy), MAX(Omni), MAX(ABBYPREACE), MAX(OMNIPREACE)FROM YourTableNameHereGROUP BY FieldName N 56°04'39.26"E 12°55'05.63"
Thanks & RegardsVardhan |
 |
|
|
|
|