Re: [GENERAL] window function help

2014-04-03 Thread David Johnston
Andy Colson wrote > On 4/3/2014 11:09 AM, David Johnston wrote: >> Andy Colson wrote >>> On 4/3/2014 10:27 AM, Schnabel, Robert D. wrote: I'm trying to figure out how to count the number of rows within a fixed range of the current row value. My table looks like this: SELECT chr

Re: [GENERAL] window function help

2014-04-03 Thread Andy Colson
On 4/3/2014 11:09 AM, David Johnston wrote: Andy Colson wrote On 4/3/2014 10:27 AM, Schnabel, Robert D. wrote: I'm trying to figure out how to count the number of rows within a fixed range of the current row value. My table looks like this: SELECT chr_pos FROM mutations_crosstab_9615_99 WHERE

Re: [GENERAL] window function help

2014-04-03 Thread Schnabel, Robert D.
-Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of David Johnston Sent: Thursday, April 03, 2014 11:09 AM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] window function help Andy Colson wrote > On 4/3/2014 10

Re: [GENERAL] window function help

2014-04-03 Thread David Johnston
Andy Colson wrote > On 4/3/2014 10:27 AM, Schnabel, Robert D. wrote: >> I'm trying to figure out how to count the number of rows within a fixed >> range of the current row value. My table looks like this: >> >> SELECT chr_pos >> FROM mutations_crosstab_9615_99 >> WHERE bta = 38 >> LIMIT 10 >> >> c

Re: [GENERAL] window function help

2014-04-03 Thread Andy Colson
On 4/3/2014 10:27 AM, Schnabel, Robert D. wrote: Hi, I'm trying to figure out how to count the number of rows within a fixed range of the current row value. My table looks like this: SELECT chr_pos FROM mutations_crosstab_9615_99 WHERE bta = 38 LIMIT 10 chr_pos 138 140 163 174 187 187 188 20