Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Data from Two Tables
Message
De
11/06/2008 13:02:55
 
 
À
11/06/2008 12:49:13
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01323156
Message ID:
01323165
Vues:
13
>I am using SPT to get remote data from two tables.
>
>One table(Task Table) has a field called schuledhours. The second table(Assignments Table) is a child of table one with a field called assignedhours. I need a sql that lists the scheduledhours, sum of assignedhours.
	SELECT scheduledHours, SUM(assignedhours) 
		FROM tasks LEFT JOIN assignments ON pk = fk 
		GROUP BY scheduledHours
hth
-Stefan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform