Any one knowing abut the centura sql windos plz solve this prob

hi i have a problem
i had a query
select distint s_date
from syadm.sauda
where s_cust is null and s_city ='z' and s_date between :a1 and :a2 order by s_date;
the platform i am using is centura sql windiows now i want to execite this same query in oracle if i am executuing the same query its taking lot of time but in sql talk it is fast.....
if i give the binding variables...the execution from the back end is fast(in direct oracle).. if i am running through the application it taking lot of time ....
can u tell me why...?
i had changed made3 a small changes in my application
S_DATE BETWEEN ' " || SalFmtFormatDateTime( dfFrom, 'dd-MMM-yyyy' ) || "' AND '" || SalFmtFormatDateTime( dfTo, 'dd-MMM-yyyy' ) ||"'"
after changing it its fast .but i dont feel that this is the appropriate reason for it......

You most likely have
i. s_date defined as a DATE column
ii. bind variables "a1" and "a2" being passed as Character fields.
Oracle wouldn't be using the DATE Index on s_date if the predicates are Character, although it can do Implicit Conversion to filter rows as it fetches them in a FullTableScan.
If i. and ii. are the case, you could change
and s_date between :a1 and :a2to
and s_date between to_date(:a1,'DD-MON-YYYY') and to_date(:a2,'DD-MON-YYYY')If you need to filter for Hours:Minutes:Seconds as well, you can include them in the DateMask of the to_date function.

