Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with a field before myfile*
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01683492
Message ID:
01683498
Views:
33
This is what I will do, use AS with a new name. Thank you.

>Name the fields:
>
>select RF_FILE.RISK_FACT AS RF_FILE_RISK
>        ,.... -- (always use exact list of the necessary fields. I doubt that you need ALL fields from the table
>FROM ...
>>/pre>
>
>
>
>>Hi,
>>
>>I have come across the following problem.
>>
>>I have the following segment in a SQL Select:
>><pre>
>>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.
>>
>>Is there a way to change the above SQL Select in VFP so that the column RISK_FACT is selected from the RF_FILE (without added _A or _B)?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform