SQL embedded in PHP

Embed the following in a PHP program. You can do multiple in one program if you want to - just be sure it is clear what problem you are solving on the output. Note that the first group using the donor table. The others can be a table of your choice.
  1. Create a query to display the unique or distinct contacts from the donor table that you just created.
  2. Create a query to sort by yrgoal in descending order.
  3. Create a query to concatenate the street address so you print stadr followed by a comma and a space and then city followed by a comma and a space and then state followed by a space and then zip.
  4. Create a query to sort by datefst within state.
  5. Create a query to display all contacts that have a Jo in their name.
  6. Create a query to display all names where the first name starts with letters in the J-R range. Use the BETWEEN clause.
  7. Create a query to display all donors that live in Providence, Seekonk or Swansea. Use the IN clause.
  8. Create a query to display all people that gave their first contribution in 92.
  9. Create a query to list all donors who have Susan Jones or John Adams as their contact person and display them in the order of name within city within state.
  10. Using the table you created for SQL assignment #2, do a query using single row functions that flip the name so that it displays as first middle (if any) last instead of last/first middle. For example: Doe/John should be flipped so it displays as John DOe, Smith/Mary S should be flipped so it displays as Mary S Smith, Adams-Costa/Susan A should be flipped so it displays as Susan A Adams-Costa.
  11. Create a query where one thing has to be true and in addition either of two other things.
  12. Create a query where two things have to be true or two other things have to be true.