Re: SQL question
From: Michel Cadot <micadot_at_netcourrier.com>
Date: 2000/02/10
Message-ID: <87u6jc$2uhf$1_at_news4.isdnet.net>#1/1
Date: 2000/02/10
Message-ID: <87u6jc$2uhf$1_at_news4.isdnet.net>#1/1
If you mean which description is equal to TOR for the min value:
select distinct description1, description2, number
from table
where number = ( SELECT MIN(number)
FROM table WHERE description1 = 'TOR' or description2 = 'TOR' )/
-- Have a nice day Michel Curt Ingram <cingramb_at_bigfoot.com> a écrit dans le message : Vxvo4.12743$Mk2.520212_at_newsread2.prod.itd.earthlink.net...Received on Thu Feb 10 2000 - 00:00:00 CET
> given the following query,
>
> SELECT MIN(number)
> FROM table
> WHERE description1 = 'TOR' or description2 = 'TOR';
>
> is there a clean way to know which side of the 'or' statement was satisfied
> ?
>
> Thanks,
> Curt
>
>
>