Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select records
Message
De
10/09/2004 17:03:00
 
 
À
09/09/2004 09:56:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00940543
Message ID:
00941233
Vues:
9
hi,

i'll try to change the code ,to do what i want , iget mwny errors messages.

i want to get dat as
area 1     day 1   day2   day 3
           800  +  800 +  800  ---->2400   records randomly  

area 2     day 1   day2   day 3
           800  +  800 +  800  ---->2400   records randomly  

area 3     day 1   day2   day 3
           800  +  800 +  800  ---->2400   records randomly  

                         total is  7200 records
this the code i'll try to do above
CLOSE ALL
use one
copy structure to TempResult
use TempResult in 0
select *, rand() * 0.000000 as random;
  from MyTable;
  into cursor Temp;
  order by date_code AND area
  brow

go top
for i = 1 to 3
  select Temp
  locate rest for area = i AND date_code=i
  copy next 800 to temp2 while area = i and date_code = i
  select TempResult
  append from temp2
next
thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform