Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuser22
Creator II
Creator II

Latest partition in sql query

HI 

I am creating an app with KPI's. Iam using a HIVE database. I have three fields in my table Year, Month , Date. I want to find the latest partition daily from these three fields.(year,month,date). 

I want to find the max of all the three fields and write a SQL query to obtain the result. Please do help. 

I have tried like,

Load

..

..

SQL Select * from HIVE.''.'';

Temp:

load max(year) as maxyear,

max(month) as maxmonth,

max(date) as maxdate

resident table;

SQL select * from HIVE.''.'' where....

I am not sure how to obtain the result using WHERE clause. 

 

Please any help. thanks. 

1 Reply
qlikuser22
Creator II
Creator II
Author

Ány document on Incremental load using SQL query. ?? DO help