Professional Documents
Culture Documents
COURSE:-MCA(SE) SEM-1
2. CREATE
DATABASE
EMPLOYEE MANAGEMENT 17-01-22
3. CREATE
DATABASE
AIRLINE MANAGEMENT 24-01-22
USICT DATABASE
Phone_no varchar(20)
);
Create an faculty table with column name
Ques c
Phone_no varchar(20)
);
Create an stream table for CSE/IT/ECE with column name
Ques d
ECE varchar(15));
a Write a query to add a new column DOB with data type varchar
in existing student table.
ALTER table STUDENT ADD D_O_B varchar(10) NOT NULL AFTER State;
query
b Write a query to modify the data type of DOB (varchar to date).
select * from FACULTY where city in (select city from FACULTY where
query F_name='DR.MANOJ');
k Write a query to find out all information of those faculty
members who are teaching other than DBMS or artificial
intelligence subject.
Phone
no
ASSIGNMENT 2
Phone_no varchar(20),
Salary int,
Department varchar(5),
Date_Of_Join date
);
INSERT DATA IN TABLE EMP
QUES2
insert into EMP VALUES ('12116491205','ASHI YADAV','BHOPAL','MADHYA
QUER PRADESH','6392991770','235000','CSE','65-01-02');
Y insert into EMP VALUES ('12116491206','ARPIT JAISWAL','NOIDA','UTTAR
PRADESH','6392451770','135000','ECE','66-01-02');
Date_Of_Journey date,
F_Status varchar(20),
);
Phone_no varchar(20),
Date_Of_Travel date,
primary key (Passport_no)
);
Write a query to find out all information of each traveler with flight number
A
Write a query to find out all fights Delhi to Mumbai on October 20, 2018.
C
select Flight_no,F_name from Flight where Source_City='DELHI' AND
QUER Destination_city='MUMBAI' AND F_Status='AVl' and Date_Of_Journey='18-10-20';
Y
b) Write a query to display details of customer having inner join on Credit Card
Fraud and Cyber Crime.
d) Write a query to display details of Credit Card fraud having left join on Cyber
crime .
e) Write a query to display details where Payment Mode is Online And Card Type is
Visa.