Professional Documents
Culture Documents
Database Systems
(IT-310)
Relational Database Terminology
A relational db contains one or more tables.
Table/Relation: Basic storage structure of
RDBMS
A table contains:
1. Row / Tuple
2. Column / Attribute
a. Primary Key
b. Non-Key Column
c. Foreign Key
3. Field
a. Field with a Null value
Oracle
A (RDBMS) produced and marketed by Oracle
Corporation.
Different versions:
1992: Oracle version 7 appeared with support for referential
integrity, stored procedures and triggers.
2001: Oracle9i with 400 new features, including the ability to read
and write XML documents.
2003: Oracle Database 10g.
2005: Oracle Database 10.2.0.1 — also known as Oracle
Database 10g Release 2 (10gR2) — appeared.
2007: Oracle Corporation released Oracle Database 11g for
Linux and for Microsoft Windows.
SQL, PL/SQL, SQL *Plus
Commit
Rollback Transaction Control
Savepoint
Grant Data Control Language
Revoke (DCL)
Tables
Duplicate rows:
Select deptno from emp;
Eliminating duplicate rows:
Select Distinct deptno from emp;
Displaying table structure:
Desc[ribe] tablename;
Describe dept;