Skip to content
Advertisement

Tag: timestamp

HIVE converting unix timestamp for calculation

I’m trying to perform subtraction among timestamps and would like to convert the timestamps in forms that can be converted to minutes. I used regexp_replace to convert timestamp in such form: The following code will convert it to seconds I have other two timestamps that I wish to convert to seconds, such as: How should I convert these two timestamp

How do I fix ORA-01843: not a valid month?

So at the query level, I have it: And I’ve tried looking at a few articles with one most notable: How to change the date format in Oracle BI Publisher? I have also tried using: While going through structure and XML I noticed my date is in string format: element name=”DATETIME” value=”DATETIME” label=”DATETIME” dataType=”xsd:string” breakOrder=”ascending” fieldOrder=”3″ So I removed the

Complex SQL query by pattern with timestamps

I have the following info in my SQLite database: I want to perform a query that returns the elements that compose an episode. An episode is a set of ordered registers that comply the following requirements: The first element is greater than zero. The previous element of the first one is zero. The last element is greater than zero. The

SQLite – TimeStamp to Date

I am trying to convert a timestamp to date in SQLite. But it give me always Null back, I try many solution I find out, but any solution works for me Here is my request : Thats my SQL script, if you want to try: Answer To expand on @forpas comment, SQLite does not have a TIMESTAMP data type, so

SQL Server 18 – merging dates around midnight

I would like to ask if anyone could help me with this. I have a table with user traffic on websites. The important column is Timestamp which looks like this. Timestamps are used to calculate sessions. An hour or so in timestamps means one session. The problem is that calculated session is different when the activity on the websites was

Advertisement