Write and execute a query that will return the name

Assignment Help Database Management System
Reference no: EM133288765

Database Management Systems

Advanced Structured Query Language

Question 1. Write and execute a query that will return the name and age of all customers.You should have 7 rows in your result:

Question 2. Write and execute a query that will display the name and resid_city of all customers that were born in Tampa.

Question 3. Write and execute a query that will show the customer id and name of customers between the ages of 25 (inclusive) and 40 (inclusive). Order your results by Cname in descending order. Display the CName column with the heading "Customer Name" ← note the capitalizing and the space between words. (Note that you will need to use a column alias for this using the keyword "AS.")

Question 4. Write and execute a query that will list any customers whose names begin with the letter "G".

Question 5. Write and execute a query that will display a unique list of all the automobile Makes that have ever been rented. Order your results by Make.

Question 6. Write and execute a query that will display all of the customers who have ever rented an automobile. Include the customer name, make, pickup location in your results. Order your list in ascending order by pickup.
Your results should include 8 rows:

Question 7. Write and execute a query that will return the names of customers who rented a Ford or GM.
You should have 4 rows in your resultset.

Question 8. Write and execute a query that will display the customer names, ages, makes, and daily cost of each automobile that they rented. Order your results by cost.
You should have 8 rows in your

Question 9. Write and execute a query that will return the unique list of birth places of everyone who has ever rented a Ford.
You should have one row in your result: Tampa

Question 10. Write a query that will return the Names and ages of customers who have rented any automobile during 2009. Make sure that each customer is listed only once in your output.
You should have two rows in your resultset:

Question 11. Write and execute a query that will determine the total number of days that Black rented a GM on November 1, 2009.
You should have one cell: 4

Question 12. Write and execute a query that will determine the total cost of the automobile rented by Black on November 1, 2009.
You should have one cell: 160

Question 13. Write and execute a query that will determine the Total cost of all the automobiles that have ever been rented.
You should have one cell: 1880

Question 14. Write and execute a query that will determine the average number of days that automobiles are rented. Show your result broken out by makes. Do not include an automobile if it has not yet been returned.
You should have two rows: Ford and GM with average days rented 13 and 4, respectively.

Question 15. Write and execute a query that will determine the average age of customers broken out by the city in which they reside. Note: Make sure that the average age is not truncated to an integer.
You should have 4 rows: Cary, Denver, Erie, and Hemet with average ages of 42.5, 25, 31, and 32.5

Question 16. Write and execute a query that will show a list of customers who reside in the same city in which they were born.
You should have 2 rows: Simon and Vernon

Question 17. Using a left outer join, write and execute a query that will display a unique list of the makes of automobiles that have never been rented.
You should have 2 rows: Toyota and Volvo

Question 18. Using a Type I query, display a unique list of the makes of automobiles that have never been rented.
You should have 2 rows: Toyota and Volvo

Question 19. Using a right outer join, write and execute a query that will display a unique list of customers who have never rented an automobile.
You should have two rows: Vernon and Wilson

Question 20. Using a Type II query, display a unique list of customers who have never rented an automobile.
You should have two rows: Vernon and Wilson

Question 21. Write and execute a query that will display a list of the customers who picked up their rental from the same city in which they reside.
You should have 2 rows: Black and Simon

Question 22. Write a query that will display a list of customers who have not returned their rentals.
You should have 2 rows: Green and Simon

Question 23. Using a Type I query, show all of the names and ages of customers who have rented an automobile and returned it to Erie. Sort your results in ascending order by customer name.
You should have three rows: Black, Jones, Martin.

Question 24. Using a Type II query, show all of the customers who rented an automobile and picked it up in Cary.
You should have three rows: Black, Jones, and Martin

Question 25. Write and execute a single query that will display all of the information in the Customer, Rentals, and Rentcost tables in a single resultset.Be sure to display each field only once in your output. Order your results in ascending order by Customer.CID and Rentcost.Make .
You should have 12 rows and 12 columns in your result.

Attachment:- Advanced Structured Query Language Queries Template.rar

Reference no: EM133288765

Questions Cloud

How do the various themes and concepts relate to each other : Understand the strengths of in-depth, qualitative interviews and discover ways of identifying participants for a qualitative interview study
What change would you make to ensure your project is success : Case Study that was executed using Scrum principles. Reviewing your current Case Study 2, using the lens of Extreme Programing, what changes would you make
Explain the problems experienced by def ltd : Explain the problems experienced by DEF Ltd. What is the main cause of these problems and What logistics model should the company go for to ensure proper
Human resources department in key functional areas : HRPD 701 Human Resources Management In Canada, Centennial College - Contact an organization and interview a Human Resource Practitioner or Manager
Write and execute a query that will return the name : CSIS 325 Database Management Systems - Liberty University Write and execute a query that will return the name and age of all customers
Define a set of instructions to be executed : Define a set of instructions to be executed with a specific order in mind to get a desired output. For database analysis linking data is key
Purpose of most valuable sorting algorithms : understanding the purpose of the most valuable sorting algorithms has been considered to be a more significant research area in todays world
Graduate employment opportunities in the future : Reflect on their individual performance, behaviour and experience in education and/or employment and Locate and evaluate resources for academic and employment
Drawing on the simulations you performed : University of Sharjah which would facilitate profit maximization, and a screenshot with capacity utilization graphs for the three stages referring

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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