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!

How not to get a return of 0 and not null

Status
Not open for further replies.

g8orade

Technical User
Aug 24, 2000
92
US
Hi,
Thanks in advance for all the help you guys give us newbies to the forums. I have a query that I am trying to run that is worded now like this "(SELECT (TIMEINSECONDS /3600) WHERE PAYCODENAME ='REG1')AS DAYSHIFT", If there is data to divide it returns the value ok, but its populating the field with the word null. I would like for it to return 0 if possible. How would I accomplish this, I have tried the isnull but am getting an error.
Thanks again,
G8orade
 
[!]IsNull[/!](SELECT (TIMEINSECONDS /3600) WHERE PAYCODENAME ='REG1')[!], 0)[/!] AS DAYSHIFT

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top