Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Expand / Collapse
Author
Message
Posted Tuesday, July 31, 2012 3:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 31, 2012 4:52 AM
Points: 2, Visits: 9
i have two tables 1) issue and 2) actions.

in Action table i have employeename(ramabai) and employeeid(4402) and ISSUEID(521779) which common in both the table.
Now i want to see Number of complaints closed by the employee & not reopened(Field name is status in issues table) and status for closed is '4' and not reopened is '5' how to hit query in sql. please help
Post #1337747
Posted Tuesday, July 31, 2012 3:39 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:26 AM
Points: 13,208, Visits: 10,076
Duplicate question. Original thread can be found here:

http://www.sqlservercentral.com/Forums/Topic1337693-391-1.aspx




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1337754
Posted Tuesday, July 31, 2012 3:44 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, June 27, 2014 8:03 AM
Points: 320, Visits: 1,079
If there's 1 issue, presumably the complaints refer to the 1 issue. How are the complaints shown in the database?

Does status=5 mean 'Reopened' rather than 'Not Reopened'?
Post #1337758
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse