Groups | Blog | Home
all groups > sql server reporting services > january 2007 >

sql server reporting services : Coalesce tables?


Ryan
1/25/2007 3:27:45 PM
Hi all,
I'm working with CRM and I need to selectively add one of 5 tables.
Each of these tables have a field called activityid.
I'd like to join only the one with a specific activity ID. Can I do a left
outer join with coalesce?

Amarnath
1/30/2007 10:56:00 PM
Since coalesce returns the first nonnull expression among its arguments, in
your case it will return first table name only. But I am not able to figure
out why you want tables?

Amarnath

[quoted text, click to view]
Ryan
1/31/2007 10:23:59 AM
Well I am working with CRM and CRM uses these Filtered views which link in
too many tables. (so many that at some points the report will not run
because too many tables have been linked) Basically there's a central table
that links to 6 other tables, but only successfully links on one of those as
the id from the central table is unique amongst the 6 tables. I was trying
to coalesce this joining so that once it hit the table that has the data it
would stop and not join the rest so that I would not hit my limit of 260
joined tables as I have been.

[quoted text, click to view]

AddThis Social Bookmark Button