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:
1. List of countries in which the population is more than 10 million
2. The country with the highest GDP
3. The country with the lowest value for the GINI coefficient
4. Name of 5 countries with the highest population.
[Marks: 5]
***********

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!