I try to return the count greater that first day of previous month from column 'dt' in HIVE table.
I use below, and don't work:
select count (*) from my_table
where dt > from_unixtime(unix_tmestamp(dt,'yyyyMMdd'))```
I try to return the count greater that first day of previous month from column 'dt' in HIVE table.
I use below, and don't work:
select count (*) from my_table
where dt > from_unixtime(unix_tmestamp(dt,'yyyyMMdd'))```