The document provides SQL queries to retrieve data from a 'people' table in a PostgreSQL database. The first query selects names from the table where the second letter is 'r'. The second query calculates the percentage of people in the table who have a deathdate recorded, aliases this result as 'percentage_dead', and correctly uses 100.0 instead of 100 in the calculation.
The document provides SQL queries to retrieve data from a 'people' table in a PostgreSQL database. The first query selects names from the table where the second letter is 'r'. The second query calculates the percentage of people in the table who have a deathdate recorded, aliases this result as 'percentage_dead', and correctly uses 100.0 instead of 100 in the calculation.
The document provides SQL queries to retrieve data from a 'people' table in a PostgreSQL database. The first query selects names from the table where the second letter is 'r'. The second query calculates the percentage of people in the table who have a deathdate recorded, aliases this result as 'percentage_dead', and correctly uses 100.0 instead of 100 in the calculation.
The document provides SQL queries to retrieve data from a 'people' table in a PostgreSQL database. The first query selects names from the table where the second letter is 'r'. The second query calculates the percentage of people in the table who have a deathdate recorded, aliases this result as 'percentage_dead', and correctly uses 100.0 instead of 100 in the calculation.