Skip to content
Advertisement

Many rows as a result of SELECT SQL

The table consists of the Record and Record author fields. There is an employee table with the Employee and His manager fields. It is necessary to read records from the first table that belong to a specific manager or his employees. I tried like this:

Issued: ORA-01427: single row subquery returns more than one row. How should I fix the request?

Advertisement

Answer

A simple “solution” is to change = to IN:

Or, simply join those table:

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