{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/198","labels_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/198/comments","events_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/198/events","html_url":"https://github.com/fsprojects/SQLProvider/issues/198","id":124724644,"number":198,"title":"Multiple joins","user":{"login":"tforkmann","id":4168951,"avatar_url":"https://avatars.githubusercontent.com/u/4168951?v=3","gravatar_id":"","url":"https://api.github.com/users/tforkmann","html_url":"https://github.com/tforkmann","followers_url":"https://api.github.com/users/tforkmann/followers","following_url":"https://api.github.com/users/tforkmann/following{/other_user}","gists_url":"https://api.github.com/users/tforkmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tforkmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tforkmann/subscriptions","organizations_url":"https://api.github.com/users/tforkmann/orgs","repos_url":"https://api.github.com/users/tforkmann/repos","events_url":"https://api.github.com/users/tforkmann/events{/privacy}","received_events_url":"https://api.github.com/users/tforkmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-04T09:40:38Z","updated_at":"2016-01-04T10:09:19Z","closed_at":null,"body":"Hey,\r\n\r\nis it possible to do mulitple joins in one queryrequest?\r\n\r\nI tried following code but it didn't work:\r\n\r\nlet getdata = \r\n     query { for x in allx do\r\n                  join y in ally on (y.name = x.name)\r\n                  for m in allm do\r\n                  join m in allm on (m.number = y.number)\r\n                  for datapoints in alldatapoints do\r\n                  join datapoints in alldatapoints on (m.accuntno = datapoints.accuntno)\r\n                  where (...)\r\n                  select (...)}"},"comment":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/comments/168630544","html_url":"https://github.com/fsprojects/SQLProvider/issues/198#issuecomment-168630544","issue_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/198","id":168630544,"user":{"login":"colinbull","id":585546,"avatar_url":"https://avatars.githubusercontent.com/u/585546?v=3","gravatar_id":"","url":"https://api.github.com/users/colinbull","html_url":"https://github.com/colinbull","followers_url":"https://api.github.com/users/colinbull/followers","following_url":"https://api.github.com/users/colinbull/following{/other_user}","gists_url":"https://api.github.com/users/colinbull/gists{/gist_id}","starred_url":"https://api.github.com/users/colinbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinbull/subscriptions","organizations_url":"https://api.github.com/users/colinbull/orgs","repos_url":"https://api.github.com/users/colinbull/repos","events_url":"https://api.github.com/users/colinbull/events{/privacy}","received_events_url":"https://api.github.com/users/colinbull/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T10:09:19Z","updated_at":"2016-01-04T10:09:19Z","body":"Hi,\n\nYep it is, some examples of the joins that are available can be seen here https://github.com/fsprojects/SQLProvider/blob/master/tests/SqlProvider.Tests/scripts/SqlServerTests.fsx basically there are two types: \n\n* implicit - which uses typically use the 'for in' syntax an use the special navigation properties\n\n* explicit - which uses the 'join in on' syntax. The limitation here is at the moment we don't support joining on composite keys e.g. (x.a,x.b) = (y.a,y.b) \n\nHope this helps, apologies for the short answer I'll reply more fully this evening when I'm at a proper computer, rather than my phone\n\nSent from my iPhone\n\n> On 4 Jan 2016, at 09:40, Tim Forkmann <notifications@github.com> wrote:\n> \n> Hey,\n> \n> is it possible to do mulitple joins in one queryrequest?\n> \n> I tried following code but it didn't work:\n> \n> let getdata = \n> query { for x in allx do\n> join y in ally on (y.name = x.name)\n> for m in allm do\n> join m in allm on (m.number = y.number)\n> for datapoints in alldatapoints do\n> join datapoints in alldatapoints on (m.accuntno = datapoints.accuntno)\n> where (...)\n> select (...)}\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}