Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6906973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:22:41+00:00 2026-05-27T08:22:41+00:00

Is there a way I can run a query from one database in DB2

  • 0

Is there a way I can run a query from one database in DB2 to another database in DB2?

For example I have two databases:

  1. Sample
  2. Target

I will write a query in target and I will call the table which is there in sample database. But, it should execute it in target database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:22:41+00:00Added an answer on May 27, 2026 at 8:22 am

    To do this you need to use Federation.
    You will catalog a table from sample database in target database. You will have a nickname in target database, and you can do any query on this table (nickname) as it were local. DB2 will call the other database, and retrieve the data.
    However, the real execution is in sample database, the only thing is that you call execution from target database.

    When you use different types of databases, you use InfoSphere Information Server 8.7 in order to connect to Oracle, SQL server, etc.
    For DB2 and Informix it used to be included (you have to check it)

    For more information http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.dbobj.doc/doc/c0004122.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way you can run your UnitTest project against a compiled DLL
Is there any way I can run class files (i.e. with main as the
Is there a way that I can run a ASP.NET MVC Project on godaddy.com
Is there any way to group tests in JUnit, so that I can run
Is there a way I can control columns from code. I had a drop
The classic way to query an SQL database case-insensitively from Java is as follows:
i have one table in my database say mytable, which contents request coming from
Is there any way can declare a bean in just like JSP UseBean in
is there way thats i can preselect an item when the page loads or
Is there some way I can use URLs like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.