Skip to content

Instantly share code, notes, and snippets.

@camsom
Created October 7, 2014 18:48
Show Gist options
  • Save camsom/460fa9d6ab0f79f6d858 to your computer and use it in GitHub Desktop.
Save camsom/460fa9d6ab0f79f6d858 to your computer and use it in GitHub Desktop.
SELECT * FROM date_table WHERE rankscore();
CREATE FUNCTION rank_score() RETURNS decimal as $$
BEGIN
return date_table.birthday + interval '50 days'
END; $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment