Re: grouping by the difference between values in rows

2014-01-21 Thread Takeshi Hashimoto
For me, it seems just use [case - when ] on the difference between x and y, and group by with output. Good luck *\(^o^)/* Sent from my iPhone On Jan 21, 2014, at 15:38, h...@tbbs.net wrote: > 2014/01/12 14:17 -0500, Larry Martell > I've been asked to do something that I do not think

Re: grouping by the difference between values in rows

2014-01-21 Thread hsv
2014/01/12 14:17 -0500, Larry Martell I've been asked to do something that I do not think is possible in SQL. I have a query that has this basic form: SELECT a, b, c, d, AVG(e), STD(e), CONCAT(x, ',', y) as f FROM t GROUP BY a, b, c, d, f x and y are numbers (378.18, 2213.797 or 378.21

Re: grouping by the difference between values in rows

2014-01-15 Thread Larry Martell
On Wed, Jan 15, 2014 at 4:06 PM, shawn l.green wrote: > Hello Larry, > > > On 1/13/2014 2:43 AM, Peter Brawley wrote: >> >> >> On 2014-01-12 9:13 PM, Larry Martell wrote: >>> >>> On Sun, Jan 12, 2014 at 2:47 PM, Peter Brawley >>> wrote: On 2014-01-12 1:17 PM, Larry Martell wrote: >

Re: grouping by the difference between values in rows

2014-01-15 Thread shawn l.green
Hello Larry, On 1/13/2014 2:43 AM, Peter Brawley wrote: On 2014-01-12 9:13 PM, Larry Martell wrote: On Sun, Jan 12, 2014 at 2:47 PM, Peter Brawley wrote: On 2014-01-12 1:17 PM, Larry Martell wrote: I've been asked to do something that I do not think is possible in SQL. I have a query that

Re: grouping by the difference between values in rows

2014-01-13 Thread Larry Martell
On Mon, Jan 13, 2014 at 2:43 AM, Peter Brawley wrote: > > On 2014-01-12 9:13 PM, Larry Martell wrote: >> >> On Sun, Jan 12, 2014 at 2:47 PM, Peter Brawley >> wrote: >>> >>> On 2014-01-12 1:17 PM, Larry Martell wrote: I've been asked to do something that I do not think is possible in SQL

Re: grouping by the difference between values in rows

2014-01-12 Thread Peter Brawley
On 2014-01-12 9:13 PM, Larry Martell wrote: On Sun, Jan 12, 2014 at 2:47 PM, Peter Brawley wrote: On 2014-01-12 1:17 PM, Larry Martell wrote: I've been asked to do something that I do not think is possible in SQL. I have a query that has this basic form: SELECT a, b, c, d, AVG(e), STD(e), C

Re: grouping by the difference between values in rows

2014-01-12 Thread Larry Martell
On Sun, Jan 12, 2014 at 2:47 PM, Peter Brawley wrote: > On 2014-01-12 1:17 PM, Larry Martell wrote: >> >> I've been asked to do something that I do not think is possible in SQL. >> >> I have a query that has this basic form: >> >> SELECT a, b, c, d, AVG(e), STD(e), CONCAT(x, ',', y) as f >> FROM t

Re: grouping by the difference between values in rows

2014-01-12 Thread Peter Brawley
On 2014-01-12 1:17 PM, Larry Martell wrote: I've been asked to do something that I do not think is possible in SQL. I have a query that has this basic form: SELECT a, b, c, d, AVG(e), STD(e), CONCAT(x, ',', y) as f FROM t GROUP BY a, b, c, d, f x and y are numbers (378.18, 2213.797 or 378.218,

grouping by the difference between values in rows

2014-01-12 Thread Larry Martell
I've been asked to do something that I do not think is possible in SQL. I have a query that has this basic form: SELECT a, b, c, d, AVG(e), STD(e), CONCAT(x, ',', y) as f FROM t GROUP BY a, b, c, d, f x and y are numbers (378.18, 2213.797 or 378.218, 2213.949 or 10053.490, 2542.094). The busine