Skip to content

Tag: sql

Rounding time untill in SQL

I have a table with timestamp that I want to round off at 15 min. interval. I can round off using the below Query but it rounds off both 11:58 and 12:02 to 12:00 which is not what I want. I would like …

Select data from date range in DB2 SQL

I have a trouble trying get a data in DB2 SQL. I have a table Name StProdMoves and it holds data like this ProdName | Status | Brand | Type | Date(Numeric) ———-+———+——-+——-+—–…

How to split a column in two columns

I have an issue with a table called “movies”. I found the date and the movie title are both in the title column. As shown in the picture: I don’t know how to deal with this kind of issues. So, I …