forked from XD-DENG/SQL-exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9_questions.sql
More file actions
14 lines (13 loc) · 1.03 KB
/
Copy path9_questions.sql
File metadata and controls
14 lines (13 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
-- 9.1 give the total number of recordings in this table
-- 9.2 the number of packages listed in this table?
-- 9.3 How many times the package "Rcpp" was downloaded?
-- 9.4 How many recordings are from China ("CN")?
-- 9.5 Give the package name and how many times they're downloaded. Order by the 2nd column descently.
-- 9.6 Give the package ranking (based on how many times it was downloaded) during 9AM to 11AM
-- 9.7 How many recordings are from China ("CN") or Japan("JP") or Singapore ("SG")?
-- 9.8 Print the countries whose downloaded are more than the downloads from China ("CN")
-- 9.9 Print the average length of the package name of all the UNIQUE packages
-- 9.10 Get the package whose downloading count ranks 2nd (print package name and it's download count).
-- 9.11 Print the name of the package whose download count is bigger than 1000.
-- 9.12 The field "r_os" is the operating system of the users.
-- Here we would like to know what main system we have (ignore version number), the relevant counts, and the proportion (in percentage).