Database schema: create table ChangeLogs(Id Integer Primary Key, CorrelationId uniqueidentifier, UserId integer FK->ApplicationUsers.Id, ChangeDate DateTime, EntityType Integer, EntityId Integer, FieldName varchar(256), PreviousValue varchar(max), NewValue varchar(max));
Question: show me a list of all changelogs created since yesterday
SQL: Select id, UserId, ChangeDate, EntityType, EntityId, FieldName, PreviousValue, NewValue from Changelogs where ChangeDate >= cast(dateadd(day, -1, getdate()) as date)