Hi,
i have a table with various columns but i need to Grouping on two columns...1) Group Name 2) Priority.
Moreover I have to choose only certain Groups from Group Name List.
The Problem I am facing is When i Do grouping only on Group Name , it takes only couple of seconds but when i do grouping on both Group Name & Priority , it takes ard 3 min. but if i remove 3-4 groups from the group list then again grouping on both group name and priority happens very quick.
fyi...the no of groups i am selecting is ard 35-40.does this effect the performance?
for example code
i have a table with various columns but i need to Grouping on two columns...1) Group Name 2) Priority.
Moreover I have to choose only certain Groups from Group Name List.
The Problem I am facing is When i Do grouping only on Group Name , it takes only couple of seconds but when i do grouping on both Group Name & Priority , it takes ard 3 min. but if i remove 3-4 groups from the group list then again grouping on both group name and priority happens very quick.
fyi...the no of groups i am selecting is ard 35-40.does this effect the performance?
for example code
Code:
Select
grp,priority
FROM PROBLEM
WHERE
grp IN ('X1DCSEMEASCM',........,'X2DCSGBTECBMTOSD','X2DCSGBTECBMTUNIX3')
GROUP BY grp,priority