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

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Urgent Help Required
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jia9211
Starting Member

7 Posts

Posted - 06/21/2004 :  01:57:04  Show Profile  Send jia9211 a Yahoo! Message  Reply with Quote
Hi,
I have following tables

Technology[TechnologyId,TechnologyName]
Seniority[SeniorityId,SeniorityName]
ResourceTechnology[ResTechId,ResId,TechId]
ResourceSeniority[ResSenId,ResId,SenId,FromDate,ToDate]

I want to get following result:

1.Total number of resources in each seniority
2.Total number of resources in each technology within each
3.Total number of available resources in each Seniority
4.Total number of available resources in each technology within each

e.g,
SenioriyName|TotalRes|SAvailableRes|TechnologyName|TotalRes|TAvailableRes

Please help urgently, thanks

jia9211
Starting Member

7 Posts

Posted - 06/21/2004 :  02:07:22  Show Profile  Send jia9211 a Yahoo! Message  Reply with Quote
Onething i forgot to mention is we will check availability at some specific date.(e.g.,at 6/4/2004)

Mean get above mention report of all resources who are avialbe at 6/4/2004. etc.
thanks
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

USA
4184 Posts

Posted - 06/21/2004 :  13:48:05  Show Profile  Visit derrickleggett's Homepage  Send derrickleggett an AOL message  Send derrickleggett a Yahoo! Message  Reply with Quote
Have you looked at the SELECT, INNER JOIN, and WHERE statements in SQL Server Books Online?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
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.03 seconds. Powered By: Snitz Forums 2000