Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updateable view with memo AND group by in vfp8?
Message
De
21/02/2004 05:45:34
 
 
À
20/02/2004 21:34:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00879541
Message ID:
00879585
Vues:
14
select master.*, cnt(detail.field) as cnt;
   from master;
   join detail on master.key=detail.key;
   group by master.key


Old VFP can do this, but it is out of all SQL standards.


- rewire the tables and introduce a redundant field in this table, and make sure that this field is updated whenever the number of eligible records in the detail table may change


No, Absolutely.


- write the view with an extra field without a source, and populate it manually (ok, programmatically, but that's it) on each requery


No, structureless


- try a join of the parent table with an extra view which would keep just the document key and the cnt(*) from the child table


Yes, it is the correct choice.
It is efficient and the extra view is fast and usable for other task.


- say what the hell and set engine 70


No, Standardless.


Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform