Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> SQL problem

SQL problem

From: Johan Verlinden <jverlinden_at_connect.be>
Date: Thu, 19 Oct 2000 10:18:08 +0200
Message-ID: <8smb0l$qmc$1@news1.skynet.be>

I'd like to adapt the following select-statement so I keep just the first row after each break on tank/phase

select tank,phase,stock from e_workord order by tank,phase,date desc,workord

The table e_workord has the following fields : workord,phase,date,tank,stock.
Can this be done with just SQL (by means of correlated subqueries)?

Thanks,

Johan Verlinden Received on Thu Oct 19 2000 - 03:18:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US