- Write a program that converts Roman numerals to Arabic numerals.
- Download this SQLite database and write a SQL statement that:
- Selects the names of all products that are not on sale.
- Selects the names of all products that cost less than $20.
- Selects the name and price of the most expensive product.
- Selects the name and price of the second most expensive product.
- Selects the name and price of the least expensive product.
- Selects the names and prices of all products, ordered by price in descending order.
- Selects the average price of all products.
- Selects the sum of the price of all products.
- Selects the sum of the price of all products whose prices is less than $20.
- Selects the id of the user with your name.
- Selects the names of all users whose names start with the letter "A".
- Selects the number of users whose first names are "Jonathan".
- Selects the number of users who want a "Teddy Bear".
- Selects the count of items on the wishlish of the user with your name.
- Selects the count and name of all products on the wishlist, ordered by count in descending order.
- Selects the count and name of all products that are not on sale on the wishlist, ordered by count in descending order.
- Inserts a user with the name "Jonathan Postel" into the users table. Ensure the created_at column is set to the current time.
- Selects the id of the user with the name "Jonathan Postel"? Ensure the created_at column is set to the current time.
- Inserts a wishlist entry for the user with the name "Jonathan Postel" for the product "The Ruby Programming Language".
- Updates the name of the "Jonathan Postel" user to be "Jon Postel".
- Deletes the user with the name "Jon Postel".
- Deletes the wishlist item for the user you just deleted.
Created
April 2, 2013 00:05
-
-
Save sferik/5288857 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment