Professional Documents
Culture Documents
HQL--Creating Tables:
Create table emp (empno int,ename string,job string,mgr int,hiredate string,sal int,deptno int)
Note: I have used bigint here, we can use int too.(Based on precision).
Create table dept(deptno int,dname string,loc string) ROW FORMAT DELIMITED FIELDS TERMINAT
LINES TERMINATED BY \n;
Create table salgrade(grade int,losal int,hisal int) ROW FORMAT DELIMITED FIELDS TERMINATED B
LINES TERMINATED BY \n;
I have used Sqoop to import sample data to load into hive table.