Re: [SQL] need nelp with aggregate functions

2009-11-19 Thread Another Trad
- > *From:* Another Trad > *To:* Oliveiros C, > *Cc:* [email protected] > *Sent:* Wednesday, November 18, 2009 5:37 PM > *Subject:* Re: [SQL] need nelp with aggregate functions > > ok, I did: SELECT count(DISTINCT c.cliente_id) as > qtd_client,count(cm.cm_id) as qtd

Re: [SQL] need nelp with aggregate functions

2009-11-19 Thread Oliveiros C,
appearing more than once... It's basically that... Hope this helped Best, Oliveiros - Original Message - From: Another Trad To: Oliveiros C, Cc: [email protected] Sent: Wednesday, November 18, 2009 5:37 PM Subject: Re: [SQL] need nelp with aggregate functions

Re: [SQL] need nelp with aggregate functions

2009-11-18 Thread Another Trad
--- > *From:* Another Trad > *To:* [email protected] > *Sent:* Wednesday, November 18, 2009 4:55 PM > *Subject:* [SQL] need nelp with aggregate functions > > The DB structure is in attachment. > I with the number of clients and the number of computers that have > proce

Re: [SQL] need nelp with aggregate functions

2009-11-18 Thread Oliveiros C,
- From: Another Trad To: [email protected] Sent: Wednesday, November 18, 2009 4:55 PM Subject: [SQL] need nelp with aggregate functions The DB structure is in attachment. I with the number of clients and the number of computers that have processors with "manufac

Re: [SQL] need nelp with aggregate functions

2009-11-18 Thread Scott Marlowe
On Wed, Nov 18, 2009 at 9:55 AM, Another Trad wrote: > The DB structure is in attachment. > I with the number of clients and the number of computers that have > processors with "manufacturer" = "INTEL" and "speed" = "2GB" > I am trying: > > select count(c) as qtd_client, count(cm) as qtd_computers

[SQL] need nelp with aggregate functions

2009-11-18 Thread Another Trad
The DB structure is in attachment. I with the number of clients and the number of computers that have processors with "manufacturer" = "INTEL" and "speed" = "2GB" I am trying: select count(c) as qtd_client, count(cm) as qtd_computers from cliente c inner JOIN computer cm on (c.cliente_id = cm.