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 |
|
pavlos
Yak Posting Veteran
59 Posts |
Posted - 2012-02-07 : 20:17:59
|
| Hey guyshere is my query:SELECT I.ItemCode, I.ItemName, i.ItmsGrpCod, i.SellItem, I.QryGroup21, I.QryGroup14FROM SBO_T2LIVE.dbo.OITM AS IWHERE I.ItemName IS NOT NULL AND I.SellItem = 'y' AND I.ItmsGrpCod <> 100 AND I.ItmsGrpCod <> 110 AND I.ItmsGrpCod <> 105 AND I.QryGroup14 = 'y' OR I.QryGroup21 = 'y'This however still brings up null values in the itemname column. when i go..SELECT I.ItemCode, I.ItemName, i.ItmsGrpCod, i.SellItem, I.QryGroup21, I.QryGroup14FROM SBO_T2LIVE.dbo.OITM AS IWHERE I.ItemName IS NOT NULLit will not bring up null values but i can't filter out my other items. |
|
|
singularity
Posting Yak Master
153 Posts |
Posted - 2012-02-07 : 20:26:30
|
| [code]SELECTI.ItemCode,I.ItemName,i.ItmsGrpCod,i.SellItem,I.QryGroup21,I.QryGroup14FROMSBO_T2LIVE.dbo.OITM AS IWHEREI.ItemName IS NOT NULLANDI.SellItem = 'y'ANDI.ItmsGrpCod <> 100ANDI.ItmsGrpCod <> 110ANDI.ItmsGrpCod <> 105AND(I.QryGroup14 = 'y'ORI.QryGroup21 = 'y')[/code] |
 |
|
|
pavlos
Yak Posting Veteran
59 Posts |
Posted - 2012-02-07 : 20:35:03
|
| cheers mate,knew it was something simple! |
 |
|
|
|
|
|
|
|