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

  Provide an entity relationship diagram

Your database project must meet the following assessment requirements: Design and develop a database using professional principles and standards. Provide a logical and physical design of the database. Use relational database software application to d..

  Develop relational schemas

List the course numbers, course names a student who is doing computer science major could enrol for.

  Explain the advantages of using erp

Technology and enterprise resource planning as an it manager, discuss how your company will use enterprise resource planning (ERP) to integrate.

  Physical design and implementation it requires the use of a

physical design and implementation it requires the use of a relational database management system. strayer university

  Develop a uml class diagram that illustrates the data items

Develop a UML class diagram that illustrates the data items for your program. List the decisions the program must make. References to the data items in the previous step should be used where appropriate

  Research databases available from the danforth library

Research Databases available from the Danforth Library. Discuss in 500 words your opinion whether Fair Use of copyrighted material should be expanded.

  Explain factors necessary to ensure referential integrity

Determine and explain the factors necessary to ensure referential integrity. Identify which data components are the entities and attributes.

  Assume that a student table in a university database has an

assume that a student table in a university database has an index on studentid the primary key. and additional indexes

  Discuss the type of data needed for such a system

Discuss the type of data needed for such a system (attributes), the data types of these attributes, and data sources (where you might obtain such data, such as Point of Sale).

  Discuss the steps you used to complete your lab

DBM405A- Discuss the steps you used to complete your lab. Were you successful? What did you learn? What were the results? Explain what you did to accomplish each step.

  Describe an example of a very poorly implemented database

Describe an example of a very poorly implemented database that you've encountered (or read about) that illustrates the potential for really messing things up.

  Create an erd that represents the entities

Create an ERD that represents the entities, attributes, the relationships between entities, and the cardinality and optionality of each relationship that are described by this business rule

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