Your company has been consulting with LookntheMirror

Your company has been consulting with LookntheMirror Cosmetics over the last couple of months. It is an independent cosmetic manufacturing company that sells cosmetics to convenient stores via sales representatives. All sales data is currently maintained in an Excel spreadsheet. You had analyzed the data before and prepared the EER diagram. Based on that you have color coded the tables in your Excel to indicate how the data needs to be normalized. Now you are ready to build the Physical database. The file is available on Canvas

Following Data Conversion rules have been decided between you and your client:

  1. For some Sales Representatives who had joined the company a long time back, there is no hire date on record
  2. Some companies buy direct without any Sales Representative getting involved
  3. It is company audit policy to have a single date and time stamp for all database records.
  4. Surrogate keys as Primary Keys and related Foreign keys need to be created as needed.

Complete the following steps:

Question 1 – Create the schema and tables. Load the data using the excel provided. Since data volume is low, you do not need to do a VLOOKUP – you can visually find values and enter them as needed.                                                                        [14]

1-A         Attach images of the SQL create statements for each of your three tables.                            

1-B         Display all the data in your 3 tables. Screen print should show both your SQL statement and the result for each.                                                                                                                                                                             

Question 2 – Write analytical queries as required by your client. Paste the SQL statement for each of the queries and the corresponding output of records to the word document.

2-A – LookntheMirror Cosmetics needs you to create a query to find out how much quantity each cosmetic is selling. Create a query to find the total sale qty subtotaled by CosmeticName.

2-B – LookntheMirror Cosmetics needs you to create a query to display the details of what sales a particular sales person Jeff Roseman has generated. Fields to display: SalesOrderNo, SaleDate, Customer, CosmeticName, SaleQty, TotalSales and SalesRepName.

2-C – LookntheMirror Cosmetics needs you to create a query to display the details of products that contain any conditioner. Fields to display: SalesOrder, SaleDate, Customer, CosmeticName, SaleQty, TotalSales

2-C – LookntheMirror Cosmetics needs you to create a query to display the details of products sold by Rita Thomas for which no payment has been received yet. Fields to display : SalesOrder, SaleDate, Customer, CosmeticName, SaleQty, TotalSales.

                                                                                                                                                                                                                [3 + 3 + 3 + 3]

Part 2 – MongoDB

Launch MongoDB Compass and connect to the Atlas. Navigate to the “worldmovies” collection.

Complete the queries requirements from below. For 1 and 2, attach a zoomed image of your query with the Options expanded and the results displayed on the first screen.

Question 3 – Display all movies made from 2012 to 2016 with imdbRating more than 6 sorted decreasing by their ratings.                                                                                                                                                                                                      [2]

Question 4 – Display the title, year, cast, director, and awards for all movies that were nominated for or won an Oscar in 2014.                                                                                                                                                                                          
 

How Our Website Works

1. FILL IN OUR SIMPLE ORDER FORM

It has never been easier to place your order. Fill in the initial requirements in the small order form located on the home page and press “continue” button to proceed to the main order form or press “order” button in the header menu. Starting from there let our system intuitively guide you through all steps of ordering process.

2. PROCEED WITH THE PAYMENT

All your payments are processed securely through PayPal. This enables us to guarantee a 100% security of your funds and process payments swiftly.

3. WRITER ASSIGNMENT

Next, we match up your order details with the most qualified freelance writer in your field.

4. WRITING PROCESS

Once we have found the most suitable writer for your assignment, they start working on a masterpiece just for you!

5. DELIVERY

Once finished, your final paper will be available for download through your personal dashboard. You will also receive an email notification with a copy of your paper attached to it. Sometimes, the writer may leave a note for you about the order in case there is any additional information that they need to give you.

Leave a Reply

Your email address will not be published.