Collections:
Select Some Rows from a Table in Oracle
How To Select Some Rows from a Table in Oracle?
✍: FYIcenter.com
If you don't want select all rows from a table, you can specify a WHERE clause to tell the query to return only the rows that meets the condition defined in the WHERE clause. The following select statement only returns rows that has department name starts with the letter "C":
SQL> SELECT * FROM departments
2 WHERE department_name LIKE 'C%';
DEPARTMENT_ID DEPARTMENT_NAME MANAGER_ID LOCATION_ID
------------- -------------------- ---------- -----------
130 Corporate Tax 1700
140 Control And Credit 1700
180 Construction 1700
190 Contracting 1700
......
⇒ Sort the Query Output in Oracle
⇐ Select Some Columns from a Table in Oracle
2019-12-19, 2938🔥, 0💬
Popular Posts:
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
What is dba.FYIcenter.com Website about? dba.FYIcenter.com is a Website for DBAs (database administr...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...