Viewing 15 posts - 76 through 90 (of 201 total)
I did it in one way but very complicated one, let me know if any better way is there to do the same
; with empcte
as
(
select emp,count(distinct order_no ) as...
July 13, 2010 at 3:20 pm
The last column shows the number of resolutions given by that employee number...
here the employee who has max(counter) is supposed to have given resolution for an order As in the...
July 13, 2010 at 2:41 pm
The requirement is not for find max counter for Order no it is to find max by employee I cannot use this...
;WITH ResolutionCTE (order_no, maxorder)
AS
( SELECT order_no, MAX(COUNTER) 'maxorder'
FROM...
July 13, 2010 at 2:27 pm
now this is also number of resolutions given as an emp may handle more than one order...
so I want count for no of max counters handled by that employee..
July 13, 2010 at 2:03 pm
yes the counter column shows you who gave the resolution for that order..
max value, but how do i put them together
July 13, 2010 at 2:00 pm
Hi,
thanks for reply,
Actually this last column is only giving me hard time
No of accounts handled can be found by as you say:
select * from abcd
select emp,count(distinct order_no...
July 13, 2010 at 1:55 pm
Ohh yeah, I have to change it a little, yesterday it was time to leave so could not understand the code, but got it now...
Thanks again
July 13, 2010 at 8:12 am
Thank you so much!!!!!!
This is exactly what I wanted..the results are PERFECT!!!!!!!!
I really don't know how this is working but your code is fetching( in seconds :-)) what I wanted...
July 12, 2010 at 3:25 pm
first of all, Its not that easy as it appears ....so its not a homework...
the input for every Id will have not more than 10 rows and only exception rows...
July 12, 2010 at 10:45 am
Thanks for quick response,To make it clear Let me put it like this,
Que:
Find all the rows where Fromdate lies between any other date range for that ID
there can be...
July 12, 2010 at 10:27 am
if you are using expressions in your sql task with datetime fields, make sure to use TYPE cast DT_WSTR()
July 7, 2010 at 2:18 pm
there will be some limitations based on no. of rows, should not exceed 65656, as in excel
but having a look at your erro:DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection...
July 7, 2010 at 2:14 pm
got it...in TSQL but not in SSIS
SELECT [sno]
,[DATE]
,[setno]
,[type]
...
July 7, 2010 at 10:19 am
Thanks a lot Ed for your help....:-)
Your code is gr8 and is working fine....The results are correct..
but since it has an update it is taking lot of time( i...
July 7, 2010 at 6:57 am
Viewing 15 posts - 76 through 90 (of 201 total)