0% found this document useful (0 votes)
5 views9 pages

SQL Assignment 3

The document outlines an assignment for the FYMCA program at SIES College of Management Studies, focusing on data partitioning techniques in databases. It includes tasks for creating and manipulating tables with range, list, and hash partitions, along with specific operations such as inserting data, displaying records, and modifying partitions. The assignment is part of the Advanced Database Management System Lab for the academic year 2024-2025.

Uploaded by

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

SQL Assignment 3

The document outlines an assignment for the FYMCA program at SIES College of Management Studies, focusing on data partitioning techniques in databases. It includes tasks for creating and manipulating tables with range, list, and hash partitions, along with specific operations such as inserting data, displaying records, and modifying partitions. The assignment is part of the Advanced Database Management System Lab for the academic year 2024-2025.

Uploaded by

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

SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,

Roll No: 091

Assignment No. 3 : Partitioning

Implementation of Data partitioning through Range, List and Hash


partitioning

1. Create table emp2426_range having attributes eid NUMBER(5), ename


VARCHAR2(30), salary NUMBER(10), with three range partitions for salary as
partitioning attribute where partition “p1” will contain the records having salary
less than 5000, partition “p2” will contain the records having salary less than
15000 and , partition “p3” will contain the records having salary less than 20000.
Perform the following operations on the created table:

a) Insert data in emp2426_range table such that each partition has atleast two
records.

b) Display data from emp2426_range table.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

c) Display data from each partition.

d) Split the partition “p2” at 10000 into partition “p21” and “p22”.

e) Add the partition “p4” at less than maximum value.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

f) Merge the partition “p21” and “p22” into “p2”.

g) Drop the partition “p4”

2. Create table customer_list2426 having attributes cust_id NUMBER(5),


cust_name VARCHAR2(30), cust_city VARCHAR2(20), balance NUMBER(10)
with four list partitions North, South, East and West taking cust_city as
partitioning attribute and one partition for default values. “North” will contain
Delhi, Lucknow & Chandigarh. “South”will contain Chennai, Bangalore &
Hyderabad. East will contain Bhimapur, Kolkata, Dispur, Gangtok. West will
contain Mumbai, Goa, Nasik & Nagpur.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

a) Insert data into customer_list2426 table.

b) Display data from customer_list2426 table.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

c) Display data from each partition.

d) Display customers with balance less than 10000 and in the "West" region.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

e) Add a new city in the “East” partition.

3. Create table student_hash2426 having attributes stud_id NUMBER(5),


stud_name VARCHAR2(30), stud_city VARCHAR2(20), balance NUMBER(10),
course_id NUMBER(3) with 4 hash partitions by taking course_id as partitioning
attribute.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

a) Insert data in student_hash2426 table.

b) Display data from student_hash2426 table.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

c) Display the table name and partition names in your login.

d) Display data from each partition.

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026
SIES College of Management Studies FYMCA (R-NEP 2020), Sem I,
Roll No: 091

Subject: Advance Database Management System Lab Academic Year : 2024-2025 Batch:2024-2026

You might also like