Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no nulls in query... 1

Status
Not open for further replies.

adsfx

Programmer
Jun 4, 2003
237
GB
have sql-

SELECT tbl_equipment.equipID, tbl_equipment.equippctcp
FROM tbl_equipment
ORDER BY tbl_equipment.equippctcp;

how do i make not display nulls?

cheers MG
 
display blanks instead

SELECT IIF(ISNULL(equipID),' ',equipID) as ID
, IIF(ISNULL(equippctcp),' ',equippctcp) as ctcp
FROM tbl_equipment
ORDER
BY equippctcp

or else drop any row from the output that has a null

SELECT equipID
, equippctcp
FROM tbl_equipment
WHERE equipid IS NOT NULL
and equippctcp IS NOT NULL
ORDER
BY equippctcp


rudy
 
r937- brilliant wish i could write sql with style...am learning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top