Similar Messages

  • HT5312 Hi I'm just wondering does any one know why the email to reset ur password hasn't came to my email address its been 2 days and I have been trying since No Emails ?

    Hi I'm just wondering does any one know why the email to reset ur password hasn't came to my email address its been 2 days and I have been trying since No Emails ? anyone know what happening ?

    Either it ended up in a spam filter or it isn't being sent to that address. If you can't find it, use the link in the 'Additional Information' section of that article to contact the iTunes Store staff.
    (88597)

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • Does any one know what the new Iphone4 back side looks like?

    Does any one know what the new Iphone4 back side looks like?
    I haven't found that any where on the apple gallery.

    The opening page of the gallery shows the front, back and side of the phone:
    http://www.apple.com/iphone/gallery/

  • Any one know when the iPad4 will be able to read 64gb exFAT memory cards?

    Any one know when the iPad4 will be able to read 64gb exFAT memory cards?

    Currently, the camera connection kit/iPad http://support.apple.com/kb/HT4101 can't read SDXC cards formatted ExFAT, and although not specified in the above link, 32GB cards are the max size. Next week when iOS 7 is released, maybe that will change.
     Cheers, Tom

  • Updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    well... actually you are right dahveed, i had a dodgy copy of galaxy on fire 2 (boring game), that's what was giving me the issue. i followed your posts about the MAS etc., and discovered this was the problem. Corrected. You're a knowledgable man, thank you

  • Does any one know when the IPhone 5 will be avalible in South Africa

    Does any one know when the IPhone 5 will be avalible in South Africa

    All anyone on here knows is what Apple has published...only thing to do is wait for a release announcement.

  • Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    No one but Apple knows what will come in the future until they announce it. We are forbidden from speculating about it on these forums.

  • Any one know what error -5000 is?  I get this error when I try to update to IOS 5 on my 3gs phone.

    Any one know what error -5000 is?  I get this error when I try to update to IOS 5 on my 3gs phone.

    I am also facing the same issue.
    four days back, my power buttton stopped working.
    Then my sim card slot stopped reading like it was stuck at gsm/cdma band.
    Even without simcard it said searching..
    then I changed the power button and antenna strip myself as my iphone5 is uk ee and i live in india.
    Everything was fine and I booted the phone.
    The power button worked like a new device... but the searching problem still remained.
    I hard resetted my phone but to no vail. even Find My phone was not turning off.
    then I forced my phone to recovery mode and downloaded iphone5,2 7.0.2,11A501_restore.ipsw from web and flashed it.
    At the start it recognised and everything was good until the "restoring iphone firmware" was stuck at the end point.
    I tried every trick on net. Even tried to downgrade.. but it was blocked.
    at the last it is either stuck at firmware or itunes unknown error (3)
    Please somebody help me to recover this PAPERWEIGHT to a phone again...

  • Does any one know if the 15% refund rumor is true?

    I have had my 27" iMac for about 2 months. of that time it has only been working for 2 weeks. After installing the 2nd display firmware update the machine died would not come back on from sleep and some times would not turn on at all.
    It has been and had the logic board, led back-light driver board replaced and now is getting something else replaced. Apple refuse to replace the machine.
    What I want to know is if any one can confirm the rumors that apple is giving up to 15% refund to people with issues with the 27" iMac.
    I'm not angry it has issues that happens with new hardware. its the fact that i have been mucked around, been told by the service agent to install the OS myself after being told to bring it in for repair, having to take several hrs of work and drive several Kms to take it in for repair.
    please can you let me know. i am supposed to be getting the machine back tomorrow and i would like to be able to talk to my retailer about it when i call them.
    thanks Alex

    There are no Kiwi brick & mortar Apple Stores, so he must have a 3rd party retailer.
    So I would report to Apple, Inc that the local Apple Authorized Techs have returned your repaired iMac without a Mac OS X installation!
    Gizmodo appears to be the source of the story and they report this update;
    UPDATE: According to an Apple customer support discussion with one of our readers, the 15% bonus refund is officially for "tax and shipping"—it's a flat base rate to cover your return no matter the area you are in. So if you have an 8% sales tax, you may only be pocketing 7% (and even less after shipping if you don't have an Apple Store near). Obviously this offer ranges from small bonus to adequate refund, depending on your circumstance, but returning an iMac is far from a money making venture.
    Dah•veed

  • Does any one know when the leopard os is goin to be coming out?

    does any one know the release date is?
    Thanks

    Spring 2007 is all anybody knows, because that's what it says at the bottom of that page, and that's all Apple has said.

  • We set up Airprint to our Xerox machine but we have codes set up so each department has to enter their code in before they print. Airprint will not work because we have the codes. Does any one know if there is a way to override this?

    Hello there-
    Our Xerox rep helped us set up Airprint to our copier machine. We have department codes set up on our copier so when any one goes to copy or print something they need to punch their code in. Airprint will not work because we have those codes (something prints out to the copier saying error due to accounting codes being set up). Does anyone know if there is a way to override this on our ipads? Thank you!!

    Hi Nico,
    if you want a local test/development setup of Oracle why don't you just install Oracle 11gR2 XE (http://www.oracle.com/technetwork/products/express-edition/downloads/index.html) ?
    If you install this you get a database, APEX (4.1), client etc all in one install, this includes a webserver (EPG) on port 8080 without having to configure anything. It's a simple next-next-next installation without much configuration.
    If you would like to seperate database and software you can always do this later when you understand the concepts of database/control files etc.
    If you would like to upgrade to APEX 4.2 you can download this afterwards and easily install this by running two scripts in SQL*Plus ( apexins.sql and apxldimg.sql ), just check the apex 4.2 installtion guid section EPG for this.
    Regards
    Bas
    b.t.w. If you're running windows 7 - 64 bits just use the 32 bits XE for windows, might get some warnings but you should be able to install and run, good enough for test/dev

  • Does any one know about the small Hardrive that "The Power Company" is producing, sponsored by Indiegogo, for small Apple mobile devices (iPhones, iPods, etc,).  Do they work or cause problems for the device or iCloud storage?

    Does any one about the small hard drive that "the Power Company" is bringing out as a crowdsourced project by Indiegogo?  Does it work, does it cause problems for IOS, iPOD Touch or iCloud?

    I have not heard that mentioned here before. What does the Indiegogo page say?

  • Does any one know when 'The Walking Dead season 3' will be released on itunes in the UK?

    Any one have any answers? have been waiting ages for this show's new season, it is being shoing on FOX's UK channel but i don't get it and they don't have an online catch up website

    Whenever the owner of the UK distribution rights provides it to Apple.

  • Does any one know what the matrix.dms is? And why it is in my picture folder? When I open this file the unarchiver takes over and I see my entire hard drive when I scroll down I see the matrix.dms file with in the unarchiver.

    Hello everyone. Does anyone know that the matrix.dms file is? And why it may have came to be in my picture folder? When I opened the file the unarchiver took over, then I saw my files in the unarchiver window. I then scrolled down and I saw the same matrix.dms file within the unarchiver window. I made a video of what saw when I tried to open the file, so as to aide in your understanding of reason for my perplexion at this file. Thank you for your help. https://www.youtube.com/watch?v=2QeWH9hRnro&feature=youtu.be

    Hi EMT-B,
    It sounds like you have done all the troubleshooting needed to narrow down your issue with the iPhone camera to hardware. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    You may need to change the country when you get to the page.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

Maybe you are looking for

  • Webii report variable creation

    I have a report requirement that i need to create. The report requirement have to do with creating YTD and MTD booking values for the current Financial year and the previous one. The problem is that at the universe level, aggregation was done at MTD

  • SQL Query doesn't work coccrectly

    The table includes list of month and years. When I write SELECT MONTH,YEAR FROM MONTH_DETAILS ORDER BY YEAR DESC,MONTH DESC; it works correcty and returns MONTH YEAR 7 2009 6 2009 5 2009 4 2009 3 2009 2 2009 1 2009 12 2008 11 2008 But when I want to

  • My phone wont connect to interweb  (im paying for) unless i connected to a public or home wifi

    Like my title says i cant use my data im paying for. the way i can use the intereb is from a public wifi

  • KM Repository Manager

    Hi Experts,     Please give the code or documentation to develop the <b>KM Repository Manager</b> in NWDS.  Regards, Venkatesh.K. Points will be awarded.

  • Can I do a mail merge from Excel in Pages?

    I would like to use Pages to send out invoices and form letters to my membership database which is in Excel. Is there a way to do this? Thanks.