Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    9

    Unanswered: oracle query required

    UPDATE t1
    SET t1.H = 'I'
    FROM dbo.ABC AS t1
    INNER JOIN (
    SELECT DISTINCT MIN(A) AS A
    FROM dbo.ABC
    GROUP BY C
    HAVING COUNT(*) > 1
    ) AS x ON x.A = t1.A


    please help me in converting this into oracle

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    PLSQL sucks, doesn't it?

    Code:
    UPDATE t1
    SET t1.H = 'I'
    FROM dbo.ABC AS t1
    WHERE	t1.A in
    	(SELECT MIN(A) AS A
    	FROM dbo.ABC
    	GROUP BY C
    	HAVING COUNT(*) > 1)
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •