Question about a view I created to fix the performance issues

Dear alll;
I have this interesting problem. I created a view to help solve certain performance issue I have been having with my query
see view below
create or replace view view_test as
Select trunc(c.close_date, 'YYYY-MM-DD') as close_date, t.names
from tbl_component c, tbl_joborder t
where c.t_id = t.p_id
and c.type = 'C'
group by trunc(c.close_date, 'YYYY-MM-DD'), t.names
;and I tried testing the view out by using the following syntax and I am getting the following errors
select k.close_date, k.names from view_test k
where k.names = 'Kay'
and k.close_date between to_date('2010-01-01', 'YYYY-MM-DD') and to_date('2010-12-31', 'YYYY-MM-DD')however, I am getting the error messages below
ora-o1898: too many precision specifiersI have googled it and tried a lot of stuff online but I cant fix the problem unfortunately and I dont know why.

Hi,
Instead of
trunc(c.close_date, 'YYYY-MM-DD')say
trunc (c.close_date, 'DD')Oracle apparantly gets confused by saying you want to truncate (or round) to two or more different units.
If it were up to me, I would allow it, since truncatng to the year implies truncating to the month and to the day (not to mention hours, minutes and seconds), but there may be reasons why that would be a pain to implement. (Maybe because there are units, such as 'WW' and 'IW', that are not neat sub-divisions of larger units.)

Similar Messages

  • Why the every time Empty view is created. what is the  use of Empty view?

    Hai Experts,
                         im working  on Web Dynpro ABAP i have doubt when ever we create the component One window and
                         one View created by default.but logicaly one empty view also created (not physically).
                         can u please explain me why the empty view is created what is the usde of it.
                           this is not a interview question .i searched the forums i cant get answer.
    Thanks in adv.

    hi ,
    empty is not a mandatory thing in webdynpro component ..  but to get the perfect picture about  the importance and usage of this  Empty views and Empty windows. * i suggest you to check the statefull stateless webdynpro componet and relate the same*
    pl find the same in below URL:
    [http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/e0/202d4108f08739e10000000a1550b0/content.htm]
    hope it helps you,
    Regards,
    Kranthi.

  • HT3951 I just can't find the question...  I need to fix the app that I downloaded & it's not completing the download even on Wi-Fi???  Please help!!,!!,!,!,!!,!,!!

    I just can't find the question...  I need to fix the apps that I downloaded & it's not completing the download even on Wi-Fi???  Please help!!!!!!!!!

    iOS: About File Sharing

  • Question about email setting: how  do i change the setting so i need to login to check my email. Currently it automatically come to the inbox without the need to log in. Thanks

    Question about email setting: how  do i change the setting so i need to login to check my email. Currently it automatically come to the inbox without the need to log in.

    You don't. Email comes in either by push or when you invoke the email app. Ther is no password except when you first set up the account. If your iPad is not being used as your personal device and you need to shield emails from other users, then don't use the email app.  Instead, use web mail if available from your provider.

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • HT201303 i have tried to perchase a movie and it keeps coming up with questions about my past thet i dont remember the answer to. how do i find out the answers? i have never come across these questions until now

    i have tried to perchase a movie and it keeps coming up with questions about my past thet i dont remember the answer to. how do i find out the answers? i have never come across these questions until now

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How Can I Fix The Graphics Issue...?

    After having my computer for a few years, it started getting an artifact around the mouse, and when it did that, everything was frozen, key commands didn't work, and I would have to manually shut it down.
    I went to the Apple store, and they couldn't get it to boot, even with their external drive. The guy at the Apple store took my computer into the back, and a few minutes later, brought it out. He said he had gotten it to boot, without their external drive, but wouldn't tell me how. He said there was a problem with my video card. He said $400 to fix it.
    Not having the money, I left. A friend told me how to safe boot the computer, and now it will turn on, despite the artifacts and graphics problems. Why didn't the guy at the store tell me this? It's obviously the only way he could have booted it. He wanted to charge me $50 to back up my data, when I could do it myself under the safe boot.
    The thing is, when using safe boot, I have no audio or video functionality- the camera doesn't work, the speakers don't work, and the disc drive doesn't work. I've read up on this, and it's an issue for a lot of macs, from about the time I bought mine. They say there was too much glue used somewhere in the computer (2 or 3 little chips with too much glue or something), and over time the glue/ adhesive gets too hot, and spreads to other areas and ruins them (ie. my graphics card). That's my simplified understanding of the issue, anyway.
    Why won't Apple replace it for me? They won't let me trade it in, because it won't boot right, but this is an issue they were aware of at some point. I spent a lot of money on this laptop and it's really nothing more than a digital typewriter now.
    Does anyone know how I can fix the graphics issue? Aside from shelling out the money I don't have for something that's really Apple's fault? It'd be really nice to be able to, I don't know, watch things and listen to things. That was the whole reason I got this thing.
    Thanks for any ideas, feedback, sympathy, empathy or other comments.
    <Edited by Moderator>

    Ok, you are right, maybe I don't know it for a fact . . . but from all the things I read in various forums, there was a batch (or something similar) of macs (the exact kind I have) that did have too much glue on some parts, and it caused all sorts of problems for different people, most of those problems being with the graphics card. Apparently the excess glue overheats and leaks out of where it's supposed to stay, and whatever it has the misfortune of getting on goes to pot.
    I got very brave, thinking my computer was shot- I opened it, and there was, indeed, crusty glue coming out from under some ... things ... three square chip like things ... and it had seeped onto the edges my graphics card. Having seen the inside of other laptops, I know it was not supposed to look like that no matter how old it is.
    This whole issue happened just a few months after my (overpriced, unused) AppleCare expired. Irony?
    I did backup all my data and files (no thanks to the Apple people; and on safe boot the disc drive won't work, so I had to borrow my friend's external hard drive for backing up), and did a clean install with the original discs. It was a huge hassle, and when it was finally done, I booted my computer normally. It worked for about 10 minutes before it got artifacts all over and froze, at which point I had to force shut it down. I've tried the clean reinstall a few times, but the problem (I think) is that the glue inside already did the damage, and my graphics card is shot. So, I've been running it on safe boot for months. No music. No video. No disc drive. OH- and the best part- on safe boot, the airport won't work. I can't use wi-fi, and I can't take my laptop anywhere because I'm tethered to a modem. It's the worst thing ever. All of it. It's horribly depressing.
    I'm just really frustrated and irritated that this happened, and Apple won't do anything. I do realize they don't HAVE to do anything- buyer beware and whatnot- BUT as a reputable company they should at least let me trade in with the discount or whatever. I didn't have to choose Mac, it was the most expensive computer I looked at- but it has so many awesome functions and things . . . that I can't even use . . .
    As a poor college student I don't have the option to get a new computer or have Apple replace any parts in this one, so I just kind of feel like Apple screwed me over. Their fault? Maybe not. Their product? Yes, so they should want to keep me as a future customer. At least I think so.
    I guess this isn't quite a question. But I would love more feedback, ideas, anything. Has anyone else had this problem? Can I replace my own video card? Will Apple do anything at all? I love macs but I might never get another one, since this could happen again.
    And- unrelated- who changed the title of my post, and how, and why?

  • Can I update or fix the hardware issue with my iPad instead of a usb  for my 2007 MacBook Pro

    Can I update or fix the hardware issue with my iPad instead of a usb  for my 2007 MacBook Pro

    Have no idea what you are asking about. What hardware issue? What does a USB and a 2007 MacBook Pro have to do with it?
    GB

  • Does the Imovie 6.0.3 update fix the stability issues?

    Hi,
    Been using Imovie 6.0.2 a fair bit lately, and have had quite a few crashes. I see from this forum that I'm not the only one.
    I haven't yet been able to update to the latest version (6.0.3) released last week, and would like some user experience opinions about whether the update has fixed the stability issues. Anybody noticed any improvements or otherwise?
    My crashes seem to happen pretty randomly, it could be when you're putting a transition in, or just when you click Play or move the playhead. Any time really. I get the little spinning circle and Imovie is hung. Tried leaving it for ages just in case it was eventually going to return, but it doesn't.
    Has the patch fixed it?
    cheers,
    Ian

    Software Update says I have nothing that needs updated. Since I know this isnt true, I went to Downloads and attempted to install both updates--it stopped and said I had to go back to the previous download. After a couple journeys back to nowhere, I gave up.

  • How to fix the Timing issue in Discoverer reports

    Hi,
    While running the discoverer report in Discoverer plus is taking more than 1 hour to complete( Gen.time + Extract to excel)
    where as the same report completes quickly in discoverer desktop.
    how to fix the timing issue in discoverer plus 
    Thanks
    Srinivas

    Timo Hahn wrote:
    There is a problem with autoHeightRows and columnStretching used together in 11gR1.
    Have you tried without columnStretching?
    Or have you tried if it works in 11gr2?
    TimoHi Timo, Thank you very much for taking time to respond to my question.. :)
    Back to my question...
    I tried removing the columnStretching although my requirement really requires this but no effect really happens even if I remove this.
    Based on my investigation on the generated HTML, I notice the following items:
    1. A table is being wrapped in a div that is being set at a fixed height.
    2. On first load, if your autoheight rows is set to 6, the framework is setting a height of 96px to the div. This height would almost cut the last row of the table.
    3. If you try to refresh the page or try to re-PPR the component, the framework resets it to 102px which causes the last row to be fully displayed.
    My only concern is that IE is perfectly displaying this while Chrome and FF are having problem.
    Based on my understanding, the framework is messing up the height only on first load. Not sure but this is how I see it. I am really not confident also on my findings
    and I would most likely hear other's comment.
    Thanks.

  • Ggrrrrr, is there any that bios that fixes the temp issue? [solved]..spoke too soon [NOT SOLVED]

    ive tried
    1.1
    1.2
    1.3
    1.42
    come on msi, give me a fighting chance :(

    Here is the last thing I received from MSI tech support.  I'll give them this much, they are much more responsive than VIA or AOpen ever were when I first got my flakey MVP3 board...lol.  I hope they can figure this problem out!
    Quote
    So far in our own testing, we have not found any High CPU Temperature issues.
    We have gone through the threads you have provided to us and we will co-work with AMD to see if anything needs to be updated from our side with the New Castle Core.
    Once again, MSI appreciates all the findings/reports you have provided to us and we will update you once there is any findings becomes available.
    Sincerely,
    Technical Support Division
    MSI Computer Corp.
    http://www.msicomputer.com
    MSI - Beyond Expectations!  
    1-626-913-0828
    1-626-581-7721 Fax
    Due to high volume of cases daily, we may not be able to answer question promptly. Please kindly provide your name, phone number, model number, state in which you are calling from, a brief description of your problems, and we will try to reply your issue as promptly as possible. Thanks
    The information transmitted is intended only for the person or entity to which it is addressed and contained confidential and privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient are prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
    -----Original Message-----
    From: my email deleted
    Sent: Friday, August 06, 2004 8:51 AM
    To: [email protected]
    Subject: RE: 3 -- Customer Problem Description Form
    I know you guys think you fixed the Newcastle temperature problem.  But there are still a LOT of us out here who are having trouble, using latest BIOS.  People are reporting this all over the MSI forums.  The behavior is as follows, flashing the BIOS might help initially, but soon after the temp shoots way back up.
    Please see the following threads:
    Temps and BIOS 1.42
    ggrrrrr, is there any that bios that fixes the temp issue? [solved]..spoke too soon [NOT SOLVED]
    Possible fix for CPU temp problem found.
    The same old problem with temperatures (K8N Neo Platinum)
    K8N Neo Temps :(

  • Did they bother to fix the GPS issues in new update 3.1.3?

    Just wondering if they have bothered to fix the gps issues that countless people seen to have with the 3gs, me included. We shouldn't have to mess around putting phone into airplane mode, turning location settings on and off and resetting network settings to get googlemaps to pick up the bloody gps, only to then have it not work again as soon as you exit maps and having to repeat the process. With the amount of people suffering the same issues it leads me to believe the reason it hasn't been addressed is because apple don't know how to fix if. Although not documented as one of the fixes I was just wondering if it's performing any better. Any info is appreciated, cheers.

    Here's what's reported... http://www.theiphoneblog.com/2010/02/02/apple-releases-iphone-313-iphone-ipod-to uch-devices/
    It's only been out for about an hour so we won't know if there are other fixes for a few days.

  • MSI didn't fix the temp issue

    MSI didn't fix the temperature issue for AMD 64 processors. I'm sure.
    For people who didn't read my previous posts;
    MSI claims in BIOS 1.4 (for the MSI K8N Neo Platinum) that they fixed the problem that the CPU gets (for example) 54 degrees idle and 74 degrees load.
    They didn't. They just made up a fake solution.
    Here are my arguments.
    - When I start my computer, after a cold long night in which the computer was turned off, I see 42 degrees for my CPU in the BIOS. This is when I go DIRECTLY to the BIOS in the POST. 42 degrees? That is impossible. The temperature in my room is around 20. It can't get so high so fast. My Northbridge is 21. In the old BIOS 1.3 it was the same; when you started your computer the BIOS showed temperatures like 52 etc.
    - When my computer has started Windows XP, I start Core Center. There I see my CPU temperature. It is 39 degrees for my CPU. Ridiculous. My old AMD XP 1800+ started with a minimum of 29 when Windows started. After that the 1800+ increased to 48 degrees.
    But ok, when I use the trick which some people used in BIOS 1.3 to get true readings (restarting their computer with a soft boot), I see 34 degrees for my CPU. This reading is the only true reading. Isn't it weird that when I have my computer turned on for about 4 hours, with whole the time readings like 42 degrees idle, and I restart, I just get 34 degrees... WITHOUT fluctuating temperatures to hell and back...
    My conclusion is that MSI just made something up like '74-20 = 54 degrees in load and 62-20 = 42 degrees idle'.
    Also, the temperatures are fluctuating to hell and back. It goes from 58 degrees in load to 54 to 50... Whatever...
    This board is great, but this problem really, really  s u c k s. FIX this. We have the right of correct temperature readings. We spend money for it.
    Regards,
    Me

    Quote
    Originally posted by Tiresmoke
    I know you are frustrated but if you read the link I just supplied you will find this is a user to user forum and NO MSI techs are here at all.
    Regardless, people are still encouraged to post their problems here as well.  In case there is a solution or workaround (see Wannafly's response and mine as well regarding vcore).
    Quote
    We are users helping each other. If you must speak with an MSI tech you can always contact them from the MSI main page. Oh and it is not likely they will answer if you attack them the way you are writing in this forum. Now would I for that matter.
    I do agree that some in this thread have crossed the line and need to watch it   .
    Quote
    So play nice folks or there won't likely be a second warning.
    Very good advice!  
    Quote
    Yes there can stilkl be temp issues especially with the newcastle core CPU's. The new Bios is still a work in progress. There are a lot of combinations they need to work out. But if you contact MSI with a complaint in a cival manner and let them know what experience you have you may even get a new beta bios to try and see if it will solve your issues. Or they may have other suggestions. However they can't fix stuff they are not aware are broken and most of the problems disappeared when they released 1.4. So let them know about what you have.
    Been there done that.  They were responsive in the beginning.  Continued to send them very polite and factual updates as I tried new BIOS updates but have long since ceased to receive any response at all.  Again, I say I don't blame MSI.  Just want a fix.....
    Quote
    Oh yes and running these chips in the 50C+ range at full load is still within reason.
    I reread the thread a few times, and I don't see where anyone is claiming that they feel like that's a problem, so I'm confused about the relevance of this statement .  The problem that's been mentioned here is that the temperature is being REPORTED at 50+C at IDLE load conditions when it obviously is NOT that hot.  Restart of the machine immediately then shows an IDLE temp of 30C.  Even though 30 seconds prior it showed 50C with just as low of a load since it was right after cold start?  THIS situation is NOT within reason....    And it's very repeatable, cause I see it every single day

  • How do I fix the compatibility issue between my iPhone 4S with iOS 7 and my Pioneer car stereo? There was no problem with iOS 6, but now I get a message saying "this device is not compatible" and so I can't use Netflix for example. How do I fix it?

    How do I fix the compatibility issue between my iPhone 4S with iOS 7 and my Pioneer car stereo? There was no problem with iOS 6, but now I get a message saying "this device is not compatible" and so I can't use Netflix for example. How do I fix it?

    This is a typical response from the manufacturer. Did you try the fix that Lawrence mentioned. When Apple or any other phone manufacturer update phone software, they have the latest Bluetooth installed. It is usually the problem with the radio manufacturer that they devices are using the older Bluetooth protocols. You can try this support document http://support.apple.com/kb/TS3581 and see if anything there helps, but generally it requires the radio manufacturer to update their firmware.

Maybe you are looking for

  • Could we do Windows programming in ABAP

    Hello everybody , Could we do windows prograaming in ABAP . I want to pass Command MESSAGES in windows through ABAP which could affect the program \ process in operating system . Please suggest somthing . rgds Aryan .

  • Target has run out of memory on LM3s8962

    I'm using the LM3s8962 evaluation kit to record data from the ADC's.  I have the system set up so that I use the elemental nodes of the four adc's in a while loop, and replace the values in four different arrays.  The arrays are initialize (1x1000 el

  • Trace file woes

    I deleted a trace file that grew too large on a pc that is offline. Has been offline since 2012. It uses software to make badges and to take pictures for those badges. The software - I think, is backed up locally with SQL 2005. I know NOTHING about S

  • When I start Firefox I get an error message

    When I go to start Firefox I double-click the icon and it says 'Windows cannot find X:/lib/deploy/jqs/ff/../../../../bin/jqsnotify.exe' with X being the letter of the hard drive. Also as a quick side note: whenever I try to use a web page that uses j

  • Trying to configure WRT54GS as a wireless client

    I have a WRT54GS v6 wireless router which I would like to configure as a wireless client. Can anyone tell me if this is possible? My main gateway/router on my main PC is a WAG354G v2. Another PC in the house connects to the gateway/router via a Links