Solved

Select from different data sources on a command

Posted on 2011-03-17
4
385 Views
Last Modified: 2012-05-11
I have a command on one data connection and I have to reference  a table that only exists on a different data connection for the same report.

It gives me a message for table ro view does not exist because it doesn't find that table on that connection. WHat am I doing wrong, how can I reference a field from a different data connection. I tried playing with links but it did not work. Is there a way to do select statemenets on the select expert? it doesn't have the from and where keywords...
0
Comment
Question by:patsylipp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 35162325
You can't.

You can try using the Select Expert by setting the fields you want to link together =
The Select Expert text is the WHERE clause for the SQL.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35162329
Remember, when you are building a COMMAND, you are working within that data connection so you can only reference objects that fall within the data connection.

mlmcc
0
 
LVL 8

Accepted Solution

by:
POracle earned 500 total points
ID: 35164153
create database link from database where you are connected to other database from where you want to access table, call it dblnk

then use,

select * from table@dblnk
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 35166964
Agree with comments made by both mlmcc and POracle.  If you're using a SQL Command, you are limited by the constraints of what's available through SQL and your data connection.  DB linking might be a solution.

~Kurt
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
loop having error 5 45
CTRL P does not work on Crystal Report Viewer 7 45
How to select one number or leave at all for a parameter? 4 38
oracle query 4 31
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to take different types of Oracle backups using RMAN.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question