Skip to content

Commit

Permalink
job9 completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Aimen-prog committed Jan 3, 2024
1 parent 395f76e commit 27814b2
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions job9.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-- Étudiez au moins 6 autres variables de world afin d’obtenir des insights pertinents (Literacy, Net migration, Birthrate, Deathrate, Infant mortality, Arable, Crops, …)


-- Literacy Rate Insights:

SELECT AVG(Literacy_Rate) AS average_literacy_rate,
MAX(Literacy_Rate) AS max_literacy_rate,
MIN(Literacy_Rate) AS min_literacy_rate
FROM world;


-- Net Migration Insights:


SELECT AVG(Net_Migration) AS average_net_migration,
SUM(Net_Migration) AS total_net_migration
FROM world;




-- Birthrate and Deathrate Insights:


SELECT AVG(Birthrate) AS average_birthrate,
AVG(Deathrate) AS average_deathrate
FROM world;




-- Infant Mortality Insights:

SELECT MAX(Infant_Mortality) AS max_infant_mortality_country,
MIN(Infant_Mortality) AS min_infant_mortality_country
FROM world;



-- Arable and Crops Insights:

SELECT AVG(Arable_Percent) AS average_arable_percent, AVG(Crops_Percent) AS average_crops_percent FROM world;



-- Average and Total Crops Percentage:

SELECT AVG(Crops_Percent) AS average_crops_percent,
SUM(Crops_Percent) AS total_crops_percent
FROM world;

0 comments on commit 27814b2

Please sign in to comment.