Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[WDxx] Problème requete

3 réponses
Avatar
Vincent
Bonjour,

J'ai recupéré une requete d'access ( qui fonctionne bien sous access) :

select * from tab_archi
where lft < (select lft from tab_archi where nom = val1) and rgt > (select
rgt from tab_archi where nom = val1)
order by lft

Windev en important la base access à importé les requetes (c'est d'ailleur
trop génial)

Elas cette requete ne fonctionne pas avec windev, il indique une erreur de
sous-requete qu'il ne peut pas définir

Une idée ?

Merci

Vincent

3 réponses

Avatar
mat
Vincent wrote:
Bonjour,

J'ai recupéré une requete d'access ( qui fonctionne bien sous access) :

select * from tab_archi
where lft < (select lft from tab_archi where nom = val1) and rgt > (select
rgt from tab_archi where nom = val1)
order by lft



...

Bonjour,

pour utiliser un même fichier à plusieurs reprises, il faut donner des
Alias. Et pour les rubriques, il faut indiquer à quel fichier elle se
réfère. J'essayerais quelque chose comme

select * from tab_archi
where lft < (select TA1.lft from tab_archi AS TA1 where nom = val1) and
rgt > (select TA2.rgt from tab_archi AS TA2 where nom = val1)
order by lft

Salutations
Mat
Avatar
mat
mat wrote:
select * from tab_archi
where lft < (select TA1.lft from tab_archi AS TA1 where nom = val1) and
rgt > (select TA2.rgt from tab_archi AS TA2 where nom = val1)
order by lft



évidemment, faudrait mettre les noms de fichier partout...

select * from tab_archi
where tab_archi.lft < (select TA1.lft from tab_archi AS TA1 where
TA1.nom = val1) and
tab_archi.rgt > (select TA2.rgt from tab_archi AS TA2 where TA2.nom = val1)
order by tab_archi.lft
Avatar
Vincent
Merci pour ton aide,
Elas rien n'y fait. WD ne supporte pas ce fonctionnement.
Je vais devoir faire une bidouille dommage

Vincent

"mat" a écrit dans le message de news:

mat wrote:
select * from tab_archi
where lft < (select TA1.lft from tab_archi AS TA1 where nom = val1) and
rgt > (select TA2.rgt from tab_archi AS TA2 where nom = val1)
order by lft



évidemment, faudrait mettre les noms de fichier partout...

select * from tab_archi
where tab_archi.lft < (select TA1.lft from tab_archi AS TA1 where TA1.nom
= val1) and
tab_archi.rgt > (select TA2.rgt from tab_archi AS TA2 where TA2.nom =
val1)
order by tab_archi.lft