Comment obtenir la date d'hier dans SQL
SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;
Leo
SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;