Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> most sold pc's query?

most sold pc's query?

From: drukqs <invalid.drukqs_at_NOpandoraSPAM.belgie>
Date: Fri, 09 May 2003 12:35:56 GMT
Message-ID: <Xns9376952B0296Cinvaliddrukqspandora@195.130.132.68>


Hello
In a form I like to display which pc's are sold the most in one month. This is what I have:

declare

        pcnr varchar2(6);
begin
select count(pcnr)
into :testblock.number_of_pcs
from computerssold
where pcnr = computerssold.pcnr
end;

Now this is to count all the computers sold ever. I get back a number of how many computers are sold ever (you get it). Now I like to display the computer sold the most times in one month. Hope someone can help me a bit. Thx Received on Fri May 09 2003 - 07:35:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US