The following table shows how you can use the IN clause to retrieve data from an external database. In each example, assume the hypothetical Customers table is stored in an external database.
External database | SQL statement |
Microsoft Jet database |
|
dBASE III or IV. To retrieve data from a dBASE III table, substitute "dBASE III;" for "dBASE IV;". |
|
dBASE III or IV using Database syntax. |
|
Paradox 3.x or 4.x. To retrieve data from a Paradox version 3.x table, substitute "Paradox 3.x;" for "Paradox 4.x;". |
|
Paradox 3.x or 4.x using Database syntax. |
|
A Microsoft Excel worksheet |
|
A named range in a worksheet |
|