Question: A table named world is created in Hive using the following command: create table world ( country string, population int, GDP float, GINI float )
A table named world is created in Hive using the following command:
create table world country string, population int, GDP float, GINI float
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ;
Data is loaded into this table from a CSV file. Population is in millions.
Write HiveQL queries to find the following:
List of countries in which the population is more than million
The country with the highest GDP
The country with the lowest value for the GINI coefficient
Name of countries with the highest population.
Marks:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
