Google Interview Question
1,227 Interview Reviews |
Back to all Google Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer In Test at Google:
You have a database with employees and their hierarquies. Construct an SQL statement to associate each employee with their supervisor.
| Tags: | sql See more , See less 8 |
See more for this Google Software Engineer In Test Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (3)
SELECT Employee.FirstName, Employee.LastName, Employee_1.FirstName AS SupervisorFirst, Employee_1.LastName AS SupervisorLast
FROM Employee INNER JOIN Employee AS Employee_1 ON Employee.ID = Employee_1.Supervisor_ID;
Helpful Answer?
Yes |
No
Inappropriate?
Employee.ID = Employee_1.Supervisor_ID
should be
Employee.Supervisor_ID = Employee_1.ID
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
0 of 0 people found this helpful
by Interview Candidate: