0% found this document useful (0 votes)
8 views12 pages

Adm Report

practical material

Uploaded by

kolekarsiddhi056
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views12 pages

Adm Report

practical material

Uploaded by

kolekarsiddhi056
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

A

Micro Project Report

On

“Execution of SQL Queries Using Advanced Data Types and Structures”


IN FULFILLMENT OF DIPLOMA IN AIML ENGINEERING OF

MSBTE MUMBAI

Submitted by:

1. MANADE SAKSHI SHASHIKANT (3109)


2. KOLEKAR SIDDHI SANTOSH (3110)
3. BAMANE NEHA RAMESH (3111)
4. BHOSALE ADITEE SANGRAMSINH (3112)

Program name: Artificial Intelligence and Machine Learning

Course name: Advance Database Management System (22521)

Subject Teacher: Mrs. Amruta Kate

Department of AIML Engineering

Shree Swami Vivekanand Shikshan Sanstha’s

Dr. BAPUJI SALUNKHE INSTITUTE OF ENGINEERING AND TECHNOLOGY


KOLHAPUR
Academic Year 2024-2025
Dr. BAPUJI SALUNKHE INSTITUTE OF ENGINEERING AND
TECHNOLOGY’s

Academic Year 2024-2025

Maharashtra State Board of Technical Education, Mumbai

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:-

SUBJECT TEACHER HOD PRINCIPAL


MRS. AMRUTA KATE MR. A.A. PARITEKAR DR.MR.S.G.SAPATE
INDEX
Sr.No. Contents Page No.

1. Rationale 1

2. Aims/Benefits 1

3. Course Outcomes Achieved 1

4. Literature Review 1

5. Actual Methodology Followed 2

6. Actual Resources Used 2

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.0 Aims/Benefits of the Micro-Project


2.1Aim:
Execute queries in SQL using - structured type, type inheritance and table
inheritance, array and multiset types, object identity and reference types

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.

3.0 Course Outcomes Addressed:


1. Differentiate various database architecture.

4.0 Literature Review:


Sr. No Searched Information/Specification
Software used Resources used

Laptop with
1. MY SQL basic It is used to perform queries
configuration

2. Web Laptop with Understanding of structured


Browser basic type,type&table
inheritance,array&multiset,object identity,
configuration
reference type
5.0 Actual Methodology Followed:

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:-

3.Type Inheritance and Table Inheritance :-


 Type inheritance allows you to create a new type that inherits the attributes of an existing type.
 Table inheritance allows you to create a new table that inherits the columns of an existing
table.

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:

 GROUP_CONCAT(DISTINCT p.name SEPARATOR ', ') in Query 1: This


simulates an array by concatenating unique publisher names into a single string.
 JSON_ARRAYAGG(DISTINCT p.name) in Query 2: This creates a true JSON
array of unique publisher names for each book.

 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.

1. Computer system 1TB storage, 8GB RAM, Windows 11,i5

2. Software MY SQL

3. Reference Links https://www.cs.purdue.edu/homes /cs590/dbm/lectures/09-objdb

7.0 Skill Developed / Learning Outcome of this micro-project:-


 Understanding of Advanced Data Types and Structures
 Ability to Execute Queries using Advanced Data Types and Structures
 Improved Data Modeling and Design Skills
 Enhanced Query Writing Skills

8.0 Application of this Micro-Project:-


 Execution of SQL Queries Using Advanced Data Types and Structures have various
application as follows
 Database Design and Development.
 Data Warehousing and Business Intelligence.
 Big Data Analytics, Web Development.
 Cloud Computing, Healthcare systems.

Name of team members with roll numbers:-


1. Sakshi Sakshikant Manade (3109)
2. Siddhi Santosh Kolelar (3110)
3. Neha Ramesh Bamane (3111)
4. Aditee Sangramsinh Bhosale (3112)

Subject Teacher
Mrs. Amruta Kate

You might also like