Skip to content

Cummulative sum up to a date

I have a table with 4 columns. that looks something like this. +————————————————————-+ | ID | date | a1 | a2 | +—–…

PostgreSQL select specific items from JSONB array

I have a table like this: orders order_number products 1234 [{“upc”:2434354, “title”:”Widget”}] 4321 [{“upc”:6434556, “title”:”Shorts”}, {“upc”:54346, title: “Shirt”}] I want …

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 m…

how to combine not null columns in query?

I have a table with only a full column in each row And the rest of the columns are null as follows: +——————————————————————————–+ | f_id | …

Export ER diagrams from SSMS

I have some ER diagrams created in the development server. I want to export this as PDF and share with my analyst for further usage. The diagram needs to be in PDF format alone since the analyst doesn’…