You are on page 1of 11

ASSIGNMENT 1

Module Code - 19BNA502B


Declaration Sheet
Module
Student Name Name
A G SREE VALLI
- DATA MANAGMENT
Reg. No 20MCMS101001
Programme - MBA
Course MBA Batch Full-Time
Department - MANAGEMENT
Module Code 19BNA502B

Faculty
Module Title
- FACULTY OF MANAGEMENT AND
DATA MANAGMENT
COMMERCE
Module Date to

Module Leader Mrs. R G SHILPA

Name of the A G SREE VALLI (20MCMS101001 )


Student& Reg. No
Declaration
Batch 2020

Module Leader R G SHILPA


The assignment submitted herewith is a result of my own investigations and that I have
conformed to the guidelines against plagiarism as laid out in the Student Handbook. All
sections of the text and results, which have been obtained from other sources, are fully
referenced. I understand that cheating and plagiarism constitute a breach of University
regulations and will be dealt with accordingly.

Signature of the student THANUJA Date

Submission date stamp

(by Examination & Assessment


Section)

Signature of the Module Leader and date Signature of Reviewer and date
Faculty of Management and Commerce

Ramaiah University of Applied Sciences

Department Management Studies Programme MBA in Business Analytics

Semester III Batch 2020

Course Code 19BNA501B Course Title Data Analytics

Course Leader Dr. Chandra Sen Mazumdar

Continuous Evaluation

Reg.No. Name of Student

Mark
s
MarkingSch

MaxMarks
Sections

Evaluato
Second
Marks
eme

RBL
CO

PO

r
DesigningsuitableDatabaseSchemaforanyServiceSectorf
A. orcollectinglargedatasetsefficientlyfromvariedsources 10 3,4 2,4 2,3
1 includingERP.
CreatingassociatedtablesbyusingCreateTableConstruct
A. 8 3,4 2,4 3
bySQLCommands
2
A. Updatingalltablesby inserting2valuesineach table 5 3,4 2,4 3
Assignment

3
Developingrelationshipbetweentablesandnormalizingth
A. edatausing2NF/ 12 3,4 2,4 3
4 3NF.DefiningPrimaryKey,Foreign,KeyandCompositeKeys
forthesame
A. CaseStudyGroupPresentation 15 3,4 2,4 3
5
Assignment– 50
MaximumMarks

SignatureofFirstExaminer SignatureofSecondExaminer
A1 DesigningsuitableDatabaseSchemaforanyServiceSectorforcollectinglargedatasetsefficientlyfromvariedsources

IncludingERP

A.2 Creating associated tables by using Create Table Construct by SQL Commands

createdatabase educationservice
use educationservice

 SQL command for creating studen table:


