If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Help needed for the following scenario

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-07, 08:00
khanahmer khanahmer is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Red face Help needed for the following scenario

Hi all,
Heres the scenario i want to make a query of
I have four Tables namely: Bug, Test, REQ and REQ_COVER
Bug Schema:
BUG_ID
TEST_REFERENCE
BUG_DESC
BUG_RESPONSIBLE

TEST Schema:
TEST_ID(Relation with BUG.TEST_REFERENCE
TEST_NAME

REQ Schema:
REQ_ID
REQ_NAME

REQ_COVER Schema:
RC_REQ_ID (Relation with REQ.REQ_ID)
RC_TEST_ID (Relation with TEST.TEST_ID)

Now I need to have following data:
Number of BUG_ID by BG_RESPONSIBLE with Number of Distinct TEST_ID and Number of Distinct REQ_ID.
i.e. how many BUG_ID (number of bugs )are assigned to BG_RESPONSIBLE (list of users) and that BUG_ID is assoiciated with how many TEST_ID(TestCases) and those TEST_IDs are associated to how many REQ_ID(Requirements).

Any assistance will be highly appriciated
Reply With Quote
  #2 (permalink)  
Old 01-18-07, 08:59
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
please give sample output from the query
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 01-19-07, 00:58
khanahmer khanahmer is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Output needed

BG_RESPONSIBLE || Count(BUG_ID against BG_RESPONSIBLE) || Count(TEST_ID against BUG_ID for BG_RESPONSIBLE) || Count(REQ_ID against TEST_ID against BUG_ID for BG_RESPONSIBLE)

Ineed the records in above table Columns are separated by || signs.
Actually this is custom Bug tracker. And i need to know the total number of Bugs , total number of test cases they belongs to and the total number of requirements associated with those test cases.. all against each developer (BG_RESPONSIBLE)

Last edited by khanahmer; 01-19-07 at 01:03.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On