On Mon, 13 Jul 2009 09:57:13 GMT,
(E-Mail Removed)
(Colbert Zhou [MSFT]) wrote:
>Hi Dave,
>
>Could you please elabrate the scenario? Based on my understanding, you are
>creating an application that can parse the database' metadata and
>illustrate them in your own UI, right? So the application acts like the
>Visual Studio's Query and View Designer. But we encounter problem when the
>relationship exists for 3 or more tables, right? If so, would you mind
>sharing the DataTable's schema?
>
>And if we add these three tables to Visual Studio Query and View Designer,
>does the diagram generates OK? Any screenshot to show the problem
>intuitively will be helpful.
Lets say I have these relationships:
Table1 - Table2
Table2 - Table3
Table2 - Table4
In my select I am using Table1, Table3, & Table4. So I need to join:
Table1 -> Table2 -> Table3
and
Table1 -> Table2 -> Table4
What we are presently doing (because we just build it up in order of
use) - this works but is ugly & possibly inefficient:
Table1 -> Table2 -> Table3 -> Table2 -> Table4
I'm wondering if there is a better way to build up the inner joins in
the select.
Note - the relationships all show correctly. The question is how to
write the inner join across all of them.
thanks - dave
david@at-at-(E-Mail Removed)
Windward Reports --
http://www.WindwardReports.com
me --
http://dave.thielen.com
Cubicle Wars -
http://www.windwardreports.com/film.htm