Sem2_IDC_BCA-124 P Working With Data Using MySQL_revised (1) (1)
Sem2_IDC_BCA-124 P Working With Data Using MySQL_revised (1) (1)
Credits: 2
Course Outcomes:
The aim of this course is to enable students to
Work with database applications.
Prerequisites: No prerequisites
Software’s: MySQL Workbench (Client Side) and XAMPP (Server side)
Contents:
Event(eid,ename,start_date,end_date)
Participants(pid,eid,P_name,gender)
Gender should be ‘M’ or ‘F’ only. And Value for ename should not be null and default value
should be “BIRTHDAY”.
Perform the following queries
a) Count the number of participants where eid=2.
b) Display the number of participants in each gender.
c) Display the records of events where ename begins with ‘B’.
d) Display all event starting between “2022/03/03” and “2022/05/05”
e) Arrange records in ascending order of participant’s name.
Faculty (fid,fname,qualification,salary,cid)
Course(cid,course_name,fees)
Perform the following queries
a) Display the name of courses where fees are greater than 25000.
b) Display the faculty names that begins with letter “A” and ends with letter “v”
c) Display the records of faculties where qualification is “M.COM”.
d) Update the fees of course to 25000 where course_name is “MCA”
e) Delete record of faculty where fid=5.
7. Create a database LIBRARY_DB with the following tables
Set appropriate datatypes and set primary keys and foreign keys. Create relationship between tables
and create E-R Model.
Book_Category(catid,cat_name)
Book_details(bid,bname,publication,author,price,catid)
Perform the following queries
a) Display books where book name begins with letter “P” or “M”.
b) Update price of book “DATABASE” to 2000.
c) Count number of books where publication is “DREAMTECH”
d) Display records book_category table where catid is 1 or 4
e) Display books where publication is “Dreamtech”.
---------------------------------
E-Resources:
1. https://www.w3schools.com/mysql/mysql_sql.asp
2. https://www.javatpoint.com/mysql-workbench
3. https://dev.mysql.com/doc/workbench/en/wb-installing.html