Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
 
À
27/08/2002 21:28:25
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
Titre:
Divers
Thread ID:
00694300
Message ID:
00694301
Vues:
13
>I have a table of all the employee's that need to turn in a time sheet. I have another table that is marked .t. when a time sheet is submitted. I need an SQL that will list thoes that have not turned in a time sheet.

I assume :

EMPLOYEE
EmpId
Other fields .....

TIMECARD
EmpId
Submitted
DateTime ....
OtherFields ....


This will work :

SELECT Employee.* ;
FROM Employee ;
WHERE NOT EmpId IN (SELECT EmpId FROM Timecard WHERE Submitted)

Cheers,
Jamie
Cheers,
Jamie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform