Skip to content
Advertisement

Generate range hours and range numbres SQL/HQL

I have a problem with a table.I currently have this empty hours table and I need to fill it automatically with a query in Hiveql. The idea is to generate:

  • In the first column “key” values between 000000 and 235959
  • In the second column “hours” values between 00:00:00 and 23:59:59.

Now my table is empty:

Future table that I need will be:

How can I do this?

Advertisement

Answer

Result:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement