Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
64 views5 pages

Create User User - PLSQL IDENTIFIED by User - PLSQL Grant Dba To User - PLSQL

The document contains SQL statements that create tables for students, groups, departments, subjects, and exams in a database. It also inserts sample data for one student. The tables created are: Etudiant to store student data, Groupe for groups, Departement for departments, Matiere for subjects, and Examen for exam results. A user_plsql is granted DBA privileges to access the database.

Uploaded by

NISSEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views5 pages

Create User User - PLSQL IDENTIFIED by User - PLSQL Grant Dba To User - PLSQL

The document contains SQL statements that create tables for students, groups, departments, subjects, and exams in a database. It also inserts sample data for one student. The tables created are: Etudiant to store student data, Groupe for groups, Departement for departments, Matiere for subjects, and Examen for exam results. A user_plsql is granted DBA privileges to access the database.

Uploaded by

NISSEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Create user user_plsql IDENTIFIED by user_plsql;

grant dba to user_plsql;

grant dba to user_plsql;


Create Table Etudiant

( numetd integer primary key

,cin varchar(8)

,prenom varchar2(50)

,nom varchar2(50)

,datenaissance DATE

,ville VARCHAR2(50)

,Moyenne Number

,Codegroupe integer );

Insert into Etudiant(numetd,cin,nom,prenom,datenaissance,ville)

VALUES

(1,'12345678','Boumelal','Khadija',To_date('08/04/1994','dd/MM/yyyy'),'Nefta');
Create Table Groupe

( codegroupe integer primary key

, nomgroupe varchar(200)

, codedep integer );

Create Table Departement

( codedep integer primary key

, nomdep varchar(200));

Create Table Matiere

( codeMat integer primary key

, nomMat varchar(200)

, coefMat integer
, nbreHMat integer

);

Create Table Examen

( codeExamen integer primary key

, dateExamen varchar(200)

, Note number

, Absent integer

, Observations varchar(200)

);

You might also like