How can we access data with simple SQL knowledge in hive

0 votes

Hi,

I am new in hive but have idea in SQL, Can anyone tell me how can we can access data in hive with simple SQL knowledge?

May 16, 2019 in Big Data Hadoop by simba
453 views

1 answer to this question.

0 votes

Hey,

The following examples are simple, common data access queries that work on Hive as well as most SQL compatible RDBMS.

  • Syntax:
SELECT * FROM table;

Retrieves all columns from all rows from a table.

  • Similarly aggregations with GROUP BY and ordering of results are supported as expected,

SELECT col1, col2 FROM table GROUP BY col1, col2 ORDER BY col2 DESC;

These examples show how easy it is for anyone with SQL knowledge to log into a Hive command.

answered May 16, 2019 by Gitika
• 65,910 points

Related Questions In Big Data Hadoop

–1 vote
1 answer

How we can run spark SQL over hive tables in our cluster?

Open spark-shell. scala> import org.apache.spark.sql.hive._ scala> val hc = ...READ MORE

answered Dec 26, 2018 in Big Data Hadoop by Omkar
• 69,210 points
1,106 views
0 votes
1 answer

How can we use IN/EXIST operator in Hive?

Hey, Yes, now Hive supports IN or EXIST, ...READ MORE

answered Jun 19, 2019 in Big Data Hadoop by Gitika
• 65,910 points
7,991 views
0 votes
1 answer

How can you change a column data type in Hive?

Hi, By using this command below one can ...READ MORE

answered Jun 24, 2019 in Big Data Hadoop by Gitika
• 65,910 points
29,435 views
0 votes
1 answer

How can I import data from mysql to hive tables with incremental data?

Hi@dharmendra, It is common to perform one-time ingestion ...READ MORE

answered Nov 23, 2020 in Big Data Hadoop by MD
• 95,440 points
1,024 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
10,556 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,185 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,207 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
4,260 views
0 votes
1 answer

How can create the dynamic partition table with data in Hive?

Hi, We can see some steps to do ...READ MORE

answered Jun 20, 2019 in Big Data Hadoop by Gitika
• 65,910 points
4,252 views
0 votes
1 answer

How can we configure remote metastore mode in Hive?

Hey,  Basically, hive-site.xml file has to be configured ...READ MORE

answered Jun 19, 2019 in Big Data Hadoop by Gitika
• 65,910 points
1,143 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP