The following query can be written in several ways. Write at least two versions of the query.
List in alphabetical order, the last and first names of all authors who live in NY, NJ or CT and whose last name starts with a letter from 'A' through 'M', Write this query in two different ways (I can think of a number of different ways).
The following queries are similar to the first one. You only have to write one version for each of the following.
List in alphabetical order, the last and first names of all authors who live in NY, NJ or CT and whose last name starts with a letter from 'N' through 'Z'.
List in alphabetical order, the last and first names of all authors who live in any state other than NY, NJ and CT and whose last name starts with a letter from 'A' through 'M'.
List in alphabetical order, the last and first names of all authors who live in any state other than NY, NJ and CT and whose last name starts with a letter from 'N' through 'Z'.
List in alphabetical order, the last and first names of all authors whose first and last names start with the same letter. Hint: use the substring function.
List in alphabetical order, the last and first names of all authors whose first and last names are each at least 4 letters long. Hint you can approach this in one of two ways. Either (1) use the len function OR (2) use the LIKE keyword
Create one column which contains the first 8 letters (all in lowercase) of the concatenation of the first and last names of each author. For example, if an author's name is Joe Schwartzenberg the query should display "joeschwa". Hint: use the + concatenation operator together with the substring and lower functions.