You are on page 1of 3

M.C.A.

PRACTICAL END SEMESTER EXAMINATIONS, APRIL/MAY 2022

Second Semester

MC4211 - ADVANCED DATABASE TECHNOLOGY LABORATORY

(Regulations2021)

Time : 3 Hours Answer any one Question Max. Marks 100

Aim/Tools/ Tabulation/Algorit Output & Viva-Voce Record Total


required/Procedure hm/Program Results
20 40 20 10 10 100

a. Create an employee database with the fields: {eid, ename, dept, desig, salary, yoj, address{dno,street, locality,
city}} using MongoDB
(i). Display all the employees with salary in range (50000, 75000)
(ii). Display all the employees with desig developer
(iii). Add an array field project to “Rahul”
1. (iv). Add a new embedded object “contacts” with “email” and “phone” as array objects to “Rahul” (80)
b. Record (10)
c. Viva- Voce (10)
Create Database and do CRUD operations, Indexing and Sharding for Library information system (80)
2. b. Record (10)
c. Viva- Voce (10)
a .Create Student Database in Cassandra and do CRUD Operations with CQL Types (80)
3. b. Record (10)
c. Viva- Voce (10)
a. Create Keyspace university in Cassandra: Create, Alter, Drop and replication (80)
4. b. Record (10)
c. Viva- Voce (10)
a. Create and Implement Employee Database in HIVE and do all operations in Hadoop Environment
(80)
5. b. Record (10)
c. Viva- Voce (10)
a. Create Company database and insert 10 customers details then do Horizontal and vertical
Partitioning the table using Hive (80)
6. b. Record (10)
c. Viva- Voce (10)
a.Create a simple database for social networking platform with the three entities (users, friends, users_profile)
and perform the following operations using MYSQL. (80)
i) To create table with fields of appropriate data types.
ii) To verify the table created using DESCRIBE command.
iii) To Insert 10 users and some friendship data in friends table.
iv) To Add ‘gender’ field of type Char(1), Allow Null values for this field.
7. v) To Rename friends table to user_friends.
vi) To Modify the dob field type to date_of_birth.
vii) To Remove the fields is_active.
viii) To Drop the table users_profiles.
b. Record (10)
c. Viva- Voce (10)

Page 1 of 3
a. Create a table to store the details of a customer in a Bank. Do some transactions like withdrawal, deposit.
Find the Balance amount (Credit Limit). Based on customer’s credit limit, write a program using IF or CASE
flow control statements to find the customer levels namely SILVER, GOLD or PLATINUM using MYSQL.
If the credit limit is
8. - Greater than 50K then the customer level is PLATINUM.
- Less than 50K and greater than 10K, then the customer level is GOLD.
- Less than 10K then the customer level is SILVER. (80)
b. Record (10)
c. Viva- Voce (10)
a. Create a user for Replication in MySQL for Distributed Databases (80)
9. b. Record (10)
c. Viva- Voce (10)
a. Use the CREATE TABLE statement to create a table with a spatial column in mysql and use that OpenGIS
classes such as GEOMETRY,POINT,LINESTRING and POLYGON for geotest table (80)
10. b. Record (10)
c. Viva- Voce (10)
a. Create an InnoDB table without any special clauses for Temporal data storage and retrieval using
MySQL (80)
11. b. Record (10)
c. Viva- Voce (10)
a. Implement Object storage and retrieval in MySQL (80)
12. b. Record (10)
c. Viva- Voce (10)
a. Write a simple stored procedure that, given a country code, counts the number of cities for that country that
appear in the city table of the world database. The country code is passed using an IN parameter, and the city
13. count is returned using an OUT parameter using MySQL (80)
b. Record (10)
c. Viva- Voce (10)
a. Create and save an XML document at the server, which contains 10 users information. Write a program
which takes User Id as input and returns the user details by taking the user information from the XML
14. document (80)
b. Record (10)
c. Viva- Voce (10)
a. Create company Databases and retrieve all data in XML USING XSLT (80)
15. b. Record (10)
c. Viva- Voce (10)
a. Create XML Employee Database and convert into XML table using Microsoft Excel. (80)
16. b. Record (10)
c. Viva- Voce (10)
a. Evaluated by XQuery for the following arithmetic expressions (2*3)-(8*7) (80)
17. b. Record (10)
c. Viva- Voce (10)
a. Write XQuery FLWOR Expressions for the following queries on the company.xml document. (80)
(i).Get last names and first names of employees in the "Research" department.
(ii). Get employees who work more than 40 hours.
(iii).Get department names and the total number of employees working in the department.
18. (iv). get last names of employees from Milwaukee along with their income group: “Low Income Group”
(earning < 40000), “Middle Income Group” (earning between 40000 and 60000), and “High Income Group”
(earning more than 80000).
b. Record (10)
c. Viva- Voce (10)

Page 2 of 3
a. Evaluate any XQuery FLWOR expression using various Queries as per your choice. (80)
19. b. Record (10)
c. Viva- Voce (10)
a. Create Web Database and do all the steps evolved in mobile database Query Processing in
MYSQL (80)
20. b. Record (10)
c. Viva- Voce (10)

Page 3 of 3

You might also like