0% found this document useful (0 votes)
8 views1 page

DBMS Lab Sheet - 2 Shared

Uploaded by

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

DBMS Lab Sheet - 2 Shared

Uploaded by

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

Database Management System (DBMS)

Assignment:
1. Create the movie database with the following relation schema where the
primary keys are underlined.

a. Create table movie_list(mid, name, genre, year_made, budget).


b. Add five data to the database table with following data (detail of movies).
c. Retrieve all the information from the above table.
d. Update the genre to action.
e. Delete the data where the genre is thriller.

2. Write database name and draw table with records of 5 clients as per details
given below then write commands/sql query for respective operations in the
database.
a. Create database clients.
b. Create table client_info including columns:
client_id(int), client_name(varchar), client_address(varchar), dateofpurchase(date)
c. Modify the table client_info by adding column contact_info.
d. Modify the table client_info by changing the type varchar of client_address column to
text.
e. Drop the column client_address from the client_info table.
f. Insert at least five records in the client_info table.
g. Display all records from table client_info table.
h. Display record of a client whose id is 3.
i. Display all records from table client_info table in ascending order.
j. Display all records from table client_info table in descending order.
k. Update contact_no of client whose client_id is 1 to 9841999999.
l. Update client_name, client_address, contact_no using update command of at least one
client.

Note: Export the database file before running the following command for backup
of the database.

m. Delete record of a client whose id is 1.


n. Delete all records from the table client_info.
o. Drop the table client_info.
p. Drop the database client.

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