List:General Discussion« Previous MessageNext Message »
From:kranthi kiran Date:November 19 2010 8:46am
Subject:Re:Speed Up Query
View as plain text  
Hi All,
          Following query take 25 minutes time,in this table having 3 core
records,how to speed up this query,please help me.thanks advance

SELECT b.circle_name,
       COUNT(a.mob),
       a.pack_price,
       DATE(a.req_date)
FROM   user_info_table a,
       circle_info_table b
WHERE  a.status = 'SUCCESS'
       AND a.sub_type IN( 'SUB', 'RESUB' )
       AND Substring(a.mob, 1, 4) = b.mob_series
       AND DATE(a.req_date) = '2010-11-09'
       AND a.pack_id IN ( '206' )
       AND mob NOT IN (SELECT mob
                          FROM   demo_user_info_table)
GROUP  BY a.pack_price,
          b.circle_name,
          DATE(a.req_date);

Thread
Re:Speed Up Querykranthi kiran19 Nov
  • Re: Speed Up QueryJohan De Meersman19 Nov
Re: Speed Up Querykranthi kiran19 Nov