You are on page 1of 1

3.

8 Filtering data with criteria exercises (<>, not)

Use the ‘world’ sample database to complete these queries:

1. Show the government form for all countries that are not republics. Sort by government form
alphabetically. Use the <> operator.

2. Complete the same as question 1 without using the <> operator.

3. Show all European countries that are not in Western Europe. Sort by region first then
country name.

4. Modify the previous query to show European countries that are in neither Western nor
Southern Europe.

5. Modify the previous query to show only European countries that are in neither Western nor
Southern Europe, and also have a GNP value over one million.

6. Show all countries in Europe, but exclude southern European countries and republics. Sort
by government form then region, then country name.

7. Show all countries in Europe, but exclude southern European countries that are also
republics. Use the same sort order as the previous question.

You might also like