SitesMasstec
Programmer
My table ESTOQUE.DBF (Products) which has a field - Eforn - which stores the Supplier name.
To get all supplier names I use the command:
It produces in the cursor:
ALLISTAIR MARKET
BERT INDUSTRIAL
DAWSON & SONS
etc...
This is OK.
But is it possible to, besides get all suppliers names (above), to have also the quantity of products (records in Estoque.DBF) from each supplier, without having to create another cursor or temporary file? For example:
ALLISTAIR MARKET 13
BERT INDUSTRIAL 5
DAWSON & SONS 20
etc...
Thank you,
SitesMasstec
To get all supplier names I use the command:
Code:
SELECT DISTINCT Eforn FROM Estoque ORDER BY Eforn INTO CURSOR curFornece
It produces in the cursor:
ALLISTAIR MARKET
BERT INDUSTRIAL
DAWSON & SONS
etc...
This is OK.
But is it possible to, besides get all suppliers names (above), to have also the quantity of products (records in Estoque.DBF) from each supplier, without having to create another cursor or temporary file? For example:
ALLISTAIR MARKET 13
BERT INDUSTRIAL 5
DAWSON & SONS 20
etc...
Thank you,
SitesMasstec