Ask a Question related to ASP Database, Design and Development.
-
McKirahan #1
SQL question re WHERE usage anf Date/Time
Using MS-Access with "myDate" defined as a Date/Time field, how do I use SQL
to select only those records (rows) that have have nothing in this field?
The following does not work:
SELECT myFields FROM myTable WHERE myDate = ''
This gives me the opposite of what I want
SELECT myFields FROM myTable WHERE myDate <> Null;
but this returns nothing:
SELECT myFields FROM myTable WHERE myDate = Null;
Thanks in advance.
McKirahan Guest
-
CFMX7.0.1 Administrator date time issue showing 13hrsbehind server time
I am running a W2k SP4 box that has been upgraded from CFMX6 to CFMX7.0.1. The CFMX7.0.1 server is showing the date on the Server Settings >... -
Date Time question
Hello I search SQL DB and display results to an APS.Net page using <asp:repeater /> One of the columns is a Date in the Database SmallDate . ... -
Simple Dumb Question - Null for Date/Time Field
using cf mx ms sql 2000. i have an update form that contains a field for date a procedure was signed. the problem is if the procedure was not... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
Time/Date format and changing time to GMT
Hi All, Sorry if this is the wrong newsgroup to post into, on this topic, if so, please point me in the right direction..... Currently working... -
Bob Barrows [MVP] #2
Re: SQL question re WHERE usage anf Date/Time
McKirahan wrote:
Almost.> Using MS-Access with "myDate" defined as a Date/Time field, how do I
> use SQL to select only those records (rows) that have have nothing in
> this field?
>
> The following does not work:
>
> SELECT myFields FROM myTable WHERE myDate = ''
>
>
> This gives me the opposite of what I want
>
> SELECT myFields FROM myTable WHERE myDate <> Null;
>
> but this returns nothing:
>
> SELECT myFields FROM myTable WHERE myDate = Null;
>
>
SELECT myFields FROM myTable WHERE myDate IS Null;
Bob Barrows
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
McKirahan #3
Re: SQL question re WHERE usage and Date/Time
"McKirahan" <News@McKirahan.com> wrote in message
news:LM%zc.115160$Ly.27189@attbi_s01...SQL> Using MS-Access with "myDate" defined as a Date/Time field, how do I use> to select only those records (rows) that have have nothing in this field?
>
> The following does not work:
>
> SELECT myFields FROM myTable WHERE myDate = ''
>
>
> This gives me the opposite of what I want
>
> SELECT myFields FROM myTable WHERE myDate <> Null;
>
> but this returns nothing:
>
> SELECT myFields FROM myTable WHERE myDate = Null;
>
>
> Thanks in advance.
The following worked:
SELECT myFields FROM myTable WHERE Not IsDate(DateChanged)
Is there something better (or different)?
McKirahan Guest
-
McKirahan #4
Re: SQL question re WHERE usage anf Date/Time
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:uei7es8UEHA.3512@TK2MSFTNGP12.phx.gbl...Thanks!> McKirahan wrote:> Almost.> > Using MS-Access with "myDate" defined as a Date/Time field, how do I
> > use SQL to select only those records (rows) that have have nothing in
> > this field?
> >
> > The following does not work:
> >
> > SELECT myFields FROM myTable WHERE myDate = ''
> >
> >
> > This gives me the opposite of what I want
> >
> > SELECT myFields FROM myTable WHERE myDate <> Null;
> >
> > but this returns nothing:
> >
> > SELECT myFields FROM myTable WHERE myDate = Null;
> >
> >
> SELECT myFields FROM myTable WHERE myDate IS Null;
>
> Bob Barrows
>
>
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
McKirahan Guest



Reply With Quote

