SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL


Author
Message
sanket 55235
sanket 55235
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 9
I have two sql table Actions and Issues:

i require which query will execute following questions.

1. Number of complaints attended by the employee
2. Total number of hits by the employee on these complaints (since
there may be multiple attendances to theses complaints by the
employee)
3. Number of complaints closed by the employee & not reopened
4. Number of complaints closed by employee and reopened.... but
finally closed by another employee

Hints:

3. Status enum values in action table

> 1 THEN 'UnAssigned'
> 2 THEN 'New'
> 3 THEN 'Pending'
> 4 THEN 'Closed'
> 5 THEN 'ReOpened'
> 6 THEN 'UnAttended'

Period: April 2011- March 2012
> For Employee: 531470

M LAXMI BAI (531470)
Attachments
Copy of ActionsTable.xlsx (14 views, 22.00 KB)
Copy of IssuesTable.xlsx (7 views, 14.00 KB)
laurie-789651
laurie-789651
SSChasing Mays
SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)SSChasing Mays (616 reputation)

Group: General Forum Members
Points: 616 Visits: 1272
You're more likely to get an answer if you make the data easy to set up.

See this thread, post 6 for a way to do it:

http://www.sqlservercentral.com/Forums/Topic1336553-392-1.aspx

(There's an article in the post footer too.)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search