0% found this document useful (0 votes)
1 views

Database 1st Lab Notes

The document outlines the layers of a Database Management System (DBMS), including physical, logical, and external layers, and describes the structure of tables within a database. It details the SQL language components, including Data Definition Language (DDL), Data Manipulation Language (DML), Data Control Language (DCL), and Transaction Control Language (TCL), along with their respective commands. The document emphasizes the importance of keys in establishing relationships between tables and the role of table spaces in logical storage.

Uploaded by

Ai Cha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Database 1st Lab Notes

The document outlines the layers of a Database Management System (DBMS), including physical, logical, and external layers, and describes the structure of tables within a database. It details the SQL language components, including Data Definition Language (DDL), Data Manipulation Language (DML), Data Control Language (DCL), and Transaction Control Language (TCL), along with their respective commands. The document emphasizes the importance of keys in establishing relationships between tables and the role of table spaces in logical storage.

Uploaded by

Ai Cha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Database 1st Lab Notes

DBMS Layers :

Layer Definition
Physical where the data is stored (table spaces)
layers
Logical schema of this stored data (the keys , relationships between tables ,
Layers constraints...)
External how to use this database
Layers

Table : 'structure de base' , it orgnizes data into rows and columns


each table represents an entity , columns are attributes and rows are
instances
Tables can be related to one another using keys :
- primary key : the main identifier of that one table (id ect )
- foreign key : links between two entities
Logical storage : table spaces , which are the .data files in our device . all database
objects are stored in table space

SQL language :
used to interact with oracle database , which is composed of commands
DDL (data DML (data DCL(data TCL(Transaction
definition manipulation control control Language)
Language) language) language)
- CREATE - INSERT(adds (control - COMMIT (saves all
- ALTER rows to table) acess to changes permenantly)
- DROP(deletes - DELETE database) - ROLLBACK (Reverts
database objects) - UPDATE - GRANT all changes made in the
- TRUNCATE (update existing (Provides transaction to the last
(removes all rows data in a table) privileges to commit.)
but keeps structure - MERGE users or roles)
fro future use) -REVOKE
- RENAME (remove
- COMMENT priviledge)

You might also like