Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema con Consulta SQL
Message
 
To
08/02/2007 01:15:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01193037
Message ID:
01193669
Views:
12
Hola Gregory, acabo de probar tu codigo en la version 9 y en ambos cursores, OK y Nada, sale lo mismo.

No sabia que la version 6 tenia ese problema, me imaginaba que funcionaba igual.

Gracias por aclararme ese tema.

Y la proxima vez leeré con mas cuidado el encabezado del mensaje.

c.x.

>Carlos,
>
>Lo que digo es que hay problema con where isnull(cb.cabid) en vfp6.
>En vfp6 el problema disaparece utilizando having
>
>
>
>	create cursor Cliente ;
>	(	clicod	I, ;
>		clinom	c(20) ;
>	)
>	index on clicod tag Id
>	
>	insert into Cliente values (1, 'Carlos')
>	insert into Cliente values (2, 'Claudio')
>	
>	create cursor Cabeza ;
>	(	cab_id	I, ;
>		clicod	I ;
>	)
>	index on cab_id	tag Cab_id
>	index on clicod tag clicod
>	
>	insert into cabeza values (1, 1)
>	
>	&& no da nada, problema en vfp6
>	select	cli.clicod	as	Cliente, ;
>			cli.clinom	as	Nombre, ;
>			cb.clicod	as	cb_clicod ;
>		from Cliente cli ;
>			left join Cabeza cb on (cb.clicod = cli.clicod) ;
>			into cursor Nada ;
>		where	( isnull(cb.clicod) )
>
>	&& eso OK in vfp6
>	select	cli.clicod	as	Cliente, ;
>			cli.clinom	as	Nombre, ;
>			cb.clicod	as	cb_clicod ;
>		from Cliente cli ;
>			left join Cabeza cb on (cb.clicod = cli.clicod) ;
>		into cursor OK ;
>		having	( cb_clicod is null )
>	
>	select Nada
>	brow nowait
>	
>	select OK
>	brow nowait
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform