Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

What is star schema in sql

20/10/2021 Client: muhammad11 Deadline: 2 Day

Create The DEALERSHIPS Star Schema Dimension Table Via SQL

Create the DEALERSHIPS star schema dimension table via SQL

CMIS-420 Project #2 (added Step #0 on 11/24/14)

In this assignment you will be creating a data warehouse database for Online Vehicle Sales (OVS), Inc. The data warehouse is comprised of 4 dimension tables and a fact table based on the Project #2 Star Schema diagram posted in LEO’s Week #6 area. Your OLTP database tables and star schema tables will reside in the same Oracle schema.

You can perform this assignment based on a database on Nova or any other Oracle system you wish, but you must use the Oracle RDBMS.

You should use one or more SQL script files to complete this assignment. Your script files should contain all your SQL and PL/SQL code. Do NOT submit your SQL script files. Doing so may result in confusion and will result in lost points.

Everything for this assignment must be in a single file. If you are using SQL*Plus you must put all your SQL, PL/SQL, and results together in a single SPOOL file. If you are using SQL Developer or other GUI, put all your screen snapshots in a single file for both your SQL statements and PL/SQL as they executed and the results. Failure to include all your SQL, PL/SQL, and all your Oracle execution results along with them will result in lost points.

Do NOT submit additional files as this only complicates the grading, and will result in lost points.

The specific assignment steps are listed below. In order to earn full credit you must keep your steps in the order shown, number your steps, and put everything in a single file.

Your FINANCING_PLANS table should already be created and populated. Your Plan_ID primary key is the Plan_Code column. Don't worry about changing this to Plan_Code or changing any other column names you already have.

0) Create the DEALERSHIPS star schema dimension table via SQL. Add at least 2 rows of data via INSERT statement(s). After populating your DEALERSHIPS table execute a "SELECT * FROM dealerships;” SQL statement to display the entire contents. Show all your SQL code for this step and the Oracle results from executing it.

1) Create the VEHICLES star schema dimension table via SQL. Change your existing OLTP VEHICLES table to OLTP_VEHICLES via the SQL RENAME command and change your SALES table’s foreign key to reference this new table name. For the Vehicle_Code primary key column use an Oracle sequence to populate the values. For the Description column use all concatenated combinations of Make and Model of vehicles you have. Use a PL/SQL block to populate the Description column by SELECTing the combinations from your OLTP_VEHICLES table and then INSERTing the combinations into your new VEHICLES table, which would best be performed via a cursor in a loop. After populating your VEHICLES table execute a "SELECT * FROM vehicles ORDER BY vehicle_code" SQL statement to display the entire contents. Show all your SQL and PL/SQL code for this step and the Oracle results from executing it.

2) Create the TIMES star schema dimension table via SQL. This is “TIME” table in the star schema figure. The Sale_Day primary key column values should be all dates from your first sale date through and including your last sale date from your SALES table. The Day_Type values should be 'Weekday', 'Weekend', or 'Holiday' (this trumps Weekday and Weekend). Set all occurrences of the following days for your date range to be holidays: New Year’s Day, Martin Luther King Jr’s Birthday, President’s Day, Memorial Day, 4th of July, Labor Day, Columbus Day, Veterans Day, Thanksgiving, and Christmas. Use a PL/SQL block to populate the TIMES table. After populating your TIMES table execute the SQL statement "SELECT day_type, COUNT(*),MIN(sale_day),MAX(sale_day) FROM time GROUP BY day_type ORDER BY day_type" to show the summarized contents of your table. Show all your SQL and PL/SQL code for this step and the results.

3) Create the SALES_FACTS star schema fact table via SQL. Ensure that you have declared foreign keys of Sale_Day, Vehicle_Code, Plan_Code, and Dealer_ID to reference your TIMES, VEHICLES, FINANCING_PLANS, and DEALERSHIPS tables, respectfully. Ensure that you have a primary key for the SALES_FACTS table that is a composite of the Sale_Day, Vehicle_Code, Plan_Code, and Dealer_ID columns. Do a DESC (i.e. DESCRIBE) of your SALES_FACTS table after it’s created.

4) Using PL/SQL populate the SALES_FACTS table. One way to do this is to use four nested cursor loops to get every possible combination of the dimension tables’ primary keys and then the total vehicles sold and gross sales amount for each combination. If these values for Total_Vehicles_Sold and Gross_Sales_Amount for a combination are zero then don’t INSERT a row into the SALES_FACT table. Only insert rows for combinations of the four foreign key columns where there were some vehicles sold. Another approach besides nested cursor loops is to use a single INSERT statement with a GROUP BY clause. After populating your SALES_FACTS table execute the query “SELECT COUNT(*) FROM sales_facts;” to show the row count. Also execute the query “SELECT SUM(vehicles_sold) FROM sales_facts;” to ensure that you have included all of your 200 or more sales.

