Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ SELECT Count(DISTINCT( t1a )),
FROM t1
WHERE t1d IN (SELECT t2d
FROM t2
ORDER BY t2c
ORDER BY t2c, t2d
LIMIT 2)
GROUP BY t1b
ORDER BY t1b DESC NULLS FIRST
Expand All @@ -93,7 +93,7 @@ SELECT Count(DISTINCT( t1a )),
FROM t1
WHERE t1d NOT IN (SELECT t2d
FROM t2
ORDER BY t2b DESC nulls first
ORDER BY t2b DESC nulls first, t2d
LIMIT 1)
GROUP BY t1b
ORDER BY t1b NULLS last
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ SELECT Count(DISTINCT( t1a )),
FROM t1
WHERE t1d IN (SELECT t2d
FROM t2
ORDER BY t2c
ORDER BY t2c, t2d
LIMIT 2)
GROUP BY t1b
ORDER BY t1b DESC NULLS FIRST
Expand Down Expand Up @@ -136,7 +136,7 @@ SELECT Count(DISTINCT( t1a )),
FROM t1
WHERE t1d NOT IN (SELECT t2d
FROM t2
ORDER BY t2b DESC nulls first
ORDER BY t2b DESC nulls first, t2d
LIMIT 1)
GROUP BY t1b
ORDER BY t1b NULLS last
Expand Down