Results 1 to 3 of 3

Thread: Help On Sql

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help On Sql

    Hello all,
    One quick question.
    Is that posibble to retrive records from two separate databases at the same time? IF yes how? Could you please post a sample query.
    Thanks

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Database names can prefix table names, just like table names can prefix column names, using a dot (.) in each case:

    Code:
    database-name.table-name
    The default database, selected with either the USE command, or upon connection to the database server, helps simplify access by allowing that database name to be omitted in queries.

    It should be noted that trying to access, and certainly trying to join, two tables in different databases is probably unwise. A database should encapsulate an entire set of entity relationships. In some DBMS, database separation is strictly enforced (such as in PostgreSQL).

    Mike

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Though MS-Access has lots and lots of limitations as a database it offers linking of tables of different databases.

    Using this feature one can use a table which is actually not a part of its database, as if it is a part of that database.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •