SQL Server/Excel
select getdate() 'Today',convert(int,getdate())
Oracle
select current_date,cast(current_date - date '1900-01-01' as int)
from dual;
14-NOV-16 42687
useful things about data, databases, data warehouse and related stuff. The opinions expressed in this blog are mine alone. They may not necessarily reflect that of my employers and customers - both past or present. The comments left by the reviewers are theirs alone and may not reflect my opinion whether implied or not. None of the advice is warranted to be free of errors and omission. Please use at your own risk and after thorough testing in your environment.
No comments:
Post a Comment