0% found this document useful (0 votes)
62 views

DBMS Project 2024

The document describes a database for a music company. It outlines the main entity types which are musicians, instruments, albums, and songs. It also describes relationships like musicians playing multiple instruments, an instrument being played by multiple musicians, albums containing multiple songs, and a song only appearing on one album.

Uploaded by

jainanubhav018
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)
62 views

DBMS Project 2024

The document describes a database for a music company. It outlines the main entity types which are musicians, instruments, albums, and songs. It also describes relationships like musicians playing multiple instruments, an instrument being played by multiple musicians, albums containing multiple songs, and a song only appearing on one album.

Uploaded by

jainanubhav018
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/ 8

New Delhi Institute of Management

Database Management Systems


Group Project
Project-I
Max Marks: 20
Following is a case study describing the data requirements for a Video Rental Company.
 The video rental company has several branches throughout a country. The data held on each
branch is the branch address made up of street, city, state, and zip code, and the telephone
number. Each branch is given a branch number, which is unique throughout the company.
 Each branch is allocated a number of staff members, including a Manager. The Manager is
responsible for the day-to-day running of a given branch. The data held on a member of staff
is his or her name, position, and salary. Each member of staff is given a staff number, which
is unique throughout the company.
 Each branch has a stock of videos. The data held on a video is the catalogue number, video
number, title, category, daily rental, cost, status, the names of the main actors, and the
director. The catalogue number uniquely identifies each video. However, in most cases, there
are several copies of each video at a branch, and the individual copies are identified using the
video number. A video is given a category such as Action, Adult, Children, Drama, Horror,
or Sci-Fi. The status indicates whether a specific copy of a video is available for rent.
 Before hiring a video from the company, a customer must first register as a member of a
local branch. The data held on a member is the first and last name, address, and the date that
the member registered at a branch. Each member is given a member number, which is unique
throughout all branches of the company.
 Once registered, a member is free to rent videos, up to maximum of ten at any one time. The
data held on each video rented is the rental number, the full name and number of the
member, the video number, title, and daily rental, and the dates the video is rented out and
date returned. The rental number is unique throughout the company.
Attempt the following Questions.

a) Identify the main entity types of the video rental company.


b) Choose the primary keys for each (strong) entity type.
c) Draw an ER diagram for this description.
d) Create the tables as identified from the ERD and insert dummy data into it (at least 10
records in each table).
e) Execute the following SQL queries on the database created above in SQLite:

1. Display details of all the branches of the video rental company.


2. Display the managers at any chosen branch.
3. Display the number of videos available category wise.
4. Display all the customers whose names have ‘o’ as the second character.
5. Display the videos that have been rented.
6. Display the number of videos of each category that are available with the company.
7. Display the list of customers who have rented more than 4 videos.
8. Display details of all videos and the customers to whom they have been rented.
9. Display details of all customers registered with branches in Delhi.
10. Display details of all staff members whose salary is greater than the salary of the manager.
11. Display details of all videos including those that have been rented and for the rented videos
display the details of customers.
12. Display details of Branch managed by Manager “Arun”.
13. Display number of videos rented category wise.
14. Display the videos rented in the month of JANUARY.
15. Display the minimum and maximum salary paid by the company.
16. Display the minimum and maximum salary paid branch wise.
17. Display the details of videos which have been rented and those that have not been rented
through an additional field rental status.
18. Display the total earning of the company from video renting.
19. Display the most liked video.
20. Display the most profitable customers.
21. Which is the most profitable branch?
22. Which is the most liked video?
23. Create a fortnightly report to show the performance of the company. Include the parameters
as per your choice to be part of this report.
24. Create a list of the top performing managers and the worst performing managers.
25. Which branch is getting losses?

Instructions:
 The Group Project is part of the Internal Assessment and carries 20 marks.
 Form groups of five students each.
 The project is to be submitted in Soft copy by 6th April 2024.
 The Project submission will be followed by a viva.
New Delhi Institute of Management
Database Management Systems
Group Project
Project-II
Max Marks: 20
Following is a case study describing the data requirements for an ArtBase company, that builds a
product for art galleries and the information that galleries need to maintain.
 Galleries keep information about artists, their names (which are unique), birthplaces, age
