What are the two major components of sql

Assignment Help PL-SQL Programming
Reference no: EM13781021

1. Explain the function of each of the clauses in the SELECT statement. What restrictions are imposed on these clauses?

FROM
WHERE
GROUP BY
HAVING
SELECT
ORDER BY

2. List the 5 aggregate functions and explain their use.

3. SQL exercises

Hotels Schema

Hotel
hotelNo hotelName city

Room
roomNo hotelNo type price

Booking
hotelNo guestNo dateFrom dateTo roomNo

Guest
guestNo guestName guestAddress

Use the hotel schema above to write SQL statements for the following queries.

a. List full details of all hotels.

b. List full details of all hotels in London.

c. List the names and addresses of all guests in London, alphabetically ordered by name.

d. List all double or family rooms with a price below £40.00 per night, in ascending order of price.

e. List the bookings for which no dateTo has been specified.

4. What are the two major components of SQL and what function do they serve?

Reference no: EM13781021

Questions Cloud

Main types of sociology of sports theories : Submit a paper, in APA format, that addresses the "dedicated to sports" phenomenon. Applying each of the main types of sociology of sports theories (cultural theories, interactionist theories, and structural theories), answer the question: "Why ar..
Competency based individualized strategies for supporting : Use the definition laid out in IDEA to describe Michael's hearing disorder and the competency based individualized strategies for supporting him in a school setting.
Regarding the projct user interface : Prepare a detailed design document for the user interface for your project. Your design document should be based on your Project Requirements and Scope document and your Project Design proposal.
Provide feedback on business proposal : Provide feedback on Business proposal. Include detailed, substantive comments.
What are the two major components of sql : Explain the function of each of the clauses in the SELECT statement. What restrictions are imposed on these clauses. What are the two major components of SQL and what function do they serve
Conduct a risk assessment of a town : Conduct a risk assessment of a town, state, or country other than your own, and create a strategic mitigation, response, and recovery plan for presentation before the emergency planning board of your community.
The value of critical thinking : Give your opinion on whether being an effective critical thinker makes decision making easier or more challenging. Justify your response. Consider the following statement: "The major difference between a successful person and one that is not succe..
Eliminate the problem of adverse selection : How does the employer mandate help eliminate the problem of adverse selection? Would a single-payer plan, in which everybody is insured through the government, further reduce the problem of adverse selection?
Write ananalysis essay on hunger games : Write ananalysis Essay on hunger games.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  What is column aliases

For Assignment week 1, answer the following questions. Save your answer to a word document on your desktop (please save as word 2003 format), and submit your results.

  Play a significant role in the sql injection attack steps

Examine the critical manner in which different database systems (e.g., Oracle, MySQL, or Microsoft SQL Server-based, etc.) can play a significant role in the SQL injection attack steps.

  Explain entity integrity and referential integrity rules

Explain entity integrity and referential integrity rules in relational model.show how these aer realized in sql

  Which of the sollowing is an accurate statement

Which of the subsequent is an accurate statement - When the LOWER function is used in a SELECT clause, it will automatically store the data in lower-case letters in the database table.

  Database systems1 what is an sql injection attack explain

database systems1. what is an sql injection attack? explain how it works and what precautions must be taken to prevent

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Write sql statement-display major of student-no duplications

Write a SQL statement to display the Major of the student with no duplications. Write a SQL statement to display the First and Last name of students who live in the Zip code 88888.

  Write a select statement that returns the productname

Write a SELECT statement that returns the ProductName and ListPrice columns from the Products table.

  Create student sorting table

Student.txt in the attachment contains the roster of a class. Each student object has the following fields: student id, last name, first name, academic level.Create a RosterClass to store the student database in vector.

  Perform the tasks below by using the correct sql statements

Create a view so that supplier 'ASP' can only see his information from the l_foods table.  Call this view_l_foods_ASP.  Show columns supplier_id, product_code, menu_item, description, and price in your view.

  Write a pl-sql block

Write a PL/SQ block - Select the average salary of all employees in department number 20.

  Describe and explain oracle date and time format in details

Describe and explain Oracle Date and Time Format in details. Provide some Functions used for Date and Time and give some syntax example of their usage. Expand your examples to include some Arithmetic used with Oracle Date.

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