sales.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Grade Essay
WRITING LAND
Top Writing Guru
Smart Accountants
Supreme Essay Writer
Finance Master
Writer Writer Name Offer Chat
Top Grade Essay

ONLINE

Top Grade Essay

I am an academic and research writer with having an MBA degree in business and finance. I have written many business reports on several topics and am well aware of all academic referencing styles.

$28 Chat With Writer
WRITING LAND

ONLINE

WRITING LAND

After reading your project details, I feel myself as the best option for you to fulfill this project with 100 percent perfection.

$23 Chat With Writer
Top Writing Guru

ONLINE

Top Writing Guru

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$26 Chat With Writer
Smart Accountants

ONLINE

Smart Accountants

This project is my strength and I can fulfill your requirements properly within your given deadline. I always give plagiarism-free work to my clients at very competitive prices.

$41 Chat With Writer
Supreme Essay Writer

ONLINE

Supreme Essay Writer

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$21 Chat With Writer
Finance Master

ONLINE

Finance Master

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$49 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Assignment on leadership 2 copies ( 2200 words each) - Nd66 sewer and drain cleaning compound - Visualizing and communicating in Excel - East hills girl high school - observe a public place then write two paragraphs, one a positive description, one a negative - Conflict Managment Dis 2 - Related and Independent Samples - Discussion - Assessing Business Strategy - Does trevor die in pay it forward - Harvest poems for church - Explain why you want to attend the pharm.d. program at usc. - Exaquantum excel add in - Research paper - Improper fraction example with drawing - 123 cabs gold coast - Diversity examples for interview - What type of process flow structure is cbf using - Design formula for inset fed microstrip patch antenna - Types of international capital market - Aspect Oriented programming project - St martin de porres high school waukegan il - J3 - A farewell to arms thesis statement - Isbn 13 978 0 13 283487 2 - Which company uses primum non nocere as its credo - Wk 3, IOP 480: DR 1 - Hinge joint wire strainer - Full adder gate level verilog - Orac beverages llc fargo nd - Epidemiology SLP 3 - Label the products and reactants - Isol 531 - Depreciation schedule format in excel - Dr sz shahid preston - Torkington primary school term dates - What concerns should be understood about data communications being sent over wireless networks? - What is your belief about ultimate reality - Car wiper mechanism animation - Investment banking technical interview questions and answers - Two Assignment so be completed - Hello Can someone kindly help me complete a Bibliography and proof read my paper, I need this back in 1 hour. - A white bus subordinating conjunctions - Carl hart ted talk - Paper bag princess play script - A chorus line characters - Sam edelman fritz genuine cow fur flat - English II-Assigment 5-REVISION - Physics - Vectors - Kenly library access terminal - Business combination valuation reserve account - Deliverable 1 - Kingston-Bryce Kick-off Project Plan - Mcgraw hill marketing simulation answers - Proposal for implementing it security management - 1 turtledove rise greenough - Product life cycle powerpoint presentation - Capital acquisition and repayment cycle - Culture speech outline - 2.3 evaluate own working relationship with colleagues - Asteron suncorp master trust - A healthful eating out strategy includes avoiding ________ appetizers - Suresh co. expects its five departments to yield the following income for next year. - Panopto uni of bath - Law - Synthesis Worksheet: Doctoral Identity - What is pressure measured in - Cisco eem tcl script examples - Homework in R - Partial fraction decomposition worksheet with answers - PMB Missed period cheap & safe | 1-24 weeks O835179056 SAFE ABORTION PILLS IN STANGER Pietermaritzburg Richmond QWAQWA IXOPO - Why do people doubt science - Jung believed that the anima and animus represent - Who first invented the computer - What are the key considerations when printing a graphic novel? - Annotated bibliography - Letter of king leopold to missionaries - Iso 8573 1 pdf - Statistics Writing Assignment - Thesis statement for my papa's waltz and those winter sundays - Appraisal Process - Identifying nouns answer key - Dmaic summary - Bsbpmg522a undertake project work assessment task 1 - Contemplative prayer thomas merton - Clawfoot bathtub warehouse san marcos - Makeup subscription boxes $10 - Sailing to byzantium context - If an object is rotating clockwise, this corresponds to a _____ angular velocity. - NUR512-Reply to this discussion - Opal - Island man poem questions - Speed velocity and acceleration notes - Human resource management - 9. read 1 corinthians 15:42-57 and list three characteristics of the glorified state. - Are you looking for someone to take your online macroeconomics class? - Griffith dental health science - 1kd turbo actuator wiring diagram - Writing assignment - Structure of infant skull - Dr james ewry maumee oh - Define hardness of water in chemistry - Q14