Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

DBMS EXPERIMENT 2 Galgotias University Second year third semester, Lab Reports of Database Management Systems (DBMS)

DBMS EXPERIMENT 2 Galgotias University Second year third semester

Typology: Lab Reports

2019/2020

Uploaded on 11/21/2021

Mayank122001
Mayank122001 🇮🇳

3 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name: Mayank
Section: 6
Admission No.: 20SCSE1010447
EXPERIMENT No. 2
Objective: Study of Data Definition Language Create Table, Alert Table, Drop Table, Rename table.
Theory: The SQL DDL allows specification of not only a set of relations but also information about each
relation, including-
Schema for each relation
The domain of values associated with each attribute.
The integrity constraints.
The set of indices to be maintained for each relation.
The security and authorization information for each relation.
The physical storage structure of each relation on disk.
Syntax:
1. Create Table: -
create table emp1(E_ID int, E_Name char, E_Dept char,E_DOB
date,Salary int);
2. Alter Table: -
alter table emp1 drop column salary;
pf3

Partial preview of the text

Download DBMS EXPERIMENT 2 Galgotias University Second year third semester and more Lab Reports Database Management Systems (DBMS) in PDF only on Docsity!

Section: 6 Admission No.: 20SCSE

EXPERIMENT No. 2

Objective: Study of Data Definition Language – Create Table, Alert Table, Drop Table, Rename table. Theory: The SQL DDL allows specification of not only a set of relations but also information about each relation, including-

  • Schema for each relation
  • The domain of values associated with each attribute.
  • The integrity constraints.
  • The set of indices to be maintained for each relation.
  • The security and authorization information for each relation. The physical storage structure of each relation on disk. Syntax:
  1. Create Table: - create table emp1(E_ID int, E_Name char, E_Dept char,E_DOB date,Salary int);
  2. Alter Table: - alter table emp1 drop column salary;

Section: 6 Admission No.: 20SCSE alter table emp1 add salary int; alter table emp1 modify salary float; alter table emp1 rename column salary to E_salary;