Skip to main content
20 events
when toggle format what by license comment
Sep 10, 2021 at 1:16 history edited Erwin Brandstetter CC BY-SA 4.0
markup, format, links, fiddles
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Apr 13, 2017 at 12:42 history edited CommunityBot
replaced http://dba.stackexchange.com/ with https://dba.stackexchange.com/
Mar 26, 2017 at 2:02 history edited Erwin Brandstetter CC BY-SA 3.0
clarify sort
Mar 14, 2017 at 5:57 comment added Evan Carroll Here is one question In what case is a count(x or null) needed in the Gaps and Islands?
Mar 14, 2017 at 5:44 comment added Evan Carroll I would put them in two seperate self-answered questions because I'm sure I'm not the only one wondering what count(x or null) does. I'll be happy to ask both questions if you would prefer.
Mar 14, 2017 at 5:39 comment added Evan Carroll Read this a few times - still unsure of what you're talking about with the three argument lag or when you'd have to use count(x or null) or even what it's doing there. Perhaps you could show some samples where it is required, because it's not required here. And, what would key the requirement to cover those corner cases. BTW, I changed my downvote to the upvote just for the pl/pgsql example. That's really cool. (But, generally I'm against answers that summarize other answers or cover corner cases -- though I hate to say that this is a corner case because I don't understand it).
Mar 11, 2017 at 2:43 history edited Erwin Brandstetter CC BY-SA 3.0
clarify unique requirement per comment from Erik
Mar 11, 2017 at 2:38 history edited Erwin Brandstetter CC BY-SA 3.0
clarify unique requirement per comment from Erik
Mar 9, 2017 at 16:37 history edited Erwin Brandstetter CC BY-SA 3.0
add links
Mar 9, 2017 at 16:21 history edited Erwin Brandstetter CC BY-SA 3.0
add 3rd variant, format, add fiddle for all
Mar 7, 2017 at 17:01 history edited Erwin Brandstetter CC BY-SA 3.0
typo
Mar 7, 2017 at 16:25 history edited Erwin Brandstetter CC BY-SA 3.0
add fiddle
Mar 7, 2017 at 16:04 history edited Erwin Brandstetter CC BY-SA 3.0
add faster solution
Mar 7, 2017 at 14:20 vote accept Lelo
Mar 8, 2017 at 11:26
Mar 6, 2017 at 23:53 history edited Erwin Brandstetter CC BY-SA 3.0
clean up
Mar 6, 2017 at 23:41 history edited Erwin Brandstetter CC BY-SA 3.0
added 13 characters in body
Mar 6, 2017 at 23:23 history edited Erwin Brandstetter CC BY-SA 3.0
about lag()
Mar 6, 2017 at 23:18 history edited Erwin Brandstetter CC BY-SA 3.0
added 596 characters in body
Mar 6, 2017 at 23:13 history answered Erwin Brandstetter CC BY-SA 3.0