Subqueries in a FROM Clause (Derived Tables)
Use a subquery as a temporary table. Derived tables allow you to select from the result set of another query within the FROM clause.
ORACLE mode
Correlation Column List
Examples
CREATE TABLE student (name CHAR(10), test CHAR(10), score TINYINT);
INSERT INTO student VALUES
('Chun', 'SQL', 75), ('Chun', 'Tuning', 73),
('Esben', 'SQL', 43), ('Esben', 'Tuning', 31),
('Kaolin', 'SQL', 56), ('Kaolin', 'Tuning', 88),
('Tatiana', 'SQL', 87), ('Tatiana', 'Tuning', 83);Last updated
Was this helpful?

