Question

please write a list of sql queries for these exercises 9. For each region of Europe,...

please write a list of sql queries for these exercises

9. For each region of Europe, display its list of countries. Show the region, the name of the country, and the head of state of the country. Sort the results by region and country.

10. Display all of the cities in Brazil, grouped by district. Group the results alphabetically bi district, and the cities within each district alphabetically as well.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Query 1

SELECT region, country, state from TABLE
where region = "Europe"
order by region ASC, country ASC

2. Query 2
Select city from TABLE
where country = "Brazil"
group by district
order by district ASC, city ASC

Friend, That was a nice question to answer
If you have any doubts in understanding do let me know in the comment section. I will be happy to help you further.
Thanks

Add a comment
Know the answer?
Add Answer to:
please write a list of sql queries for these exercises 9. For each region of Europe,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT