Skip to content

ORA-01417: a table may be outer joined to at most one other table

I have this query below for oracle sql: When i execute it, i got ORA-01417: a table may be outer joined to at most one other table. Need help for this error. Answer Please use below query. In the current query, your aggregation is incorrect, you have to use same function as you use in the select query. And ch…

How to joins in oracle based on condition

I have two tables as below: Table Apple: Table KEEY: Desired Output: Code Tried So far: This is giving me : I guess i need to use pivot instead of Union to get both the ids on same row. Have you ever encountered such scenarios? Any pointers to proceed will be very helpful. Thanks in Advance! DDL used for the

Is there a better way to write this gross SQL?

So I’m creating a query for a report that could have several optional filters. I’ve only included client and station here to keep it simple. Each of these options could be an include or an exclude and …

Creating a key value pair table

I have a table with 32 columns whose primary key is play_id and my goal is to create a key value pair table where the output would look like this: play_id, field_name, field_value play_id_1, game_date,…