Question
Employees(emp_id, name, salary, mgr_id): (1,'Alice',9000,NUL
- L , (2,'Bob',7000,1), (3,'Carol',9500,1), (4,'Dave',6000,2). What does the following self-join query return? SELECT E.name FROM Employees E JOIN Employees M ON E.mgr_id = M.emp_id WHERE E.salary > M.salary;
More SQL Questions
- Which of the following can be used to avoid duplicate entries in a column?
- What is the difference between DELETE, TRUNCATE, and DROP commands in SQL?
- Which clause is used to sort query results in SQL?
- In database management, which SQL command is used to retrieve only unique (non-duplicate) values from a column?
- Which SQL statement is used to add a new column to an existing table?
- Which SQL keyword is used to remove duplicate records from a query result?
- Which command removes all rows but keeps table structure?
- Table Orders(OrderID, CustomerID) has 10 rows with CustomerID values: C1, C1, C2, C3, C1, C2, C4, C2, C3, C1. How many groups (customers) will be returned ...
- Which of the following SQL constructs avoids returning duplicate rows?
- Consider the table Employees(EmpID, Name, Dept, Salary). What will the following SQL query return? SELECT Dept, COUNT(*) FROM Employees GROUP BY Dept HAVI...
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)