<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Hadoop%3A_Hive_contekan_SQL</id>
	<title>Hadoop: Hive contekan SQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Hadoop%3A_Hive_contekan_SQL"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Hadoop:_Hive_contekan_SQL&amp;action=history"/>
	<updated>2026-05-04T22:46:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Hadoop:_Hive_contekan_SQL&amp;diff=44965&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Sumber: http://hortonworks.com/hadoop/hive/#section_5    SQL and HiveQL  Apache Hive is data warehouse infrastructure built on top of Apache Hadoop for providing data summarization, ad-hoc...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Hadoop:_Hive_contekan_SQL&amp;diff=44965&amp;oldid=prev"/>
		<updated>2015-11-13T22:25:25Z</updated>

		<summary type="html">&lt;p&gt;New page: Sumber: http://hortonworks.com/hadoop/hive/#section_5    SQL and HiveQL  Apache Hive is data warehouse infrastructure built on top of Apache Hadoop for providing data summarization, ad-hoc...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://hortonworks.com/hadoop/hive/#section_5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL and HiveQL&lt;br /&gt;
&lt;br /&gt;
Apache Hive is data warehouse infrastructure built on top of Apache Hadoop for providing data summarization, ad-hoc query, and analysis of large datasets. It provides a mechanism to project structure onto the data in Hadoop and to query that data using a SQL-like language called HiveQL (HQL).&lt;br /&gt;
&lt;br /&gt;
Naturally, there are a bunch of differences between SQL and HiveQL, but on the other hand there are a lot of similarities too, and recent releases of Hive bring that SQL-92 compatibility closer still.&lt;br /&gt;
&lt;br /&gt;
Below is some basic information to get you started. Of course, if you really want to get to grips with Hive, then take a look at the full language manual.&lt;br /&gt;
SQL to HQL Cheat Sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Retrieving Information&lt;br /&gt;
Function 	MySQL 	Hive&lt;br /&gt;
Retrieving Information (General) 	SELECT from_columns FROM table WHERE conditions; 	SELECT from_columns FROM table WHERE conditions;&lt;br /&gt;
Retrieving All Values 	SELECT * FROM table; 	SELECT * FROM table;&lt;br /&gt;
Retrieving Some Values 	SELECT * FROM table WHERE rec_name = &amp;quot;value&amp;quot;; 	SELECT * FROM table WHERE rec_name = &amp;quot;value&amp;quot;;&lt;br /&gt;
Retrieving With Multiple Criteria 	SELECT * FROM TABLE WHERE rec1 = &amp;quot;value1&amp;quot; AND rec2 = &amp;quot;value2&amp;quot;; 	SELECT * FROM TABLE WHERE rec1 = &amp;quot;value1&amp;quot; AND rec2 = &amp;quot;value2&amp;quot;;&lt;br /&gt;
Retrieving Specific Columns 	SELECT column_name FROM table; 	SELECT column_name FROM table;&lt;br /&gt;
Retrieving Unique Output 	SELECT DISTINCT column_name FROM table; 	SELECT DISTINCT column_name FROM table;&lt;br /&gt;
Sorting 	SELECT col1, col2 FROM table ORDER BY col2; 	SELECT col1, col2 FROM table ORDER BY col2;&lt;br /&gt;
Sorting Reverse 	SELECT col1, col2 FROM table ORDER BY col2 DESC; 	SELECT col1, col2 FROM table ORDER BY col2 DESC;&lt;br /&gt;
Counting Rows 	SELECT COUNT(*) FROM table; 	SELECT COUNT(*) FROM table;&lt;br /&gt;
Grouping With Counting 	SELECT owner, COUNT(*) FROM table GROUP BY owner; 	SELECT owner, COUNT(*) FROM table GROUP BY owner;&lt;br /&gt;
Maximum Value 	SELECT MAX(col_name) AS label FROM table; 	SELECT MAX(col_name) AS label FROM table;&lt;br /&gt;
Selecting from multiple tables (Join same table using alias w/”AS”) 	SELECT pet.name, comment FROM pet, event WHERE pet.name = event.name; 	SELECT pet.name, comment FROM pet JOIN event ON (pet.name = event.name)&lt;br /&gt;
Metadata&lt;br /&gt;
Function 	MySQL 	Hive&lt;br /&gt;
Selecting a database 	USE database; 	USE database;&lt;br /&gt;
Listing databases 	SHOW DATABASES; 	SHOW DATABASES;&lt;br /&gt;
Listing tables in a database 	SHOW TABLES; 	SHOW TABLES;&lt;br /&gt;
Describing the format of a table 	DESCRIBE table; 	DESCRIBE (FORMATTED|EXTENDED) table;&lt;br /&gt;
Creating a database 	CREATE DATABASE db_name; 	CREATE DATABASE db_name;&lt;br /&gt;
Dropping a database 	DROP DATABASE db_name; 	DROP DATABASE db_name (CASCADE);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://hortonworks.com/hadoop/hive/#section_5&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>