SQL 2023 · Joins and combining queries

Filter with a subquery

Use one query's result inside another.

SELECT * FROM products WHERE price > (SELECT AVG(price) FROM products);

Official SQL 2023 documentation

More joins and combining queries commands

All joins and combining queries commands · SQL 2023 cheatsheet

Was this page helpful?