Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help!! XML Data

Status
Not open for further replies.

McNasti

Technical User
Nov 11, 2004
13
US
I have two "tables" i need to report from. I'm reporting from a XML Datasource so they're not actually tables, im using CR Version 10.

Table A Contains
Location_Id (PK)
Location Name

Table B Contains: A person has 2 locations.
Person_Id(PK)
Location_id_1(FK)--References Location_id in Table A
Location_id_2(FK)--References Location_id in Table A
Person_Name

Id Like my report to look something like this:

Person_Name Location_1 Location_2
----------- ---------- ----------
Joe New York San Fran


Given that I can't write SQL. Is there anyway I can a accomplish this?



Thanks for your ideas
 
Add the Table B, and then add the Table A twice (it will prompt for an alias).

Left Outer Join from B.Location_id_1->A.locationID->
and then from
Left Outer Join from B.Location_id_2->AAliased.locationID

-k
 
Hi,

How would I accomplish a left outer join from an XML datasource. It won't allow it fro within the Database Expert. I'm you using the SELECT EXPERT to establish my relationships.

So using the example above in the select expert i have.

B.LocationID = A.LocationID

I need some outer join construct on Table B.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top