Skip to content
Advertisement

Oracle SQL if statement?

how would it be possible to check if a certain value in salesman_id is null, and if it is, assign it to something else (in this case, 0)?

here’s what i’ve wrote up so far:

Advertisement

Answer

I would suggest:

Your query as written would produce non-sensical results. Always use proper, explicit, standard, readable JOIN syntax. Never use commas in the FROM clause.

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