ADBMS Assignment Final
ADBMS Assignment Final
Question 1(MSSQL)
Student
StNo StName Address
Enrol
StNo CourseNo DateEnrol Marks
Course
CourseNo CourseName Credit
Question 2 (Oracle)
1. Write a PL / SQL code to insert four records given below into the two tables
EMP_SALARY_GET10000 and EMP_SALARY_LTE10000 according to the
following criteria.
Criteria: - When inserting into EMP_SALARY_GET10000 table, it should contain records with
salary greater than or equal to 10,000. When inserting data into EMP_SALARY_LTE10000
table, it should contain records with salary less than 10,000.
EMP_NAME EMP_NO SALARY MANAGER
BBB 1000 25000 AAA
XXX 1001 10000 BBB
YYY 1002 10000 BBB
ZZZ 1003 7500 BBB
2. Write a PL / SQL procedure to get Student ID and Student Name of the student who
obtained the highest marks. Use the following table structure.
Table Name: Student
Columns: StudentID, StudentFName, StudenLName, DOB, Marks
3. What are the differences between Functions and a Procedures?
Question 3 (Oracle)
Question 4
Part 1
1. Describe what a NoSQL database is. What are the advantages and disadvantages of
NoSQL database?
2. Explain the Collections and Documents in MongoDB
3. Write a Insert statement to save given below flight details.
[
{
"departureAirport": "MUC",
"arrivalAirport": "SFO",
"aircraft": "Airbus A380",
"distance": 12000,
"intercontinental": true
},
{
"departureAirport": "LHR",
"arrivalAirport": "TXL",
"aircraft": "Airbus A320",
"distance": 950,
"intercontinental": false
}
]
4. Write a NoSQL query to retrieve the flight details where the distance is grater that 10,000
and depature air port equal to “MCU”
5. Write a NoSQL query to delete all the information where aircraft = “Airbus A320” from
your table.
Part 2
Question 5
Part 1
1. What is a mobile database (give four main points that describes a mobile database)?
4. How do you view the database and tables in your SQLite database server.
5. What is the different between LIKE clause and BLOG clause in SQLite?
6. In the customer table given below you have to retrieve 4 records and it should start where
CustomerID = 3. Write a SQLite query to perform the task.
Part 2
EmpID,EName,Address