Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with the second DB
Message
From
29/01/2022 19:42:23
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01683370
Message ID:
01683375
Views:
46
OK, maybe I wasn't completely clear in my example....the "TestTable" was in a different database (I referred to it as TestDB)

But to answer your question.....

This is (probably) not necessary
SELECT TestTable.Name from MySecondSQLServerDatabase.TestTable where MySecondSQLServerDatabase.TestTable.first_name = 'XYZ'

But this should work

SELECT TestTable.Name from MySecondSQLServerDatabase.TestTable where TestTable.first_name = 'XYZ'

But again...I *really* encourage you to use some type of proper alias. In all candor, it royally pisses me off when people don't do it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform