Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Simple SQL question
Hi All,
I'm a beginner so please bear with me on this: I've been using the WITH clause in SELECT statements in 10g, and its a great. However, it cannot be used with UPDATEs, only SELECTs. Does anyone have any tips on how this could be emulated? For example if a subquery S is to be used twice or more, can it be created as some kind of variable, in a single SQL statement? It comes up when finding and then using the max or min values in a group of records.
Thanks,
Dean Received on Thu Jun 23 2005 - 09:03:19 CDT
![]() |
![]() |