Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jia9211
Starting Member
7 Posts |
Posted - 2004-06-21 : 01:57:04
|
Hi,I have following tablesTechnology[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 seniority2.Total number of resources in each technology within each 3.Total number of available resources in each Seniority4.Total number of available resources in each technology within each e.g,SenioriyName|TotalRes|SAvailableRes|TechnologyName|TotalRes|TAvailableResPlease help urgently, thanks |
|
jia9211
Starting Member
7 Posts |
Posted - 2004-06-21 : 02:07:22
|
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 |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2004-06-21 : 13:48:05
|
Have you looked at the SELECT, INNER JOIN, and WHERE statements in SQL Server Books Online?MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
|
|
|
|
|
|
|