Question: For the following statements, you are required to form SQL queries and execute them using the GUI client. Then export the result using the name
For the following statements, you are required to form SQL queries and execute them using the GUI client. Then export the result using the name "Query xcsv x being the label of each query. Put all the SQL you formed into a file named "Script.txt in the same order. Then archive the file as projectxxxxxxxxxzip", xxxxxxxxx being your student id and turn it in on Canvas. The filenames of your result has to follow the instructions exactly or you may get a deduction in your credit.
Print every hobby, along with the total number of users that included that hobby in their profile.
Print the name and address of all celebrities who are not movie stars.
Print a list of every vendor and the number of different advertisements theyre running, in descending order.
Print email, password, name, dateofbirth, kind of all celebrities who are Movie Stars and are following someone.
Print the name and email of every celebrity along with their total number of followers if the amount is over The contents should be in descending order based on the number of followers Find all pair of users AB such that A and B have not blurted on a common topic, but user A is following user B The query should print the names of A and B in that order.
Print every location, along with the total amount of blurts, where users made more than collective blurts. The query should print the name of the location and total amount of user blurts in descending order of the amount of blurts.
For each vendor, print the email of its brand ambassador along with the number of users the brand ambassador is following. Your query should print the vendor name, ambassador email, and number of users the ambassador is following. The output should be in descending order according to the numbers of users being followed.
Print the following: vendor id vendor name, vendor ambassadors email, and the total number of users that have been shown the ads from the vendor. Do this for every vendor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
