Hi i've written this bit of code to extract data from a table for the last 7 days, i just like to know id this the best way of going this.
select open_dt
from dbo.tbl_metrics_grca_fl
where open_dt >= convert(datetime,convert(char(8),getdate()-7,112))
Thanks