Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 936 Bytes

Sql-practice-basic-queries-review-R.md

File metadata and controls

21 lines (17 loc) · 936 Bytes
layout topic title language
exercise
SQL Practice
Basic Queries Review
R

This is a follow-up to [Introduction to Databases]({{ site.baseurl }}/assignments/sql-queries).

Download the [sql-practice.sqlite database]({{ site.baseurl }}/data/sql-practice.sqlite). Open it in SQLite Manager and write a query for each of the following:

When writing the query to satisfy each research question, take a second to think carefully about which fields are actually relevant. Write your query so that only these relevant fields are selected for the final output. In other words, if you are going to continue with an analysis of the data you select, which fields do you actually need? (HINT: none of these problems should have SELECT * in the answer.)

  1. What is the distribution of males and females that weigh greater than 10?
  2. Where (in what sites) are the 10 heaviest males?
  3. How many females are at each site?