Viewing 15 posts - 1 through 15 (of 16 total)
Is there any other way to recover it?
September 22, 2008 at 4:03 am
Thanks for reply.....
I will work on the solutions you have given......
September 18, 2008 at 9:54 pm
See attached queries & execution plans screenshots...
1.SELECT * FROM EMPLOYEEINFO_INDEX
WHERE DEPARTMENT ='TP'
OR DEPARTMENT = 'EAGLE'
2.SELECT * FROM EMPLOYEEINFO_INDEX WHERE DEPARTMENT ='TP'
union all
SELECT * FROM EMPLOYEEINFO_INDEX WHERE DEPARTMENT = 'EAGLE'
3.SELECT...
July 31, 2008 at 2:06 am
hi karthikeyan,
see my previous post for attachement...
July 31, 2008 at 1:50 am
total rowcount without any conditions = 3215
total rowcount when Dept 'Abc' = 81
total rowcount when Dept 'XYZ' ...
July 31, 2008 at 1:38 am
See attached queries & execution plans screenshots...
1.SELECT * FROM EMPLOYEEINFO_INDEX
WHERE DEPARTMENT ='TP'
OR DEPARTMENT = 'EAGLE'
2.SELECT * FROM EMPLOYEEINFO_INDEX WHERE DEPARTMENT ='TP'
union all
SELECT * FROM EMPLOYEEINFO_INDEX WHERE DEPARTMENT = 'EAGLE'
3.SELECT...
July 31, 2008 at 1:36 am
I have run following queries simultaneously in query analyser.
1. SELECT * FROM EMPLOYEEINFO
WHERE DEPARTMENT ='ABC'
OR DEPARTMENT = 'XYZ'
Query Cost : 15%
2. SELECT * FROM EMPLOYEEINFO (index = TEMP)
WHERE DEPARTMENT...
July 31, 2008 at 1:09 am
Hey..finally it works...
Query should be..
SELECT * FROM EMPLOYEEINFO_INDEX (index = INDEX-2)
WHERE DEPARTMENT ='ABC' OR DEPARTMENT = 'XYZ'.
But basic problem remain as it is. For above query query cost is 73%...
July 31, 2008 at 12:58 am
karthikeyan (7/31/2008)
or... you can use force the index.SELECT * FROM EMPLOYEEINFO_INDEX (index INDEX-2)
WHERE Department = 'ABC' OR Department = 'XYZ'
Check out the query plan and let me know.
Hi karthikeyan ,
...
July 31, 2008 at 12:54 am
karthikeyan (7/31/2008)
Quick solution is, just use union all statement. check out the query plan now and let me know.
----------------------------------------------
SELECT * FROM EMPLOYEEINFO_INDEX
WHERE Department = 'ABC'
Union All
SELECT * FROM EMPLOYEEINFO_INDEX...
July 31, 2008 at 12:44 am
yaah...
We are going to create these table as per user_name who is active in session & drop that table as soon as it's job over.
thanks for support.
June 27, 2008 at 12:50 am
HELLO GUYS,
I have resolved this problem. Actually I was creating local temp table. The scope of any local temp table is into the block in which...
June 26, 2008 at 11:01 pm
Jeff,
Thanks for u'r suggestion.
I will check it out.
June 26, 2008 at 10:47 pm
John Rowan (6/18/2008)
June 18, 2008 at 10:35 pm
rudy komacsar (6/18/2008)
June 18, 2008 at 10:33 pm
Viewing 15 posts - 1 through 15 (of 16 total)