Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with a field before myfile*
Message
From
09/02/2022 05:38:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01683492
Message ID:
01683496
Views:
34
>Hi,
>
>I have come across the following problem.
>
>I have the following segment in a SQL Select:
>
>select RF_FILE.RISK_FACT, EQ_FILE*. FROM EQ_FILE JOIN RF_FILE ON RF_FILE.RF_PK = EQ_FILE.RF_PK
>
>
>In SQL Server, because the field RISK_FACT appears before the EQ_FILE*., the column RISK_FACT is selected from the RF_FILE. But when using a VFP database, the SQL Select gets two fields RISK_FACT_A and RISK_FACT_B, one from each table.
>
>So, the SQL Server works as I want it. But with VFP database, it does not work.

On the contrary, the VFP does work as it should. You specified two fields with the same name from two tables, you should get two fields with some way to resolve the ambiguity. Probably the SQL does it too, but uses a different renaming scheme.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform