Do you mean... SELECT T.* FROM Tenders T WHERE (T.Date_Closing IS NULL) or (T.Value IS NULL) or ((T.Date_Closing BETWEEN DateA and DateB) and (T.Value IS NULL))
On Wed, Oct 17, 2012 at 7:47 AM, Nols Smit <[email protected]> wrote: > ** > > > Hi, > > I have a table, let's call it TENDERS. It has the following fields: ID, > Date_Closing, Value (ID is the pimary key). > > How do I select the the records in TENDERS where either Date_Closing or > Value or both is null but also including those records where Date_Closing > is not null and Date_Closing is between DateA and DateB and Value is null ? > > Regards, > > Nols Smit > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] ------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Visit http://www.firebirdsql.org and click the Resources item on the main (top) menu. Try Knowledgebase and FAQ links ! Also search the knowledgebases at http://www.ibphoenix.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
