Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8462241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:06:46+00:00 2026-06-10T14:06:46+00:00

i am working in mvc3 here i need some help please here i have

  • 0

i am working in mvc3 here i need some help please

here i have some tables like(BugId)

BugID Title Description ProjectId Version BuildNumber EmployeId CategoryID CreatedDate SeverityID PriorityID ReleasePhaseID TypeID

2 Banking bankingapplication 1 new version new build no 1 1 00:00:00.00 1 1 1 1

(Projects Table)

=======================================================

 Projectid  ProjectName Description        Status

1   Finance     This is Finance Project    Active
2   Uniformatic This is Finance Project    Active
3   ProDuct     This is Finance Project    InActive
4   Cloud       This is Finance Project    INActive
5   Banking     This is Finance Project    Progress

6 Ecommerce This is Finance Project Active

RealesePhase (table)

====================================================================

 ReleasePhaseID    ReleasePhase

1       DEV
2       QA
3       Alpha
4       Beta

5 Live

Tostatus(table)

===================================================

ToStatusId        Tostatus

1       New
2       Assigned
3       Fixed
4       Re-Opened
5       Closed
6       Deffered

7 Not a Bug

Bughistory (Table)

BugHistoryID BugID FixedByID AssignedTo Resolution FromStatus ToStatus

5                  2         1            1     this is my banking     New           New
7                  2         1            1     this assignto res                km,l

======================================================================================================

here i have these tables now i have to write a query to select ProjectName(dropdown)
And (ReleasePhase) from it (open)(closed)(fixedBy)

in Bugs table Bugs will be log (insert) from it so now we have to select Project Name & ReleasePhase as dropdown if we select the project name i should get the No of Bugs we have for it (counting)

from it like
(view) should like this

=====================================================================

ProjectName RealesePhase openBugs ClosedBugs fixedBy

                 1         New         EmployeName
                 2         Assigned    EmployeName
                 3         Fixed       EmployeName
                 4         Re-Opened   EmployeName

======================================================================

so plz help me to write a query count and show the how many bugs Employee inserted and how many are released and how many closed

Thanks In Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:06:47+00:00Added an answer on June 10, 2026 at 2:06 pm

    You better use a stored Procedure for this..and i think you need the count of Bugs as per your status table and Releasephase and ProjectId..this is what i figured by seeing your question hope it helps you….

     Create procedure [dbo].[ProjectReports]
     (
     @ProjectID int,
     @ReleasePhaseID int
     )
     as
     begin
     select distinct projectName,ReleasePhase,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID and
    bugid in (select BugID from BugHistory where [status]='New')) as Newbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and  ReleasePhaseID=a.ReleasePhaseID and 
    bugid in (select BugID from BugHistory where [status]='Assigned')) as Assignedbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID and
    bugid in (select BugID from BugHistory where [status]='Fixed')) as Fixedbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID and
    bugid in (select BugID from BugHistory where [status]='Re-Opened')) as Reopenedbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID and
    bugid in (select BugID from BugHistory where [status]='Closed')) as Closedbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID  and
     bugid in (select BugID from BugHistory where [status]='Deffered')) as Defferedbugs,
    (Select  COUNT(1) from Bugs where ProjectId=a.ProjectId and ReleasePhaseID=a.ReleasePhaseID and
     bugid in (select BugID from BugHistory where [status]='Not a Bug')) as NotaBug
     from Bugs a
    inner join Projects p on p.ProjectId=a.ProjectId
     inner join ReleasePhase Rp on rp.ReleasePhaseID=a.ReleasePhaseID
    where a.ProjectId=@ProjectID and a.ReleasePhaseID=@ReleasePhaseID
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help here. I am using razor view in MVC3. I have
Here is my dilemma, I am working on some SaaS using ASP.net MVC3 and
I have been working on mvc3 application and trying to localize the same. I
I'm working with MVC3 with Razor for first time, and I have a partial
Working on an MVC3 project. I have an area named Area with an areaRegistration
I am working on a MVC3 razor application. I have created a error Handling
I am working on an MVC3 application using the Razor syntax and I have
ASP.NET MVC3 newb here. I am working on a MVC3 intranet application that uses
I am working on an mvc3 application and having some problems with getting validation
I am currently working on an ASP.NET MVC3 website. I have a simple authentication

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.