Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

SELECT syntax

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

Subqueries are not supported in a SELECT list and the PERCENT argument is not supported in the TOP clause.

Examples

Example A

The nested SELECT statement in the following statement is not supported.

SELECT
(SELECT a.empno FROM emp a WHERE a.deptno = b.deptno)
FROM
dept b

Example B

The PERCENT argument is not supported in a TOP clause.

SELECT TOP 10 PERCENT * FROM emp ORDER BY sal desc

Example C

The TOP clause is not supported in UNION queries and subqueries.

SELECT TOP 3 empno FROM emp UNION SELECT deptno FROM dept;
SELECT * FROM emp WHERE deptno IN (SELECT TOP 2 deptno FROM dept);
TitleResults for “How to create a CRG?”Also Available inAlert