Re: Need for distinct sum

2006-04-05 Thread Yasir Assam
Many thanks for your reply Shawn - I have some comments below. > Hello, > > I need to be able to sum over distinct values but I can't seem to do it > unless I use sub-selects (which I want to avoid doing). > > To see what I mean, I've constructed a toy DB: > > DROP TABLE IF EXISTS spell; > CREA

Re: Need for distinct sum

2006-04-04 Thread SGreen
Yasir Assam <[EMAIL PROTECTED]> wrote on 04/03/2006 11:09:01 PM: > Hello, > > I need to be able to sum over distinct values but I can't seem to do it > unless I use sub-selects (which I want to avoid doing). > > To see what I mean, I've constructed a toy DB: > > DROP TABLE IF EXISTS spell; > C

Need for distinct sum

2006-04-03 Thread Yasir Assam
Hello, I need to be able to sum over distinct values but I can't seem to do it unless I use sub-selects (which I want to avoid doing). To see what I mean, I've constructed a toy DB: DROP TABLE IF EXISTS spell; CREATE TABLE spell ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, power F