Professional Documents
Culture Documents
Dbms Lab Cat: Code
Dbms Lab Cat: Code
1. Create the tables with appropriate attributes and enter at least 5 values in each
table.
Code-
address VARCHAR2(25),
netWorth NUMBER(10));
year NUMBER(4),
length VARCHAR2(20),
PRIMARY KEY(title,year),
address VARCHAR2(25),
gender VARCHAR2(1),
birthdate date);
Aakar Gupta(19BCE0379)
movieYear NUMBER(4),
2. Find titles of all movies produced by MGM studio after 1970 or with length less
than 1.5 hours.
3. Title and length in hours of all Disney movies produced in year 1990
Aakar Gupta(19BCE0379)
4. For each movie’s title produce the name of this movie’s producer
6. Find all name pairs in form (movie star, movie producer) that live at the same
address.
7. Find the names of all producers who did NOT produce ‘Star wars’.
Aakar Gupta(19BCE0379)