Skip to content
Advertisement

Optimizing select union select oracle

I had an interview recently and the recruiter told me to make a query on a table USERS with two fields (name, age) which should return a list with two columns | NAME | MAJOR OR MINOR |

My response was this :

Then, he told me that is correct, but we can do better!

So, my question is: How to do it in a better way?

Thank you in advance 🙂

Advertisement

Answer

I presume

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement