I am a novice APACHE HIVE user.
I have table A looks like this:
1 2 3 4 5
1 #filename-login data
2 #version:1.4
3 #id:3
4
5 Counter Time State Sum Average
6 1 2018-10-27 Normal 10 25.4
7 2 2018-10-28 Sleeping 13 30.1
8 3 2018-10-29 Normal 15 87.4
I want to create table B using the table A above. First, I want to get all the information in the table A except the first 4 rows. So the header will be 5th row.
INSERT INTO tableB
SELECT * FROM tableA
WHERE rownum>4 and int(Counter)>0
Is this query right? If anyone can give me helpful feedback, I would be very appreciated