Como obter a data de ontem no SQL

SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;
Leo