MongoDB Assignments (1)
MongoDB Assignments (1)
Queries:
Make sure, you are inserting the names of actors who have acted in
films, given in the ‘Film’ collection.
-----X-----
Assignment 2:
a. Employee ID
b. First Name
c. Last Name
d. Email
e. Phone No.
f. Address (House No, Street, City, State, Country, Pin-code)
g. Salary
h. Designation
i. Experience
j. Date of Joining
k. Birthdate
a. Transaction Id,
b. Transaction Date
c. Name (First Name of employee who processed the transaction)
d. Transaction Details (Item Id, Item Name, Quantity, Price)
e. Payment (Type of Payment (Debit/Credit/Cash), Total amount paid,
Payment Successful)
f. Remark (Remark field can be empty.)
Queries:
----X-----
Assignment 3:
Note: It is expected that student should fill in the data relevant to the queries
given in the assignment. The result set should not be empty.
1. Find the titles of all the films starting with the letter ‘R’ released during
the year 2009 and 2011.
2. Find the list of films acted by an actor "___________".
3. Find all the films released in 90s.
4. Find all films belonging to “Adventure” and “Thriller” genre.
5. Find all the films having ‘A’ rating.
6. Arrange the film names in ascending order and release year should be in
descending order.
7. Sort the actors in ascending order according to their age.
8. Find movies that are comedies or dramas and are released after 2013.
9. Show the latest 2 films acted by an actor “_________”.
10. List the titles of films acted by actors “________” and “___________”.
11. Retrieve films with an actor living in Spain.
12. Retrieve films with actor details.
-----X-----
Assignment 4:
Note: It is expected that student should fill in the data relevant to the queries
given in the assignment. The result set should not be empty.
-----X-----
Prepared by: