Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make such query?
Message
 
 
À
25/12/2005 03:40:38
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
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01080746
Message ID:
01080855
Vues:
16
>Hovewer, for do this you have to build a complete work table, and filter it.
>REMEMBER THIS:
>you can transform the "not in" or "not exists" condition in an INNER JOIN,
>into a LEFT JOIN with a WHERE IS NULL condition.
>
>select
>...
>from trans T INNER join Trans_Employees_Queues Q on T.cTrans_pk = Q.cTrans_fk
>INNER JOIN ....
>LEFT JOIN Employee_Queue_Schedules S ON S.FK=
>WHERE .... and S.FK IS NULL
>
>
Hi Fabio,

I guess I'm being slow this long weekend <g> I just realised that your idea will work for me and I do not really need a special flag (though my manager already agreed to add it). My only concern is that adding this condition may slow down the process. I need somehow to apply this filter after I executed the first main filter. In other words, my select will look like:
select myFields from Trans inner join Trans_Employees_Queues ...
left join Trans_Employees_Queues TEQ on left join employee_queue_schedules EQS...
where myOriginalWhereCriteria and EQS.FK is NULL
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform