0% found this document useful (0 votes)
4 views3 pages

Table Creation

The document outlines the creation of a database named 'DBMSLAB' and two tables: 'Employee1' and 'Project'. It includes SQL commands for inserting employee and project data into the respective tables. The employee data consists of five entries, while the project data includes eight entries.

Uploaded by

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

Table Creation

The document outlines the creation of a database named 'DBMSLAB' and two tables: 'Employee1' and 'Project'. It includes SQL commands for inserting employee and project data into the respective tables. The employee data consists of five entries, while the project data includes eight entries.

Uploaded by

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

TABLE CREATION:

create database DBMSLAB ;

use dbmslab;

create table Employee1 (EmpID int(3), EmpFname varchar(20), EmpLname varchar(20), Age int(2),
EmailID varchar(30), PhoneNo int(10), Address varchar(20));

create table Project(ProjectID int(6), EmpID int(3), ClientID int(3), ProjectName varchar(20),
ProjectStartDate date);

INSERTING EMPLOYEE VALUES:

insert into Employee values(1,'Vardhan','Kumar',22,'[email protected]',9876543210,'Delhi');

insert into Employee values(2,'Himani','Sharma',32,'[email protected]',9977554422,'Mumbai');

insert into Employee values(3,'Aayushi','Shreshth',25,'[email protected]',9977555121,'Kolkata');

insert into Employee


values(4,'Hemanth','Sharma',25,'[email protected]',9876545666,'Bengaluru');

insert into Employee values(5,'Swatee','Kapoor',26,'[email protected]',9544567777,'Hyderabad');


INSERTING PROJECT VALUES:

insert into Project values(111,1,3,'Project1','2019-04-21');

insert into Project values(222,2,1,'Project2','2019-02-12');

insert into Project values(333,3,5,'Project3','2019-01-10');

insert into Project values(444,3,2,'Project4','2019-04-16');

insert into Project values(555,5,4,'Project5','2019-05-23');

insert into Project values(666,9,1,'Project6','2019-01-12');

insert into Project values(777,7,2,'Project7','2019-07-25');

insert into Project values(888,8,3,'Project8','2019-08-20');

You might also like