Hello,
I'm new to sql server and I have this problem that I need to solve using only subquery. Database used = adventureworks2014.
Code :
Select
p.LastName,
p.FirstName
p.FirstName
From Person.Person p
Where BusinessEntityID IN
(Select
BusinessEntityID
From HumanResources.Employee E
Group by BusinessEntityID,JobTitle
Having sum(VacationHours)<1
)
My issue is that I need to generate lastname, first name, job title and Vacation hours.
Could someone guide me in regards to how to proceed?
Thank you