Last active
May 14, 2019 04:00
Revisions
-
lettergram revised this gist
May 14, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ /** * comments * author * comment_text -
lettergram revised this gist
May 14, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ * comment_text * created_at **/ SELECT author, created_at FROM (SELECT * FROM comments WHERE (created_at >= NOW() - interval '6 month') ORDER BY created_at DESC LIMIT 100) subquery -
lettergram revised this gist
May 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,4 @@ SELECT author, created_at FROM (SELECT * FROM comments WHERE (created_at >= NOW() - interval '6 month') ORDER BY created_at DESC LIMIT 100) subquery ORDER BY author ASC; -
lettergram revised this gist
May 14, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ /** * Table Structure: * comments * author * comment_text -
lettergram revised this gist
May 14, 2019 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,12 @@ /** * Table Structure: * * comments * author * comment_text * created_at **/ SELECT author, created_at FROM (SELECT * FROM comments WHERE (created_at >= NOW() - interval '6 month') ORDER BY created_at DESC LIMIT 100) subquery -
lettergram renamed this gist
May 14, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lettergram created this gist
May 14, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ SELECT author, created_at FROM (SELECT * FROM comments WHERE (created_at >= NOW() - interval '6 month') ORDER BY created_at DESC LIMIT 100) subquery ORDER BY author ASC NULLS LAST LIMIT 10;