YQL showing results from multiple sources -
select * people
<root> <row> <name>a</name> <address>address1</address> <loc_id>1</loc_id> </row> <row> <name>b</name> <address>address2</address> <loc_id>2</loc_id> </row> </root>
select * locations
<root> <row> <id>1</id> <name>location1</name> <details>locationdetails1</details> </row> <row> <id>2</id> <name>location2</name> <details>locationdetails2</details> </row> </root>
is there anyway in yql can join both these data sources on people.loc_id<->location.id , return result includes values together. know there possibility of naming conflicts anyway of resolving too? yql query might return results below or similar.
<root> <row> <name>a</name> <address>address1</address> <loc_id>1</loc_id> <location.id>1</location.id> <location.name>location1</location.name> <location.details>locationdetails1</location.details> </row> <row> <name>b</name> <address>address2</address> <loc_id>2</loc_id> <location.id>2</location.id> <location.name>location2</location.name> <location.details>locationdetails2</location.details> </row> </root>
cross-posted on yql forums
no, not possible directly in yql. doesn't have ability combine results this.
instead in application (whatever have calling in yql) make 2 calls , combine results.
Comments
Post a Comment