asp.net - SQL query to check for date but ignore blank fields -


i have .asp script runs following sql statement;

set rstmp = customquery("select * sysres_master datediff(day, getdate(), datechkin)<1") 

what returns on webpage record date in "datechkin" field older days date (current). however, if field blank record returned.

how can modify still returns expired record ignores records blank in same?

i consider choosing fields want in select, getting more data necessary first thing performance tune,

if understand question right problem datechkln field too, selecting field want should filter off other fields

if got multiple fields dates, can use coalesce checks nulls (google it)

what database have? mysql?, windows?


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -