hi all,
I am looking for way to write a query that would give me what I want.
Basically, there are four tables:
Event
EventID
EventName
EventDate
EventToSubType
EventID
SubTypeID
SubType
SubTypeID
SubTypeName
MasterTypeID
MasterType
MasterTypeID
MasterTypeName
I hope the tables definition are self-explainatory.
Here is what I like to have
MasterTypeName, Count(*)
MType1, 5
MType2, 3
MType3, 0
MType4, 10
based on some EventDate range. Because MType3 could be 0, so I tried various way with outer join and never was able to get MType3 to show up.
Thanks in advance.
tofuTnT
New York Desktop Support IT Network Setup Web Design Data Processing Windows 2000 Server
I am looking for way to write a query that would give me what I want.
Basically, there are four tables:
Event
EventID
EventName
EventDate
EventToSubType
EventID
SubTypeID
SubType
SubTypeID
SubTypeName
MasterTypeID
MasterType
MasterTypeID
MasterTypeName
I hope the tables definition are self-explainatory.
Here is what I like to have
MasterTypeName, Count(*)
MType1, 5
MType2, 3
MType3, 0
MType4, 10
based on some EventDate range. Because MType3 could be 0, so I tried various way with outer join and never was able to get MType3 to show up.
Thanks in advance.
tofuTnT
New York Desktop Support IT Network Setup Web Design Data Processing Windows 2000 Server