Ask a Question related to Coldfusion Database Access, Design and Development.
-
rokit1313 #1
Combine Databases
How do you combine databases that use two different datasouces?
rokit1313 Guest
-
combine pages
can you combine a number of individual pdfs and make them become a multipage document? -
Combine CSV files
Hope someone can help me on this: I need to compare two cvs files that contains user profile information, but there are duplicates, what is the best... -
is it possible to combine jsp and php?
here's my problem - i run a web site with a java servlet backend (apache/tomcat/linux/mysql), and i want to add some php content to my jsp pages. ... -
To combine or leave as is...
My current application I am working on consists of 3 separate ASP pages. I'm posting data to each other page and using request.form to retrieve. ... -
Federated Databases, joins across databases etc
Greetings, I want to do a join between 2 tables on 2 different db2 databases on the same server. I assume that I have to use federated databases. I... -
-
mxstu #3
Re: Combine Databases
rokit1313,
The answer depends on what type of operation you need to perform and what type of database are you using. Can you provide more information?
mxstu Guest
-
BKBK #4
Re: Combine Databases
Do you mean "How do you combine 2 or databases into one datasource?".
A database is real, but a datasource is more or less abstract. Roughly
speaking,
it's the difference between you and "Rokit1313". It is the Coldfusion
Administrator's
job to map databases to datasource names.
BKBK Guest
-
rokit1313 #5
Re: Combine Databases
sorry it was pretty vague. I mean. I have a table called people in datasoure1
and a table called phone in datasource2. I have a key in the "people" table
that i want to use to get the phone number from the "phone" database.
Typically if they where in the same data source i would do something like this:
<CFQUERY DATASOURCE="SameDatasource">
Select p.PhoneNumber
From phone p, people l
WHERE l.id = p.id
</CFQUERY>
But since they are in different datasources i don't know what to do. I hope
that makes a little more sense. thanks for the help.
rokit1313 Guest
-
Dan Bracuk #6
Re: Combine Databases
q1(datasource1)
select id
from etc
select phonenumber, etc
from etc
where id in #Valuelist(q1.id)#
If id is a char field, use quotedvaluelist
Originally posted by: rokit1313
sorry it was pretty vague. I mean. I have a table called people in
datasoure1 and a table called phone in datasource2. I have a key in the
"people" table that i want to use to get the phone number from the "phone"
database. Typically if they where in the same data source i would do something
like this:
<CFQUERY DATASOURCE="SameDatasource">
Select p.PhoneNumber
From phone p, people l
WHERE l.id = p.id
</CFQUERY>
But since they are in different datasources i don't know what to do. I hope
that makes a little more sense. thanks for the help.
Dan Bracuk Guest



Reply With Quote

