Reputation: 1414
The existing database's table has a column "dateline" with int data type. It stores timestamp. How can I extract date from it.
Dateline (int)
_____________
1314182844
1298122381
1298122956
Advise on how can I extract the date part from this in the following query.
select * from TableName where Dateline between '2013-10-01' and '2013-10-31'
I tried using cast, dateformat, convert, but nothing gave the desired result.
P.S. PLEASE NOTE THE DATA TYPE STORAGE IS INTEGER..
Upvotes: 0
Views: 392