select all link by in one week

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT *
FROM PostLinks pl
JOIN Posts as tp ON tp.Id = pl.PostId
JOIN Users as tu ON tu.Id = tp.OwnerUserId
JOIN Posts as mp ON mp.Id = pl.RelatedPostId
JOIN Users as mu ON mu.Id = mp.OwnerUserId
WHERE pl.LinkTypeId = 3
--AND tp.CreationDate > mp.CreationDate
--AND ((tp.Score*1.0)/(tp.ViewCount+1)) > ( (mp.Score*1.0)/(mp.ViewCount+1))
AND pl.CreationDate > '2021-09-06 00:00:00'
AND pl.CreationDate < '2021-09-13 00:00:00'
ORDER BY pl.CreationDate DESC

Enter Parameters

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