1.Write a query to display the student Id, first name, last name and street of all the students who all from 'Chennai' or 'Bangalore'. Sort the records based the first name in ascending order.Write a query to display the student Id, first name, last name and street of all the students who all from 'Chennai' or 'Bangalore'. Sort the records based the first name in ascending order.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

1.Write a query to display the student Id, first name, last name and street of all the students who all from 'Chennai' or 'Bangalore'. Sort the records based the first name in ascending order.Write a query to display the student Id, first name, last name and street of all the students who all from 'Chennai' or 'Bangalore'. Sort the records based the first name in ascending order.

2.Write a query to display the name of departments that are not present in the block number 3. Sort the records based on the department name in ascending order.

3.Write a query to display the guest id, name, email and phone number of all the guest if and only if the phone number is available. Sort the records based on the name in ascending order. 

The resort manager wants to know the details of the guest who brought their children to the resort. 

 

4.Write a query to display the guest id, resort id, number of days they have stayed (give the alias name as NUMBEROFDAYS), number of adults, number of children. Display the records based on the descending order of the child count.

 

(Hint : Total number of days is calculated based on the difference between from date and to date)

5.Write a query to display the Course Id and Course Name with duration between 2 and 3 months and the fees is less than 5000. Sort the records based on the course name in descending order. 

 

(Hint : Data is case sensitive)

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY