Hi
I am using FoxPro 9.0 and have a table MyTable with very many records, new to this language I am struggling to understand the basic commands. MyTable looks like
MyTable
-----------------------------------------------------------------------
Customer NbItem Item Total
C01 3 shoes 3
C04 2 socks 2
K91 2 lace 2
C01 1 statue 1
What I want to do is make different calculations for each customer. So I need to gather all records with same customer name and take the other fields for calculations. I have used DISTINCT to find the number of unique customer, but I also have to do some sort of loop (I think) as I will be using customer name for identification in another table.
Google havn't been my friend with this. I hope to find some answer here (fingers crossed)
I am using FoxPro 9.0 and have a table MyTable with very many records, new to this language I am struggling to understand the basic commands. MyTable looks like
MyTable
-----------------------------------------------------------------------
Customer NbItem Item Total
C01 3 shoes 3
C04 2 socks 2
K91 2 lace 2
C01 1 statue 1
What I want to do is make different calculations for each customer. So I need to gather all records with same customer name and take the other fields for calculations. I have used DISTINCT to find the number of unique customer, but I also have to do some sort of loop (I think) as I will be using customer name for identification in another table.
Google havn't been my friend with this. I hope to find some answer here (fingers crossed)