create table studen
(
id int primary key,
student varchar(30),
email varchar(39),
password_id varchar(50),
dob_date varchar(30),
phone varchar(29),
date_of_join varchar(40),
parent_id varchar(49)
)
insert into studen values
(2,'NDGD','KJEGFDG@GMAIL.COM','45KJHGFG','2000/01/3',0987653567,'4TH
JUNE','MNDVBN')
select *from student
 SQL command for creating parent table:

create table parent


(
id int primary key,
relation varchar(30),
email varchar(39),
password_id varchar(50),
dob_date varchar(30),
phone varchar(29),
)
insert into parent values
(1,'FATHER','NDVDGDJG@GMAIL.COM','45KJHGFG','1978/3',667898767)
select *from parent

insert into parent values


(2,'mother','gqdywhafJG@GMAIL.COM','bfbGFG','1928/3',87764647)

 SQL command for creating course table:

create table course


(
course_id int primary key,
course_name varchar(45),
grade_id varchar(36),
password_id varchar(26)
)
insert into course values (1,'HEG','MAC-10',5678765)

insert into course values (2,'MPC','YEDH-10',3784765)

 SQL command for creating grade table:

create table grade


(
grade_id int primary key,
grade_name varchar(45),
desc_name varchar(36),
grade_details varchar(26)
)
insert into grade values (1,'1st garde','KJDGH','MAX MARKS')

insert into grade values (2,'last grade','KfcgvhbmH','minim marks')


 SQL command for creating classroom table:

create table classroom


(
classroom_id int primary key,
year_no varchar(45),
sttus varchar(36),
remarks varchar(26)
)
insert into classroom values (1,'2ND YEAR','GOOD PERFORMANCE','UPGRADED')

insert into classroom values (2,'3rd YEAR','BAD PERFORMANCE','DONE')

 SQL command for creating attendence table:

create table attendence


(
attend_id int primary key,
date_no varchar(45),
reanrk varchar(36),
student_id varchar(26)
)
insert into attendence values (1,'1ST JAN','NO REMARK','20MCMS101068')

insert into attendence values (2,'2nd jan','NO REMARK','20MCMS101177')

 SQL command for creating exam table:

create table exam


(
exam_id int primary key,
exam_type varchar(45),
dec_place varchar(36),
name_no varchar(26)
)
insert into exam values (1,'FINAL EXAMS','LAST BENCH','SNEHA')

insert into exam values (2,'FINAL EXAMS','FIRST BENCH','SALMAN')


 SQL command for creating teacher table:

create table teacher


(
teacher_id int primary key,
first_name varchar(45),
last_name varchar(36),
phone_no varchar(26),
)

insert into teacher values (2,'SHAM','SINGH','4567987332')

 SQL command for creating exam_results table:

create table exam_results


(
exam_id int primary key,
exam_type_id varchar(45),
name varchar(36),
start_date varchar(26),
)
insert into exam_results values (1,'online','sneha','10/11')
select *from exam_results

A.3 Updating all tables by inserting 2 values in each table

Inserting values into studen table

Inserting values into parent table


Inserting values into course table

Inserting values into grade table

Inserting values into classroom table

Inserting values into attendance table


Inserting values into exam table

Inserting values into teacher table

Inserting values into exam_results table

create table logistic_details


(
id int foreign key references studen(id),
customet_id int foreign key references customer_tbl(customet_id),
location_id int foreign key references location_tbl(location_id),
product_id int foreign key references product_tbl(product_id),
order_id int foreign key references order_tbl(order_id),
shipment_id int foreign key references shipment_tbl(shipment_id),
document_id int foreign key references dimdocument_type(document_id),
id int foreign key references ref_calender(id),
message_id int foreign key references messagge_type(message_id),
order_total varchar(100),
canceled_orders varchar(100)
A.3 Updating all tables by inserting 2 values in each table

Inserting values into logistic facts table


insertinto logistic_facts values (1,'PARIS 1/45 HOUSE.NO 25','HBS30','TUTOL
HOUSE',5673,'MAHO552','GIFT BOX','00MANNDG')

insertinto logistic_facts values (2,'OOTY HOUSE.NO 20','SNDB7','HEAVEN AS


HOUSE',890,'LSKAH3','OFFDOC','9DU2874J')

 Inserting values into customer table


insertinto customer_tbl values (1,'MAHESH HM','HYD INFOSYIS MANAGER')

insertinto customer_tbl values (2,'SALMAN SINGH','BANGALORE CISCO HR MANAGER')

 Inserting values into location table


insertinto location_tbl values (1,'PORT BLAIR','ANDAMAN ISLANDS IN INDIA')

insertinto location_tbl values (2,'KURNOOL','MAINCITY KUR NEAR RAM TEMPLE')

 Inserting values into product table


insertinto product_tbl values (1,'TOY','10','COTTON','TOY FOR PLAYING')

insertinto product_tbl values (2,'DRESS','20','SILK','DRESS WINTER WARE')

 Inserting values into order table


insertinto order_tbl values (1,'BOTTLES','30')

insertinto order_tbl values (2,'LAYS','5')

 Inserting values into shipment table


insertinto shipment_tbl values (1,'FOOD CARGO GO','PERISHABLE PRDUCT')

insertinto shipment_tbl values (2,'ECUIPMENT','RAW MATERIAL FURNITURE')

 Inserting values into dimdocument table


insertinto dimdocument_type values (1,'customer declerations','detail of products')
insertinto dimdocument_type values (2,'buyer details','detail of products')

 Inserting values into ref calender table


insertinto ref_calender values (1,'TUESDAY_21/1/2021','7')
insertinto ref_calender values (2,'sunday_18/3/2021','9')

 Inserting values into message type table


insertinto messagge_type values (1,'AUTHORISE SHIPMENT','YES OEDER')
insertinto messagge_type values (2,'CANCLED ORDER','RETURN OEDER')

 Inserting values into price list table


insertinto price_list values (1,'82993','YES PAID')
insertinto price_list values (2,'90233','YES PAID')

A4.Developing relationship between tables and normalizing the data using


2NF/3NF.Defining Primary key, Foreign key and composite key for the same

create table logistic_details


(
facts_id int foreign key references logistic_facts(facts_id),
customet_id int foreign key references customer_tbl(customet_id),
location_id int foreign key references location_tbl(location_id),
product_id int foreign key references product_tbl(product_id),
order_id int foreign key references order_tbl(order_id),
shipment_id int foreign key references shipment_tbl(shipment_id),
document_id int foreign key references dimdocument_type(document_id),
id int foreign key references ref_calender(id),
message_id int foreign key references messagge_type(message_id),
order_total varchar(100),
canceled_orders varchar(100)
)

insert into logistic_details values (1,1,1,1,1,1,1,1,1,'3998',568)


insert into logistic_details values (2,2,2,2,2,2,2,2,2,74847,883)

You might also like