SELECT a.TagId, c.Tagname, b.TagId, d.Tagname, COUNT(*) a...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 650000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 700000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 750000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 800000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 850000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 900000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 950000 ROWS FETCH NEXT 50000 ROWS ONLY;

SELECT
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname,
       COUNT(*) as CountRelations
FROM PostTags AS a
JOIN PostTags AS b 
  ON a.PostId = b.PostId
JOIN Tags AS c 
  ON c.Id = a.TagId
JOIN Tags AS d
  ON d.Id = b.TagId
WHERE a.TagId != b.TagId
GROUP BY 
       a.TagId,
       c.Tagname,
       b.TagId,
       d.Tagname
ORDER BY CountRelations DESC
OFFSET 1000000 ROWS FETCH NEXT 50000 ROWS ONLY;

Enter Parameters

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