Dbms (Batch A)
Dbms (Batch A)
ROll NO - ET22BTCO099
Batch A
ODD
1. From the following table, write a SQL query to find the name and year of
the movies. Return movie title, movie release year.
2. From the following tables, write a SQL query to find the director of a film
that cast a role in 'Ravan'. Return director first name, last name.
3. From the following table, write a SQL query to find out who was cast in the
movie 'Annie Hall'. Return actor first name, last name and role.
4. From the following table, write a SQL query to find the director who directed
a movie that featured a role in ‘Pathan'. Return director first name, last name
and movie title.
1. From the following table, write a SQL query to find the name and year of
Name Patel RUdra Navinbha SUBJECT -DBMSi
ROll NO - ET22BTCO099
2. From the following tables, write a SQL query to find the director of a film
that cast a role in 'Ravan'. Return director first name, last name.
3. From the following table, write a SQL query to find out who was cast in
the movie 'Annie Hall'. Return actor first name, last name and role.
act_fname char(20),
act_lname char(20),
act_gender char(1));
act_id integer,
mov_id integer,
role char(20));
values(1,'salman','khan','M');
values(2,'priyanka','chopra','F');
Name Patel RUdra Navinbha SUBJECT -DBMSi
ROll NO - ET22BTCO099
values(1,3,'hero');
values(2,5,'heroine');