Uploaded by Mih cuog Nguye

Lab1 DataDefinition

advertisement
Database Lab
LESSION 1: Data definition & insert, update
Content
Goal: To get to know using DBMS
- Install DBMS following installation guide (See ‘Team class->class materials>Referenceà Quick Guide _SQLite_Postgre_MySQL.docx’)
- Create database HR
- Backup & Restore
Pratical works:
- Install DBMS (20’)
- Create dabate HR (See: HR Diagram.png) (45’)
- Insert Data to Database (See.. Exerciseà 1_Insert Rows into Table)(45’)
- Backup & Restore (Administrator Tools)(20’)
SQL Statement
+ CREATE TABLE
https://www.tutorialspoint.com/sql/sql-create-table.htm
+ ALTER TABLE
https://www.tutorialspoint.com/sql/sql-alter-command.htm
+ Data Type
+ Constraints: PRIMARY KEY, FOREIGN KEY, CHECK
See: TEAM CLASS--à Class Materials-> Reference->SQL_Introduction.pdf
TO DO…
• Practical work 1:
Create database HR (See. HR Diagram.png)
Time : 45 minitues
TO DO ..(1)
• Practical work 2:
+. Insert Data to Database (See.. Exerciseà 1_Insert Rows
into Table)(45’)
+ Time: 45 minitues
TO DO ..(2)
• Using Administration Tools
+ Backup & Restore
Download