Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Two database query

    Hello.

    I have adopted 2 systems both with their own databases with similar data.? I
    have been asked to make a query that requires comparing data from one database
    with data from the other. ?I will eventually consolidate the two databases.?
    But for now I need to run a Q over the two databases, they both sit under the
    same datasource, this is Oracle 9i.?

    I have done it like this but can?t help feeling there should be a better way,
    any advice?#

    Select profile.profileId
    From profile, otherDatabase.company
    Where
    Profile.profileid = otherDatabase.company.profileid

    Thanks for reading
    Cheers

    Martin

    MartinThorpe Guest

  2. Similar Questions and Discussions

    1. Trouble with database query
      Hi, THIS (Below) error keeps coming. I'm just trying to make a normal login page. It LOOKS fine to me, I've groomed it for bad spaces and...
    2. Need help with database query.
      :confused; Hi all, I'm having trouble coming up with the correct MS SQL statement to do the following operation. I have two tables: Participants...
    3. A true database query
      Hello All, I am try to create a dynamic search page where the admin would create the fields or dropdowns for the user to select. For this example,...
    4. Modifying a Database query
      I would like to know if there is a way to track modifications to an invoice. I am using Order entry Database format. At any time, the orders/order...
    5. How do you link to a database query?
      I have a database and would like to somehow link to a query in that database, that would show up in a table on the page. I'm using ASP. How can I...
  3. #2

    Default Re: Two database query

    The current scheme is probably not what you want.

    IF the product ID's are somehow coordinated between the databases, then you
    could use a full outer join to see entries that were different -- or in one DB
    but not the other.

    More typically, you would have to do the full outer join on the NATURAL keys
    for each table (Company stock symbol or HQ address, maybe) since the same
    company might have different profileids in each DB.

    The smartest thing to do is to invest in a good comparison tool, like
    [url]http://www.toadsoft.com/feats.html[/url], for example.

    MikerRoo Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139