Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to perform this Select?
Message
De
28/06/2004 16:48:33
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
 
 
À
28/06/2004 16:44:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00918156
Message ID:
00918160
Vues:
9
Thanks, I'm having a bad day, I'm trying to understant SELECT better, and I wanted somenthing like This, this did the Job.
Luis
	Select nombre_pri,privilegioid From Privilegios ;
	Where privilegios.privilegioid Not In (Select Privilegios.Privilegioid From Privilegios ;
	Inner Join Privilegioscon On Privilegios.Privilegioid=Privilegioscon.Privilegioid ;
	Inner Join Grupos On Grupos.Gruposid=Privilegioscon.Gruposid ;
	Where Privilegioscon.Gruposid=lnRegistro) Into Array loArray2
>As simple as this?
Select privilegios.nombre_pri,Privilegios.Privilegioid From Privilegios ;
>Inner Join Privilegioscon On Privilegios.Privilegioid=Privilegioscon.Privilegioid ;
>Inner Join Grupos On Grupos.Gruposid=Privilegioscon.Gruposid ;
>Where Privilegioscon.Gruposid <> lnRegistro Into Array loArray2
>
>>Hi to all, I'm making a form that has 2 listboxes, I will make something like the mover class of VFP. In one list I will put the records that math this query:>
Select privilegios.nombre_pri,Privilegios.Privilegioid From Privilegios ;
>>Inner Join Privilegioscon On Privilegios.Privilegioid=Privilegioscon.Privilegioid ;
>>Inner Join Grupos On Grupos.Gruposid=Privilegioscon.Gruposid ;
>>Where Privilegioscon.Gruposid=lnRegistro Into Array loArray2
>Those are privilegies that one user has granted. In the other listbox I wan't to put all the privilegies that the user has not been granted. Please Any idea for making this in a SELECT
I never forget a face, but in your case I will make an exception :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform