Intermediate SQL Server
Ginger Grant
Instructor
FROM
clauseSELECT a.* FROM Kidney a
-- This derived table computes the Average age joined to the actual table
JOIN (SELECT AVG(Age) AS AverageAge
FROM Kidney) b
ON a.Age = b.AverageAge
Intermediate SQL Server