SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 help please
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

30 Posts

Posted - 12/17/2010 :  10:04:48  Show Profile  Reply with Quote
i have a table that has referral numbers. each referral is into a certain dept. it then gets passed on to different departs but gets a new referral referral number
dept reason ref
admin query 1
sales asse 2
HR rehab 3

i need to show the the ref 1 reason but group the contacts from each of the sub referras.

Referral no.1 will always be admin

i know i have not explained very well but am having a lot of trouble with this query so any help will be appreciated

Thank you

Flowing Fount of Yak Knowledge

4614 Posts

Posted - 12/17/2010 :  12:32:47  Show Profile  Reply with Quote
I'm not following you. Perhaps this link can help you post your question in a way that we can help you better:
Go to Top of Page

Premature Yak Congratulator

22847 Posts

Posted - 12/20/2010 :  08:51:45  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
See if this helps


Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000