Answers for "what is correlated subquery in sql server"

SQL
0

correlated subqueries in microsoft sql server

USE AdventureWorks2016;
GO
SELECT DISTINCT c.LastName, c.FirstName, e.BusinessEntityID 
FROM Person.Person AS c JOIN HumanResources.Employee AS e
ON e.BusinessEntityID = c.BusinessEntityID 
WHERE 5000.00 IN
    (SELECT Bonus
    FROM Sales.SalesPerson sp
    WHERE e.BusinessEntityID = sp.BusinessEntityID) ;
GO
Posted by: Guest on November-05-2020

Code answers related to "what is correlated subquery in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language