20mia1128 Da2 Nosql

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

SARVESWARAN M G

20MIA1128
NoSQL DATABASES(CSE3086)
DIGITAL ASSIGNMENT 2

Q. To perform user defined function, user defined types and user defined aggregates by import a
dataset keeping python as frontend

Diabetes dataset which consist information about


• Pregnancies: Number of times pregnant
• Glucose: Plasma glucose concentration a 2 hours in an oral glucose tolerance test
• BloodPressure: Diastolic blood pressure (mm Hg)
• SkinThickness: Triceps skin fold thickness (mm)
• Insulin: 2-Hour serum insulin (mu U/ml)
• BMI: Body mass index (weight in kg/(height in m)^2)
• DiabetesPedigreeFunction: Diabetes pedigree function
• Age: Age (years)
• Outcome: Class variable (0 or 1)

A Key space is created as MIA1128

A table created that contains variables and datatype that is already there in diabetes dataset

The dataset is being imported from local system to perform udf,uda,udt


Created user defined functioin UDF to classify Bmi based on the values along with results
User Defined Aggregates to calculate the average of glucose from dataset with result

User Defined Types

Result
PYTHON FRONTEND

RESULT:

You might also like