Collections:
Use Subqueries with the IN Operator in Oracle
How To Use Subqueries with the IN Operator in Oracle?
✍: FYIcenter.com
A subquery can be used with the IN operator as "expression IN (subquery)". The subquery should return a single column with one or more rows to form a list of values to be used by the IN operation. The following tutorial exercise shows you how to use a subquery with the IN operator:
SQL> SELECT first_name, last_name FROM employees 2 WHERE department_id IN ( 3 SELECT department_id FROM departments 4 WHERE location_id = 1700 5 ); FIRST_NAME LAST_NAME -------------------- ------------------------- Steven King Neena Kochhar Lex De Haan Nancy Greenberg Daniel Faviet John Chen Ismael Sciarra ......
⇒ Use Subqueries with the EXISTS Operator in Oracle
⇐ What Is a Subquery in Oracle
2019-09-27, 2302🔥, 0💬
Popular Posts:
How To Get the Definition of a User Defined Function Back in SQL Server Transact-SQL? If you want ge...
How to execute statements in loops in SQL Server Transact-SQL? How to use WHILE ... loops? You can u...
What are single-byte character string data types supported in SQL Server Transact-SQL? Single-byte c...
How To Convert Numeric Values to Character Strings in MySQL? You can convert numeric values to chara...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...