Subquery in a From clause
- Last Updated: July 25, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- Apache Cassandra 8.0
- Documentation
Subqueries can be used in the From clause in place of table references (table_name).
Example
SELECT * FROM (SELECT * FROM EMP WHERE SAL >
10000) NEW_EMP, DEPT WHERE NEW_EMP.DEPTNO = DEPT.DEPTNO
See also
For more information about subqueries, see Subqueries.