This document explores the world of Database System Technology. It includes BI reports, DBMS codes, live demo of database and bibliography. The document covers topics like creating tables, inserting data, primary keys, foreign keys and more.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head:DATABASE SYSTEM TECHNOLOGY Database System Technology Name of the Student Name of the University Author’s note:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1DATABASE SYSTEM TECHNOLOGY Table of Contents Database BI Reports:.......................................................................................................................2 DBMS Codes:..................................................................................................................................3 Live Demo of Database:..................................................................................................................7 Bibliography:...................................................................................................................................9
2DATABASE SYSTEM TECHNOLOGY Database BI Reports: Figure 1: Total Purchase Amount of Individual Buyer (Source: Created by Author)
3DATABASE SYSTEM TECHNOLOGY Figure 2: Total Amount of Car Sold Against Months (Source: Created by Author) DBMS Codes: CREATE DATABASE IF NOT EXISTS autoseller; USE autoseller; CREATE TABLE tbl_buyer ( buyerID int(11) NOT NULL, first_name varchar(150) NOT NULL, last_name varchar(150) NOT NULL, address varchar(150) NOT NULL, contact_number varchar(150) NOT NULL ); CREATE TABLE tbl_car ( car_number int(11) NOT NULL, make varchar(150) NOT NULL,
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4DATABASE SYSTEM TECHNOLOGY model varchar(150) NOT NULL, color varchar(150) NOT NULL, price decimal(10,2) NOT NULL, year year(4) NOT NULL, mileage int(11) NOT NULL, body_type varchar(150) NOT NULL, fuel_type varchar(150) NOT NULL, engine_size varchar(150) NOT NULL, fuel_consumption varchar(150) NOT NULL, CO2_emission varchar(150) NOT NULL ); CREATE TABLE tbl_car_owner ( car_number int(11) NOT NULL, buyer_id int(11) NOT NULL, from_date date NOT NULL, to_date date NOT NULL ); CREATE TABLE tbl_sales_invoice ( sales_number int(11) NOT NULL, car_number int(11) NOT NULL, seller_id int(11) NOT NULL, buyer_id int(11) NOT NULL, purchase_date date NOT NULL, sold_date date NOT NULL, sold_price decimal(10,2) NOT NULL ); CREATE TABLE tbl_seller ( seller_id int(11) NOT NULL, last_name varchar(150) NOT NULL, first_name varchar(150) NOT NULL,
5DATABASE SYSTEM TECHNOLOGY address varchar(150) NOT NULL, contact_number varchar(150) NOT NULL ); ALTER TABLE tbl_buyer ADD PRIMARY KEY (buyerID); ALTER TABLE tbl_car ADD PRIMARY KEY (car_number); ALTER TABLE tbl_car_owner ADD PRIMARY KEY (car_number,buyer_id), ADD KEY buyer_id (buyer_id); ALTER TABLE tbl_sales_invoice ADD PRIMARY KEY (sales_number), ADD KEY buyer_id (buyer_id), ADD KEY car_number (car_number), ADD KEY seller_id (seller_id); ALTER TABLE tbl_seller ADD PRIMARY KEY (seller_id); ALTER TABLE tbl_car_owner ADDCONSTRAINTtbl_car_owner_ibfk_1FOREIGNKEY(buyer_id) REFERENCES tbl_buyer (buyerID), ADDCONSTRAINTtbl_car_owner_ibfk_2FOREIGNKEY(car_number) REFERENCES tbl_car (car_number); ALTER TABLE tbl_sales_invoice ADDCONSTRAINTtbl_sales_invoice_ibfk_1FOREIGNKEY(buyer_id) REFERENCES tbl_buyer (buyerID),
9DATABASE SYSTEM TECHNOLOGY Bibliography: Aspin, A. (2016).Pro Power BI Desktop. Apress. Dedic, N., & Stanier, C. (2016, December). Measuring the success of changes to existing businessintelligencesolutionstoimprovebusinessintelligencereporting. InInternational Conference on Research and Practical Issues of Enterprise Information Systems(pp. 225-236). Springer, Cham. Ferrari, A., & Russo, M. (2017).Analyzing Data with Power BI and Power Pivot for Excel. Microsoft Press. Ferrari, A., & Russo, M. (2017).Analyzing Data with Power BI and Power Pivot for Excel. Microsoft Press.