sql ? on joins

Hi, I have 2 tbls .  I need it to look like the results below.  Notice on tbl1 there is no 9.3.15 data and on tbl 2 there is not 9.4.15 data.  

tbl1                                                                 tbl2            
date              Region           tool cnt            date           Region            misc cnt
9/1/2015      south          4                           9/1/2015           south                     12
9/2/2015      north           5                           9/2/2015          north                     14
9/4/2015      east            6                           9/3/2015           west                     35
9/5/2015      west           7                        
date       region      tool cnt      misc cnt                  
9/1/2015      south      4      12                  
9/2/2015      north      5      14                  
9/3/2015      east        null      35                  
9/4/2015      west      6      null                  
9/5/2015      west      7      null
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
This is a full outer join then.
select isnull(tbl1.date, tbl2.date), isnull(tbl1.region, tbl2.region), tbl1."tool cnt", tbl2."misc cnt"
from tbl1 full join tbl2 on tbl1.date = tbl2.date

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Russ SuterSenior Software DeveloperCommented:
I think you're looking for a union and a subquery. This should do the trick...
	SUM([tbl1and2].[tool cnt]) AS [tool cnt],
	SUM([tbl1and2].[misc cnt]) AS [misc cnt]
		[tbl1].[tool cnt],
		NULL AS [misc cnt]
	NULL AS [tool cnt],
	[tbl2].[misc cnt]
	) AS [tbl1and2]

Open in new window

Éric MoreauSenior .Net ConsultantCommented:
try this:

select D.Date, isnull(t1.region, t2.region) as region, t1.[tool cnt], t2.[misc cnt]
from (
   select date from tbl1
   select date from tbl2
) AS D
left join tbl1 as t1
on t1.date = D.date
left join tbl2 as t2
on t2.Date = D.Date

Open in new window

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
I beg your pardon? What is wrong with the full join? Éric's answer works, but can get very cumbersome and might perform bad.
eluceroAuthor Commented:
sorry it's right the full join. I wanted to give all points, but I accidently hit the later 2 first, then I couldn't give it to you.  Is there a way I can go back and give you points?
eluceroAuthor Commented:
yes please reopen so I can give points thanks
eluceroAuthor Commented:
there you go  Qlemo.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.