Query: SQL vs Apache Pig
SQL Queries are used to get data from tables by using SELECT statements with suitable filters and sorting. In this post, I'll attempt to illustrate how to build a query in Apache Pig in a manner comparable to how SQL queries extract data.
SQL Queries are used to get data from tables by using SELECT statements with suitable filters and sorting. In this post, I’ll attempt to illustrate how to build a query in Apache Pig in a manner comparable to how SQL queries extract data. Take a look at the sample below, which summarizes salaries by department, in SQL. SELECT Dname, SUM(Sal) TotalSal FROM emp eJOIN dept d ON e.deptno =…
View On WordPress











