sql unguided exercise
TRANSCRIPT
-
8/12/2019 SQL Unguided Exercise
1/1
1. Create a query that will count all book titles under the databases category2. Create a query that will display the total number of registered male users3. Create a query that will list all book titles, together with their IS!s that belong to "IC#"
category$. Create a query that will list all books with a unit price that is at most %& dollars. Include in the
list the book"s IS!, title, author, category and unit price%. Create a query that will list all books with a unit price that is within %& and 1&& dollars. Include
in the list the book"s IS!, title, author, category and unit price
'. Create a query that will only display those users whose role in the system is a "member".Include the user"s id, last name, gender and role in the generated list
(. Create a query that will only display those female users whose role in the system is a"member". Include the user"s id, last name, gender and role in the generated list
). Create a query that will display a list of books that belong to any of the following categories*networking, IC# and programming. Include the each book"s IS!, title and category
+. Create a query that will count the number of users whose last name starts with letter "m"1&.Create a query that will display the id, name and address of all users whose first name ends
with letter "o"11.Create a query that will display the id, name and address of all users whose first and last name
end with letter "o"
12.Create a query that will display the id, name and address of all users who hae letter "a" in theirfirst names
13.Create a query that will list all names of users from #-S/0S and arrange them by name ina descending order.
1$.odify the query created from the preious requirement for it to display those who are male ingender
1%.Create a query that will display a list of book titles and arranged them by unit price. #hearrangement must be from the cheapest to the most epensie book in the list. #he followingfield must be included in the generated list* IS!, title, author, category, publisher and unit
price
1'.odify the preious query so that it displays !-4 those books under the category databasesand IC#.
1(.Create a query that will produce a list of books that will include each book"s IS!, title, authorand quantity. #he list must start from the book with the most numbers of copies down to thebook with the fewest copies
1).odify the preious query so that it displays !-4 those books written by authors whosenames start with letter "5" and a unit price that falls below (& dollars
1+.Create a query that will display another list of books written by authors whose names start withletter "-" and category that falls under the IC#, databases or programming. 5rrange the list byIS! in a descending order
2&.Create a query that will produce a user list that includes each user"s id, name, gender,username and password. #he list must be alphabetically arranged by username
21.odify the preious query so that it displays !-4 those users whose gender is female maleand whose names with letter 6a7 in it.
22.Create a query that computes and displays the aerage unit price of books listed in querynumber $
/8mail your answer in the following address*[email protected]
mailto:[email protected]:[email protected]