Created
January 25, 2013 17:51
-
-
Save msakrejda/4636463 to your computer and use it in GitHub Desktop.
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 characters
maciek=# select g as "2", 1.0 / g as "1" from generate_series(1, 3) g order by 2; | |
2 | 1 | |
---+------------------------ | |
3 | 0.33333333333333333333 | |
2 | 0.50000000000000000000 | |
1 | 1.00000000000000000000 | |
(3 rows) | |
maciek=# select g as "2", 1.0 / g as "1" from generate_series(1, 3) g order by "2"; | |
2 | 1 | |
---+------------------------ | |
1 | 1.00000000000000000000 | |
2 | 0.50000000000000000000 | |
3 | 0.33333333333333333333 | |
(3 rows) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment