Write a query statement to show all data records

Assignment Help Database Management System
Reference no: EM131298636

Project 1 & 2 Data info Mgt

You need the salesordersexample database to complete this project. If you have not installed the database in MySQL, please refer to #3 installation guide in Week 3 link on eCollege to set up the database.

1. Use the customers table inside of the salesordersexample database, and write a query statement to show all data records of the customers table.

2. Use the customers table inside of the salesordersexample database, and write a query statement to show data records from the CustFirstName, CustLastName, and CustCity columns.

3. Use the employees table inside of the salesordersexample database, and write a query statement to show the employee's EmployeeID, EmpFirstName, EmpLastName, and EmpPhoneNumber, if she's living in the area with 98413 as the zip code.

4. Use the employees table inside of the salesordersexample database, and write a query statement to show each employee's EmployeeID, EmpFirstName, and EmpLastName. Also, in the report, create a new column called EmpAge, in which you use a date expression to calculate and show the employee's age today. (Hint: A similar analysis can be found in the developer guide in Week 5 link on eCollege.)

Please save the query statements for questions above into a Word document. Also, get a screen capture of the data report after you execute each query in MySQL, and save the screen captures into the Word document as well. Please name the Word document as "MyProject1

Project 2 Instructions
You need the salesordersexample database to complete this project. If you have not installed the database in MySQL, please refer to #3 installation guide in Week 3 link on eCollege to set up the database.

1. Use INNER JOIN to create a report. In this report, list each vendor's name and the name of each product the vendor has supplied to our company. You should use the Vendors table and the Product_Vendors table in the database to complete this task.

2. Use INNER JOIN to create a report. In this report, list each customer's first name, last name, and the dates when he or she places orders to us. You should use the Orders table and the Customers table in the database to complete this task.

3. Use OUTER JOIN to create a report. In this report, list the name of the products that have never been ordered by far. You should use the Order_Details table and the Products table in the database to complete this task.

4. Use UNION to create a report. In this report, list both customers' and employees' first name, last name, street address, city of residence, state of residence, and zip code. You should use the Customers table and the Employees table in the database to complete this task.

Please save the SQL query statements for each question into a Word document. Also, get a screen capture of the data report after you execute each query in MySQL, and save the screen captures into the Word document as well. Please name the Word document as "MyProject2.

Verified Expert

In the given document there are few question related to to the given case study. To solve these problem we should have proper knowledge of it.And we have also discussed about DATABASE and solve all queries.

Reference no: EM131298636

Questions Cloud

Describe the potential privacy problems : Describe the potential privacy problems that could arise in each of the following three areas of processing, and recommend the corrective action.
How the arrival of inexpensive broadband has changed the ppf : Cheap broadband's a winner Inexpensive broadband access has created a new generation of television producers and the Internet is their native medium.
Greenhouse gas emissions : 1) Will the need to reduce greenhouse gas emissions such as carbon dioxide kill certain industries? 2) What happens to a utilities Marginal Costs (MC) as they are compelled to reduce carbon emissions?
Financial innovations increased : How have financial innovations increased the liquidity of home mortgages since the late 1970s? Has this increase in liquidity tended to increase or decrease the interest rate on home mortgages? Explain why.
Write a query statement to show all data records : Use the customers table inside of the salesordersexample database, and write a query statement to show all data records of the customers table.
Discuss how the actions of the federal reserve : Discuss how the actions of the Federal Reserve, specifically an increase or decrease in money supply, affect the other variables represented in the IS/LM model. Is this model a useful tool in setting U.S. monetary policy? Why or why not? Argue and..
Explain as much as necessary to get the point across : Should a company ever produce a good or service if the managers know it will lose money? Why or why not. Provide examples to support your response. Explain as much as necessary to get the point across.
Prepare a cash budget for october : Compute Profit Margin Ratio, Asset Turnover Ratio and ROI for this division of Atkinson Company - Discuss briefly about some of the advantages and disadvantages of ROI as a measure of divisional performance
Why the drought will lead to a rise in the price of bread : Explain why the drought will lead to a rise in the price of bread.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a database with table "tblstudents" and "tbllogin"

Create a database with a table called "tblStudents" and "tblLogin." This table should have the following columns.

  Describe what entity represents in an er mode

Describe what entity represents in an ER mode and provide examples of entities with a physical or conceptual existence. Describe how strong and weak entities differ and provide an example of each.

  Describe the components of a dbms

Describe a primary key, candidate key, secondary key, foreign key, and a combination key. Use your imagination to provide an example of each key that is not in the textbook.

  Database management and applications

What errors prevent the table displayed above from being first normal form compliant? Bring the table(s) into first normal form compliance without loss of any data. Identify primary and foreign keys (when present) for all tables.

  What are four pieces that make up key performance indicator

What are the four pieces that make up a Key Performance Indicator (KPI)? Provide an example of a KPI based on the AdventureWorks database.

  How do databases generate sales and profits

Why are databases important to business. How do databases generate sales and/or profits. What databases do you interact with, and how do they benefit you

  Explain how data is physically stored and accessed

Write clearly and concisely about relational database management systems using proper writing mechanics and technical style conventions.

  Show the view defnition statements for employeenames and

You want to authorize your secretary to ?re people (you will probably tell him whom to ?re, but you want to be able to delegate thistask), to check on who is an employee, and to check on average department salaries. What privileges should you grant?

  Database performance from quantitative data

Recommend the actions that should be performed in order to optimize record selections and to improve database performance from a quantitative data quality assessment

  Create a class diagram of the intial code

The base application consists of three classes - Doctor, Patient and Hospital. A patient can be a private or public patient and is handled differently in either case. Patients are assigned to Doctors according to availability and preference.

  What is the key value of the 4th index

What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

  Write a select statement that joins the customers

Write a SELECT statement that joins the Customers, Orders, OrderItems, and Products Tables. This statement should return these columns: LastName, FirstName, OrderDate, ProductName, ItemPrice, DiscountAmount, and Quantity.

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