Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

MCA L13-ADBMS LAB

Practical 1

Aim 1: Implementation of data partitioning to range and list partitioning.

Objective: Understand partitioning concept with range and list partitioning.

Theory: What is partitioning?


Partitioning enables tables and indexes to be subdivided into individual smaller pieces.
Each piece of database object is called partition. Partition has its own name and may have its
own storage characteristics.
Types of partitioning:
1. Range Partitioning: The data is distributed based on a range of values of partitioning key.
2. List Partitioning: The data is distributed based on discrete of list of values of partitioning keys.
Range Partitioning:
create table sales_range4
(
salessalesman_id number(5),
salesman_name varchar2(30),
sales_amount number(10),
sales_date date)
partition by range(sales_date)
(
partition sales_jan2000 values less than(to_date('01/02/2000','dd/mm/yyyy')),
partition sales_fab2000 values less than(to_date('01/03/2000','dd/mm/yyyy')),
partition sales_mar2000 values less than(to_date('01/04/2000','dd/mm/yyyy')),
partition sales_apr2000 values less than(to_date('01/05/2000','dd/mm/yyyy'))
)
;

Ketan Dubey FYMCA SEM-I 06


MCA L13-ADBMS LAB

Practical 2

Aim: implementation of analytical queries like: ROLL_UP, CUBE, ROW_NUMBER, RANK,


DENSE_RANK, LEAD, LAG, FIRST, LAST
Objective: Understand the different types of analytical queries or functions.
Theory:
Analytical Function: analytical function compute an aggregate value based on a group of rows.
They differ from aggregate function in that they return multiple rows for each group.
Systax:
Analytic_function

Aim: Display department id, job, count, sum of salary and group them using rollup function in the
order of department id and job

Theory:

Aim: Display department id, job, count, sum of salary, group them up using cube function in
the order of department id and job
Theory:

Ketan Dubey FYMCA SEM-I 06

You might also like