|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by vadicherla in Oracle SCM, Oracle Database, Oracle CRM
Hi
Foloowing two sql causing performance issue in production.
SELECT QUESTION_ID, OPTION_ID, COUNT (OPTION_ID) COUNT FROM RESPONSES WHERE SURVEY_ID = ? GROUP BY QUESTION_ID, OPTION_ID ORDER BY QUESTION_ID
From above query we QUESTION_ID, OPTION_ID SURVEY_ID are foreign keys and each of this columns are in seprate table
SELECT COUNT (SUBMISSION_ID) NUM_VOTES FROM SUBMISSIONS WHERE SURVEY_ID = ?
from above query SURVEY_ID is foregn key
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625