Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: UPDATE statement with COUNT( ) as an ANALYTIC
Got my answer (from Tom). Use the MERGE statement (see below). Still a
bit miffed that the original UPDATE doesn't work.
MERGE INTO dropme d1
USING ( SELECT ROWID r,
COUNT( * ) OVER( PARTITION BY object_type ) cnt FROM dropme ) d2
![]() |
![]() |