Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: HELP new to sql min query
Is this what your after :
select cname from cust, rental
where (milesin - milesout) in (select min(milesin - milesout) from rental);
Just one of many methods.
Chris wrote:
> I am trying to return the name value from one table where it equals a min
> amout in another code below but it always come back no rows selected can
> anyone help as i am new to sql
>
> select cname from cust, rental
> where cname in (select min(milesin - milesout) from rental;
Received on Tue Feb 23 1999 - 04:57:12 CST