Table design and relationships

Assignment Help Basic Computer Science
Reference no: EM131470267

Sparkle Diamonds Project - I need the following created in MySQL only!

The table design and relationships must support the following functionality:

Customers - Each customer is assigned a unique customer number but may have multiple locations to ship to. The sales team needs to be able to select the customer and the location for preparing sales orders.

Inventory Table - The sales team will want to query the inventory to find diamonds that meet the following specifications of their customers:

Cost - what SD has paid for the stone

Price - what SD will sell the stone for

Carat - weight

Clarity - clarity scale for diamonds offered are IF, VVS1, VVS2, VS1, VS2*

Cut - cut scale for diamonds offered are Excellent, Very Good, Good

Color - color scale for diamond offered are D, E, F, G, H, I, J*

Order Table - The sales team will want to prepare a sales order for existing customers and sell only diamonds that are in inventory. The DBMS must be designed such that customers can purchase multiple stones on one sales order.

*Diamond Scale Reference*

Clarity:

IF- Internally Flawless

VVS1 - Very, very slightly included (pavilion)

VVS2 - Very, very slightly included (crown)

VS1 - Very slightly included (under 10X magnification)

VS2 - Very slightly included (to the naked eye)

Color:

D, E, F - Colorless - color between D, E, and F diamonds can be detected only by a gemologist in side by side comparisons, and rarely by the untrained eye

G, H, I, J, K - Near Colorless - diamonds color rated by a gemologist

Populate each table with at least ten data records that would support the user's functional requirements.

Execute the following queries in the Diamond Broker database:

Create an 1-page inventory list showing all the attributes for each diamond in inventory (both in stock and not in stock)

Show the total price and costs for all in stock inventory items

Show a 1-page list of all diamonds that are in stock and have a carat weight of over 1.0 carats

Show a 1-page list of customer names and order numbers for those customers that have placed an order in the past twelve months

Show a 1-page list of all orders with customer name and include all items that are on that order

Compress the output of the queries including all of the scripts to create the database tables, to establish keys and constraints, to populate data within the database, and queries into a single ZIP folder.

So to recap, I need the tables created, ten data records per table added then the queries ran. MySQL will not run on my machine, so I will need the model and query files and scripts for this assignment. Bonus to anyone that can complete this in the next five hours.

Reference no: EM131470267

Questions Cloud

Write a research-based blog post for a hrm website : Discuss one of the major personality theories and how this theory is used to conduct assessment.
What is business ethics and public opinion : Business Ethics and Public Opinion. Assume that you are a high-level manager for a shoe manufacturer. You know that your firm could increase its profit margin.
Analyse the impact of technology on communication : Critically analyse the impact of technology on communication skills in the workplace. Communication is an art not a skill. Critically analyse the statement
Define ethical decision making : Ethical Decision Making. Shokun Steel Co. owns many steel plants. One of its plants is much older than the others. Equipment at that plant is outdated.
Table design and relationships : The table design and relationships must support the following functionality:
Write a program that asks the user for a letter : Write a program that asks the user for a letter - This function will take as input the original letter input by the user so that it can be included in the output sentence.
User to specify an input file and output file : Write a program (project) that asks the user to specify an input file and output file. Have the program read each line in the input file to find the smallest.
Describe biodiversity and how it is measured : Explain biodiversity and how it is measured. Identify the techniques that humans can utilize to ensure conservation of ecosystems.
What are the specific training or education requirements : What other qualifications are needed? Does the career demand a certain trait. skill or aptitude that I do or do not have - What are the specific training or education requirements?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Article on visual basic programming

Find a current article about Visual Basic® programming best practices and write a 1- to 2-page paper discussing its relevance to this course

  Reasons why the company needs a security plan

Prepare a 15-slide presentation with speaker notes for Senior Management that will provide an outline for a Security Guidance plan encompassing best practices from key areas that were covered in this course.

  How to implement this code converter as a rom circuit

Give the truth table, and show how to implement this code converter as a ROM circuit and as a PLA circuit.

  How interface implements the principles of good interface

The menu structure for Holiday Travel Vehicle's existing character-based system is shown here. Develop and prototype a new interface design for the system's functions using a graphical user interface.

  What is the purpose of the distinct operator

Explain the difference between the SUM and COUNT built-in functions.

  Describe the meaning of the resource

Describe the meaning of the subsequent two Resource Records:

  Two cyborgs walk into your home

Two cyborgs walk into your home, both claiming to be oracles for the graph 3-colorability decision problem. They both always give a yes/no answer in constant time for any instance, and are each self-consistent

  Social networking section of the key assignment

How do networking applications and virtual worlds for social interaction affect people's lives? Explain the positive and negative aspects of reality and virtual reality from both individual and societal perspectives.

  Jerry''s appliance has a special promotion

Jerry's Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw three balls from an urn to determine the sum of the discount they will receive on their p..

  Head of human resources at a local health care organization

1) Arrange an interview with the head of human resources at a local health care organization. 2) Write a report (1,000-1,250 words) on your interview that reviews the organization's human resources processes. Address the following:

  Subsets of cardinality

Prove by induction that for every n >= 3, any set of cardinality n has exactly n(n-1)(n-2)/6 subsets of cardinality

  Existence of the java gui application

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named voltage and is used to input a voltage value in volts.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd