Q&A about the site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors
DECLARE @today date = GETDATE(); SELECT postId, LEN(Text) as [Length], Id AS [Comment Link] FROM Comments WHERE UPPER(Text) LIKE UPPER('%##TextKeywords##%') AND CreationDate >= DATEADD(DAY, -14, @today) AND CreationDate <= DATEADD(DAY, -7, @today) AND LEN(Text) <= 60 ORDER BY LEN(Text) ASC