Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with a where in a sql statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00832743
Message ID:
00832749
Views:
15
Try using JOIN to connect all the tables.

Cathy


>Hello, i'm creating a query but everytime i use the last condition it doesn't bring any results, this is my query:
>
>
>select * from hardware h, usuarios_cia u, oficina o, modelos m, marcas ma, hard_local hl;
>where h.usuario=u.codigo and u.oficina=o.codigo and h.modelo=m.codigo and m.marca=ma.codigo;
>and h.host=hl.host
>
>
>And i know that accomplish this query, even i build a query in order to probe this:
>
>select * from hardware, hard_local, tipo_local where hardware.host=hard_local.host and hard_local.tipo=tipo_local.tipo
>
>
>what is wrong in the first query?
>Thanks.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform