N
Nak
Hi there,
I am trying to perform date searching in a database via SQL commands. I
want to be able to retrieve items before, equal, and after a sepecific date.
The only way I can think of doing the before or after comparrisons are via
VB.NET's "ORELSE" keyword, is there an SQL equivilent?
For example
YEAR(dateissued)<2004 ORELSE MONTH(dateissued)<10 ORELSE
DAY(dateissued)<12
This way it would jump out when the largest denominator (so to speak) is
before the sepcified date. Though the above does not work (as I suppose
ORELSE isn't an SQL operator?). Anyway, does anyone know of a quick way to
achieve this? Thanks loads in advance, much appreciated!
Nick.
I am trying to perform date searching in a database via SQL commands. I
want to be able to retrieve items before, equal, and after a sepecific date.
The only way I can think of doing the before or after comparrisons are via
VB.NET's "ORELSE" keyword, is there an SQL equivilent?
For example
YEAR(dateissued)<2004 ORELSE MONTH(dateissued)<10 ORELSE
DAY(dateissued)<12
This way it would jump out when the largest denominator (so to speak) is
before the sepcified date. Though the above does not work (as I suppose
ORELSE isn't an SQL operator?). Anyway, does anyone know of a quick way to
achieve this? Thanks loads in advance, much appreciated!
Nick.