Database Tuning (MOSC)

MOSC Banner

Need help with MERGE statement

edited Jan 7, 2011 12:47AM in Database Tuning (MOSC) 5 commentsAnswered
 Hi all, We are doing a code conversion from Sybase to Oracle, and a tool that we use for this purpose is generating an update statement
that is taking a long time. I was checking if I can improve it using the merge statement but am getting stuck due to a 'distinct' keyword. Can someone point out what I am missing? Original query and my equivalent are written below. My query works syntactically but b.ssm_id should not be included in the select distinct' part and so is not functionally equivalent. I want to get an functionally correct equivalent of original query using MERGE.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center