You are viewing a single comment's thread from:

RE: Engagement away from home

in #engagement5 years ago (edited)

It does the job :)

Thanks for the tip on dates. I usually take the day month year out of timestamp/created and build my own date - much easier when exporting to excel I find.

select
cast(day(timestamp)as varchar(20)) + '/' + cast(month(timestamp)as varchar(20)) + '/' + cast(year(timestamp)as varchar(20))

Sort:  

If you plan to export a date part to Excel, better (and faster) to use CONVERT(DATE,timestamp)

That works, cheers :D

yoda.png Your SQL skills, improved they are now!