I am developing a portal in perl/tk and need to get some data from database. The quesry I use to get the data from DB is little complicated. Please find the query below.
SELECT gamm.PROCESS_NAME, GAMM.APPLICATION_NAME, TO_CHAR (TRUNC (gmz.testtime - 7 / 24, 'DD'),'MM/DD/YYYY') Fiscal_Day,ROUND (AVG(DECODE (total_response_time, 0, NULL, total_response_time) / DECODE (total_page_count,0, 1,total_page_count))/ 1000,2) Average_Response_time FROM portal_gomez_bb_load gmz, GOMEZ_APP_MAPPING_MASTER gamm WHERE gmz.monitor_id = 3805260 AND (gamm.PROCESS_NAME = 'SAM_Exact_Product_Search' OR gamm.APPLICATION_NAME = 'SAM_Exact_Product_Search') AND trunc(gmz.testtime) BETWEEN to_date('09/12/2011','MM/DD/YYYY') AND to_date('09/15/2011','MM/DD/YYYY') AND success_flag = 0 GROUP BY gamm.PROCESS_NAME,GAMM.APPLICATION_NAME,TO_CHAR (TRUNC (gmz.testtime - 7 / 24, 'DD'),'MM/DD/YYYY')I am getting data for this query when I execute in Toad Oracle. But the same code is not giving any data in perl/tk. Simple queries are working in my perl/tk. Is there any method for writing complicated queries in perl/tk? Can you please help.</P?
In reply to SQL in perl/tk by vsurend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |