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 |
|
sqlontherun101
Starting Member
16 Posts |
Posted - 2009-10-10 : 00:53:25
|
| Hi, In the following query i've tried to display Color gategories and how many time it was added to Product tableSELECT Color, COUNT(Color) FROM SalesLT.Product GROUP BY ColorThe result came as follows:NULL 0Black 89Blue 26Grey 1Multi 8Red 38Silver 36Silver/Black 7White 4Yellow 36I need to remove the NULL value at teh top of the list, how do i do this?TY in advance |
|
|
Kabila
Starting Member
33 Posts |
Posted - 2009-10-10 : 01:03:54
|
| SELECT Color, COUNT(Color) FROM SalesLT.Product where color is not nullGROUP BY Color |
 |
|
|
|
|
|