background preloader

SQL

Facebook Twitter

A Gentle Introduction to SQL. Oracle SQL Tutorial. Introduction to Databases CODD'S Rules Datatypes and Creating Tables Oracle SQL SELECT Statement UNION, INTERSECT, MINUS Operators and Sorting Query Result Oracle SQL Functions (Character Functions, Math Functions, Aggregate Functions) Oracle Join Queries, (Inner Join, Outer Join, Self Join) GROUP BY Queries, SUB Queries, CUBE, ROLLUP Functions, WITH, CASE Operators Oracle Data Manipulation Language (INSERT, UPDATE, DELETE, INSERT ALL, MERGE) Oracle Data Definiation Language (CREATE, ALTER, DROP, TRUNCATE, RENAME) Oracle Transaction Control Language (COMMIT, ROLLBACK,SAVEPOINT) Data Control Language (GRANT, REVOKE) Oracle Integrity Constraints (PRIMARY KEY, NOT NULL, CHECK, FOREIGN KEY, UNIQUE) Oracle Date Operators, Functions Managing Oracle Views Managing Oracle Sequences and Synonyms Managing Indexes and Clusters Oracle Table Partitioning and Creating Partitioned Tables Oracle Objects and Object Types A database is a collection of Data (Information).

The father of Relational Data Model was Dr. SQL Tutorial. Oracle PL/SQL Tutorial. SELECT. Semantics subquery_factoring_clause The WITH query_name clause lets you assign a name to a subquery block. You can then reference the subquery block multiple places in the query by specifying the query name. Oracle Database optimizes the query by treating the query name as either an inline view or as a temporary table. You can specify this clause in any top-level SELECT statement and in most types of subqueries. Restrictions on Subquery Factoring This clause is subject to the following restrictions: You can specify only one subquery_factoring_clause in a single SQL statement. Hint Specify a comment that passes instructions to the optimizer on choosing an execution plan for the statement. Specify DISTINCT or UNIQUE if you want the database to return only one copy of each set of duplicate rows selected.

Restrictions on DISTINCT and UNIQUE Queries These types of queries are subject to the following restrictions: * (all-column wildcard) select_list query_name table.* | view.* | materialized view expr.