DECLARE @searchText NVARCHAR(100) = '%AKIA%' DECLARE @dat...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

DECLARE @searchText NVARCHAR(100) = '%AKIA%'
DECLARE @dateFrom DATETIME = '2024-01-01' -- YYYY-MM-DD
DECLARE @dateUntil DATETIME = '2024-05-24' -- YYYY-MM-DD


-- Searching in Posts
SELECT Body
FROM Posts
WHERE Body LIKE @searchText AND CreationDate >= @dateFrom AND CreationDate < @dateUntil

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results