Commit 12edb6d3 by Krishnan Sanjay

Update README.md

parent 47f78ff5
Showing with 1 additions and 1 deletions
...@@ -74,7 +74,7 @@ For each major, calculate the fraction of students who have a 4.0. Your result s ...@@ -74,7 +74,7 @@ For each major, calculate the fraction of students who have a 4.0. Your result s
Find the college that contributed the most number of students. Your result should have the first column as the college's `name` and the second column called `cnt` with the count of students who come from there. Testing Hint: The highest count is less than 100. Find the college that contributed the most number of students. Your result should have the first column as the college's `name` and the second column called `cnt` with the count of students who come from there. Testing Hint: The highest count is less than 100.
### 4a.sql ### 4a.sql
Write a query to find all the distinct cities in the hometown table that have the same name. Write a query to find all the distinct cities (rows with different id's) in the hometown table that have the same name. Hint: there may not be any but write the query any ways.
### 4b.sql ### 4b.sql
Based on your answer to 4a, how might you match the `college` and `hometown` tables? Write a query to calculate the number of colleges per-capita (total divided by the population) in each state. Keep in mind that we are interested in the total number of colleges in the state divided by the total population of the state. Your result should have two columns the first being the state name `state` and the second being the `colpc` column giving the per capita fraction. Testing Hint: All of the numbers are low. Based on your answer to 4a, how might you match the `college` and `hometown` tables? Write a query to calculate the number of colleges per-capita (total divided by the population) in each state. Keep in mind that we are interested in the total number of colleges in the state divided by the total population of the state. Your result should have two columns the first being the state name `state` and the second being the `colpc` column giving the per capita fraction. Testing Hint: All of the numbers are low.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment