Wie man gestern Datum in SQL bekommt
SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;
Leo
SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;