Category: 03. Oracle Query
-
Ordering Results
Example: Explanation: This command retrieves the first_name, last_name, and salary of employees, ordering the results by salary in descending order. If you wanted ascending order, you could use ASC or simply omit it, as it’s the default.
-
Filtering Data with WHERE
Example Explanation: This query selects only the first_name and last_name of employees whose salary is greater than 50,000. The WHERE clause restricts the results to those meeting the condition.
-
Selecting Data
Example: Explanation: This command retrieves all columns and rows from the employees table. The asterisk (*) is a wildcard that represents all columns.
-
Definition of an SQL Query
SQL Query: An SQL query is a request to perform a specific operation on the database, such as retrieving data, inserting new data, updating existing records, or deleting records. In Oracle, SQL (Structured Query Language) is the standard language used to interact with the database.