RE: [GENERAL] date null

From: "Taral" <taral(at)mail(dot)utexas(dot)edu>
To: "ZioBudda" <michel(at)michel(dot)enter(dot)it>, <pgsql-general(at)postgreSQL(dot)org>
Subject: RE: [GENERAL] date null
Date: 1998-10-23 17:57:13
Message-ID: 000801bdfeae$90876980$3b291f0a@taral
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

use IS NOT NULL:

SELECT * from prestito WHERE notifica1 IS NOT NULL OR notifica2 IS NOT NULL
OR notifica3 IS NOT NULL;

I seem to remember that the equality/inequality operators don't work on NULL
right now...

Taral

> -----Original Message-----
> From: owner-pgsql-general(at)postgreSQL(dot)org
> [mailto:owner-pgsql-general(at)postgreSQL(dot)org]On Behalf Of ZioBudda
> Sent: Friday, October 23, 1998 7:47 AM
> To: pgsql-general(at)postgreSQL(dot)org
> Subject: [GENERAL] date null
>
>
> Hi, how can control in a "select" if a date is not null?
> I have this table:
> Table = prestito
> +----------------------------------+------------------------------
> ----+-------+
> | Field | Type |
> Length|
> +----------------------------------+------------------------------
> ----+-------+
> | id_libro | varchar() not null |
> 10 |
> | id_utente | int4 not null |
> 4 |
> | data_prestito | date |
> 4 |
> | data_restituzione | date |
> 4 |
> | n_gg_prestito | int4 not null |
> 4 |
> | notifica1 | date |
> 4 |
> | notifica2 | date |
> 4 |
> | notifica3 | date |
> 4 |
> +----------------------------------+------------------------------
> ----+-------+
>
> and I want to select only tuples in which notifica1 or notifica2 or
> notifica3 are not null.
>
>
> "Il divertimento e' giusto se la scimmia ci prende gusto"
> --
> Pluto Linux Press: http://ziobudda.enter.it/PLP
> --
> Morelli 'ZioBudda' Davide Michel - Member of Pluto Linux User Group
> michel(at)enter(dot)it - http://ziobudda.enter.it/
> Linux Problem? Ask to linux(at)media(dot)dsi(dot)unimi(dot)it
> "/dev/ziobudda: access to /var/tmp/beer denied, use /var/adm/pineapple"
>
>

In response to

  • date null at 1998-10-23 12:47:04 from ZioBudda

Browse pgsql-general by date

  From Date Subject
Next Message G. Anthony Reina 1998-10-23 18:57:36 Reading and writing at the same time
Previous Message Taral 1998-10-23 17:56:16 RE: [GENERAL] select and join