and style of art.
 For each piece of artwork, the artist, the year it was made, its unique title, its type of art
(e.g., painting, lithograph, sculpture, photograph), and its price must be stored.
 Pieces of artwork are also classified into groups of various kinds, for example, portraits,
still lifes, works by Picasso, or works of the 19th century; a given piece may belong to
more than one group. Each group is identified by a name (like those just given) that
describes the group.
 Finally, galleries keep information about customers. For each customer, galleries keep
that person’s unique name, address, total amount of dollars spent in the gallery (very
important!), and the artists and groups of art that the customer tends to like.
Attempt the following Questions.

a) Identify the main entity types of the video rental company.


b) Choose the primary keys for each (strong) entity type.
c) Draw an ER diagram for this description.
d) Create the tables as identified from the ERD and insert dummy data into it (at least 10
records in each table).
e) Execute the following SQL queries on the database created above in SQLite:
1. Display details of all the galleries managed by Artbase company.
2. Display the details of all artists.
3. Display the details of all artworks whose information is available with the company.
4. Display the details of the number of artworks according to their types.
5. Display the number of paintings available group wise.
6. Display the list of customers of the company.
7. Display the list of details of customers and the painting purchased by them.
8. Display the total money spent customer wise.
9. Display the details of customers who have purchased artwork any apart from their known
interest area.
10. Display the number of paintings in the gallery for each artist.
11. Display the artists whose maximum paintings have been sold and the one whose
minimum paintings have been sold.
12. Arrange the data of the customers with most profitable customer on top.
13. Show the number of customers purchasing the painting of the artist who belongs to the
same city/area.
14. Pieces of artwork are also classified into groups of various kinds, for example, portraits,
still lifes, works by Picasso, or works of the 19th century; a given piece may belong to
more than one group, give a list of all such artwork.
15. Display the most popular artwork.
16. Display the most popular category of artwork.
17. Display the details of the customer who visits the gallery most often.
18. Display the details of artwork belonging to the 19th Century.
19. Display the most profitable customers.
20. Which is the most profitable gallery?
21. Create a fortnightly report to show the performance of the company. Include the
parameters as per your choice to be part of this report.
22. Create a list of the best three artwork and the worst three artwork.
23. Which gallery is getting losses?

Instructions:
 The Group Project is part of the Internal Assessment and carries 20 marks.
 Form groups of five students each.
 The project is to be submitted in Soft copy by 6th April 2024.
 The Project submission will be followed by a viva.
New Delhi Institute of Management
Database Management Systems
Group Project
Project-III
Max Marks: 20
Notown Records has decided to store information about musicians who perform on its albums
(as well as other company data) in a database. The company has wisely chosen to hire you as a
database designer.
 Each musician that records at Notown has an SSN, a name, an address, and a phone number.
Poorly paid musicians often share the same address, and no address has more than one
phone.
 Each instrument used in songs recorded at Notown has a unique identification number, a
name (e.g., guitar, synthesizer, flute) and a musical key (e.g., C, B-flat, E-flat).
 Each album recorded on the Notown label has a unique identification number, a title, a
copyright date, a format (e.g., CD or MC), and an album identifier.
 Each song recorded at Notown has a title and an author.
 Each musician may play several instruments, and a given instrument may be played by
several musicians.
 Each album has a number of songs on it, but no song may appear on more than one album.
 Each song is performed by one or more musicians, and a musician may perform a number of
songs.
 Each album has exactly one musician who acts as its producer. A musician may produce
several albums, of course.
Attempt the following Questions.

a) Identify the main entity types.


