Adm Report
Adm Report
On
MSBTE MUMBAI
Submitted by:
CERTIFICATE
This is to certify that the following students of Third-year AIML Engineering: -
MANADE SAKSHI SHASHIKANT (3109)
KOLEKAR SIDDHI SANTOSH (3110)
BAMANE NEHA RAMESH (3111)
BHOSALE ADITEE SANGRAMSINH (3112)
Has successfully completed Micro-Project of Course Name- Advance Database
Management System (22521) for the academic year 2024-25 as prescribed in the MSBTE
curriculum.
Date:-
1. Rationale 1
2. Aims/Benefits 1
4. Literature Review 1
7. Implementation / Outputs of 3
Micro-Project
8. Skills Developed 3
9. Application of Micro-Project 3
“Execution of SQL Queries Using Advanced Data Types and Structures”
1.0 Rationale:
using advanced data types and structures in SQL queries can lead to improved data integrity,
enhanced query performance, increased flexibility and expressiveness, better support for advanced
analytics, and improved data compression and storage.
2.2 Benefits:
1. Structured Type: Simplifies complex data organization.
2. Type & Table Inheritance: Enables reuse and easy schema updates.
3. Array & Multiset Types: Efficiently handles multiple values in one column.
4. Object Identity: Supports object-oriented data relationships.
5. Reference Types: Simplifies linking between related data objects.
Laptop with
1. MY SQL basic It is used to perform queries
configuration
1. Gathered Information:-
● Researched on structured type, type inheritance & table inheritance , array & mulatiset ,
Object identity & Reference type
● Learned how to write quires for above types.
2. Structured Type:-
A structured type is a user-defined type that consists of multiple attributes. To execute a query using a
structured type.
In the given example and query, Structured Type is used at two main places:
1. Table Creation:
The Address table has multiple attributes (street, city, and zipcode) defined within its structure.
This defines a structured type for addresses, where each address is comprised of a street, city,
and zip code.
2. Data Insertion:
When inserting data into the Address table, multiple structured records (addresses) are being
inserted at once. Each address can be seen as a structured entity composed of its own
attributes.
3. Join Query:
The final SELECT query is joining the Employee table with the Address table using the
address_id. The join is done on the structured types of both tables, allowing you to retrieve
detailed information about each employee along with their associated address details.
Example:-
In the provided example and query, Type Inheritance and Table Inheritance are used as follows:
Table Inheritance is simulated through the relationship between Person and Employee tables,
where Employee references Person via a foreign key (person_id).
Type Inheritance is not used directly since MySQL doesn’t support it. You are instead using
foreign keys to relate tables.
Example:-
4. Array and Multiset types:-
Array and multiset types allow you to store multiple values in a single column.
Arrays:
Multisets:
COUNT(DISTINCT p.id) in both Query 1 and Query 2: This counts the unique
publishers linked to each book, representing multiset behavior by allowing duplicate
associations without considering them multiple times in the count.
Example
5. Object Identity and Reference type :-
Object identity and reference types allow you to store references to objects in a single column.
In the SQL code provided, Object Identity and Reference Types can be understood as
follows:
1. Object Identity:
This refers to how objects (in this case, table rows) are uniquely identified. In relational
databases, object identity is implemented using primary keys.
Student Table: The student_id column acts as the object identity for the Student table,
uniquely identifying each student.
Course Table: The course_id column acts as the object identity for the Course table,
uniquely identifying each course.
Enrollment Table: The combination of student_id and course_id acts as a composite
primary key in the Enrollment table, uniquely identifying each enrollment entry (a
combination of a student and a course).
2. Reference Type:
Reference types are used when one table refers to the identity of another table. This is
implemented using foreign keys.
Enrollment Table:
The student_id column in the Enrollment table is a foreign key that references the
student_id column in the Student table, creating a relationship between students and
enrollments.
The course_id column in the Enrollment table is a foreign key that references the
course_id column in the Course table, creating a relationship between courses and enrollments.
Thus, the Enrollment table is using reference types (student_id and course_id) to refer to
objects in the Student and Course tables, ensuring relational integrity between the entities.
Example
6 .0 Actual Resources Used
Name of Resource used Specification
Sr.no.
2. Software MY SQL
Subject Teacher
Mrs. Amruta Kate