Lab01 BasicSQL

You might also like

You are on page 1of 1

Lab 1 Basic SQL

SQL Exercise Write SQL statements to perform the following queries on the pubs database: 1. List the first and last names of all authors whose first names contain the alphabett. 2. List the names of all authors who live in Oakland. 3. What are the total year-to-date-sales (ytd_sales) for all titles published? 4. How many publishers live in each country? The result should state the country and the number of publishers in that country. 5. Insert a new record with the following details into the authors table:
au_id 756-307392 au_lname Black au_fname Karen phone 415 5349222 Address 2220 McAuley St. City Oakland State CA Zip 9460 9 Contract 0

6. List the names of all employees who work for Five Lakes Publishing. 7. List the first and last names of all authors who have written at least two books.

CT004-3-3-ADVBS

Page 1 of 1

You might also like