b) Choose the primary keys for each (strong) entity type.
c) Draw an ER diagram for this description.
d) Create the tables as identified from the ERD and insert dummy data into it (at least 10
records in each table).
e) Execute the following SQL queries on the database created above in SQLite:
1. Display the details of all musicians who work with Notown Company.
2. Display the details of the musical instruments available with the company.
3. Display the details of albums created by the company.
4. Display the list of songs produced by the company.
5. Display the number of songs in each album.
6. Display the albums that have the maximum and the minimum number of songs.
7. Display the number of songs in which each musician has played.
8. Display the musicians who have played for one song only.
9. Display the number of albums produced by each musician.
10. Display the number of musical instruments played in each song.
11. Display the list of instruments and the number of musicians who can play.
12. Display the list of instruments and the associated songs and albums.
13. Display the list of songs played by the same musician
14. Display the most popular musicians.
15. Display the list of songs along with the number of musicians and the instruments showing the
ones with single instruments and single musicians on top.
16. Show the details of instruments that begin with the letter “G”,
17. Show the musicians who play synthesizers and/or guitar.
18. Show the songs in which drums were played.
19. Show the list of table players and the songs recorded by them along with the names of
albums where those songs have appeared.
20. Show the details of albums and songs recorded till date by the company.
21. Show the details of musicians who are also producers and the albums produced by them.
22. Create a fortnightly report to show the performance of the company. Include the parameters
as per your choice to be part of this report.
23. Create a list of the top four albums and the worst 4 albums.

Instructions:
 The Group Project is part of the Internal Assessment and carries 20 marks.
 Form groups of five students each.
 The project is to be submitted in Soft copy by 6th April 2024.
 The Project submission will be followed by a viva.
New Delhi Institute of Management
Database Management Systems
Group Project
Project-IV
Max Marks: 20

Consider the following information about a university database:


 Professors have an SSN, a name, an age, a rank, and a research specialty.
 Projects have a project number, a sponsor name (e.g., NSF), a starting date, an ending date,
and a budget.
 Graduate students have an SSN, a name, an age, and a degree program (e.g., M.S. or Ph.D.).
 Each project is managed by one professor (known as the project’s principal investigator).
 Each project is worked on by one or more professors (known as the project’s co-
investigators).
 Professors can manage and/or work on multiple projects.
 Each project is worked on by one or more graduate students (known as the project’s research
assistants).
 When graduate students work on a project, a professor must supervise their work on the
project. Graduate students can work on multiple projects, in which case they will have a
(potentially different) supervisor for each one.
 Departments have a department number, a department name, and a main office. Departments
have a professor (known as the chairman) who runs the department.
 Professors work in one or more departments, and for each department that they work in, a
time percentage is associated with their job.
 Graduate students have one major department in which they are working on their degree.
 Each graduate student has another, more senior graduate student (known as a student advisor)
who advises him or her on what courses to take.
Attempt the following Questions.

a) Identify the main entity types.


b) Choose the primary keys for each (strong) entity type.
c) Draw an ER diagram for this description.
d) Create the tables as identified from the ERD and insert dummy data into it (at least 10
records in each table).
e) Execute the following SQL queries on the database created above in SQLite:
1. Display the list of Professors in the University.
2. Display the details of the projects undertaken by the professors.
3. Display the number of projects being undertaken by each Professor.
4. Display the students working on each project.
5. Display the list of students and their project supervisors.
6. Display details of students who are working on more than one project and their
corresponding supervisors.
7. Display the list of Professors who are chairman of some department.
8. Display the students and their major department.
9. Display the list of students and their senior advisors.
10. Display the list of students who have the same senior advisor.
11. Display the number of student mentees with each project showing the one with maximum
mentees on top.
12. Display the list of students working on the same projects.
13. Display the list of students and professors in Marketing and Finance departments.
14. Display the projects that will be completed in 2021.
15. Display the most profitable project along with their sponsor and the associated professor(s)
and students.
16. Display the number of projects currently running, the most profitable and the least profitable
projects.
17. List the projects whose budget is more than the average project budget.
18. Display the details of department whose professors have the maximum projects.
19. Display the details of Marketing and Finance Projects.
20. Display the list of students who are not assigned any projects or working on 2 projects.
Instructions:
 The Group Project is part of the Internal Assessment and carries 20 marks.
 Form groups of five students each.
 The project is to be submitted in Soft copy by 6th April 2024.
 The Project submission will be followed by a viva.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy