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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-10-03 : 07:55:01
|
| Rajsekhar writes "Hi, I'm Rajsekhar I have one problem in sqlserver 2000.Problem: I have a product_header table I want to retive the data from this table. condition is I don't want to display the NULL Column I wnat to disply only NOT NULL ColumnsPlz help me outI have written the query likeSELECT distinct name1,dept,design,deptno,officeFROM test1,SysObjects INNER JOIN SYSCOLUMNS ON SYSOBJECTS.ID = SYSCOLUMNS.ID INNER JOIN SYSTYPES ON SYSTYPES.xtype = SYSCOLUMNS.xtypewhere syscolumns.offset is not nullArmba Develpment NULL 10 NULLreamd Develpment NULL 20 NULLereamd rewsf NULL 30 NULLI don't want to display null colsplz help meThank youregardsRajsekhar" |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2005-10-03 : 08:37:39
|
| SELECT distinct name1,dept,design,deptno,officeFROM test1,SysObjects INNER JOIN SYSCOLUMNS ON SYSOBJECTS.ID = SYSCOLUMNS.ID INNER JOIN SYSTYPES ON SYSTYPES.xtype = SYSCOLUMNS.xtypewhere syscolumns.offset is not nullAND OFFICE IS NOT NULLAND DESIGN IS NOT NULL |
 |
|
|
|
|
|