Calendar Range of Dates Order By doesn't Seem to be Working

I have the following query:
select cdate,to_char(insdate,'DDMONRR:HH24:MI:SS'),room,no,
(CASE
when no = 1 then '*'||room||'*'
when no = 2 then '*'||room||'*'
when no = 3 then '*'||room||'*'
when no = 4 then '*'||room||'*'
else '*'||room||'*'
end) COLOR
from roomview
order by cdate,insdate
This is the result:
CDATE TO_CHAR(INSDATE,'DDMONRR:HH24:MI:SS') ROOM NO COLOR
06-OCT-08 16OCT08:13:15:38 Other 2 Other
07-OCT-08 16OCT08:13:15:38 Other 2 Other
08-OCT-08 16OCT08:13:15:38 Other 2 Other
09-OCT-08 16OCT08:13:15:38 Other 2 Other
10-OCT-08 16OCT08:13:15:38 Other 2 Other
13-OCT-08 16OCT08:13:36:11 Other 4 Other
+14-OCT-08 16OCT08:13:03:15 Other 2 Other+
+14-OCT-08 16OCT08:13:36:11 Other 4 Other+
+14-OCT-08 16OCT08:13:40:05 Boltzmann 3 Boltzmann+
+15-OCT-08 16OCT08:13:03:15 Other 2 Other+
+15-OCT-08 16OCT08:13:36:11 Other 4 Other+
+15-OCT-08 16OCT08:13:40:05 Boltzmann 3 Boltzmann+
16-OCT-08 16OCT08:13:03:15 Other 2 Other
Sorted upon date & per date sorted upon insert date of the record...
For 14 october my display colors are lightgreen,pink,red and for 15 october the same lightgreen,pink,red...
Sorted upon date & per date sorted upon insert date of the record...
When I create a calendar on this query the colors/insert dates are being mixed up:
Take a look on [http://apex.oracle.com/pls/otn/f?p=45037:1]
Anyone an idea how to solve this...

Hello,
The calendar query doesn’t exactly run as is. It’s embedded in some “higher” level query, which take into consideration other aspects of the calendar. I found out that it is best to feed it sorted records, and not rely on it to sort them. Try the following:
select cdate, room
from (select cdate,to_char(insdate,'DDMONRR:HH24:MI:SS'),room,no,
(CASE
when no = 1 then '*'||room||'*'
when no = 2 then '*'||room||'*'
when no = 3 then '*'||room||'*'
when no = 4 then '*'||room||'*'
else '*'||room||'*'
end) COLOR
from roomview
order by cdate,insdate) Regards,
Arie.

Similar Messages

  • I bought Photoshop 12/premier package but all I get from premier is the Read Me bit on my computer. The download doesn't seemed to have worked

    I bought PS Elements 12 and Premier as a package but the Premier does not seem to have downloaded...All I have is the "READ ME" pages and no programme

    Noel elliot
    What is your computer operating system, and is it 32 or 64 bit?
    At this time, is Premiere Elements 12 listed in Control Panel/Programs as an installation product?
    Where did you purchase this Photoshop Elements 12/Premiere Elements 12 bundle - from Adobe as an online download or from an authorized reseller offering the box packing with installation discs? From your "The download doesn't seemed to have worked", I am assuming that this was an online download from Adobe.
    On your computer, you should have started with 4 installation files
    Photoshop Elements 12. An .exe file and .7z file specific for Photoshop Elements 12...and file targeted appropriately for 32 or 64 bit computer.
    Premiere Elements 12. An .exe file and .7z file specific for Premiere Elements 12...and file targeted appropriately for 32 or 64 bit computer.
    You double click the .exe first and afterward as indicated .7z.
    Each of these products will have its own serial number.
    Do you now have those components. If not, then you need to start again with the download to get those files on your computer in order to start the product installation.
    Please review and consider. Any questions or need further clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • The image came up on my screen saying that I need to connect my iPod to iTunes, but I have a passcode, so it won't allow me to. And I want to try and turn it off, but my touch screen doesn't seem to be working either. HELP!

    The image came up on my screen saying that I need to connect my iPod to iTunes, but I have a passcode, so it won't allow me to. And I want to try and turn it off, but my touch screen doesn't seem to be working either, so I can't even turn it off since you need to "slide to power off." HELP! I'm leaving on Thursday morning for six and a half weeks, and I absolutely need my iPod with me. I was just at the Apple store today for problems I was having with ANOTHER product, and I don't really want to drive all the way out to where my nearest store is (which is not very near) if I can figure this out at home. My iPod was working totally fine earlier today and last night, so I don't know what happened! Please, please, PLEASE HELP!

    Now it's allowing me to reboot (hold down power button and home button and restart), but every time it just comes up to the same thing: the connect to iTunes page. Which is not possible. And I refuse to restore my iPod. PLEASE HELP.

  • TS1363 i have a new iphone 5 and although I had a little trouble downloading all my apps and music, i did this successfully but now when I connect to my itunes, itunes doesn't see it and also bluetooth doesn't seem to be working.Can  Anyone help

    I have a new iphone 5 and although I had a little trouble downloading all my apps and music, I did this successfully but now when I connect to my itunes, itunes doesn't see it and also bluetooth doesn't seem to be working.Can  Anyone help?

    Hey leafxxx,
    Thanks for the question, and welcome to Apple Support Communities.
    The following resource provides troubleshooting steps if your iPhone is not displayed in iTunes when connected:
    Apple - Support - iPhone - iTunes Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/itunes/
    For more detailed instructions, see this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Enjoy your new iPhone 5!
    Matt M.

  • After copying a movie to the harddisk of my MacBook I wanted to also copy it to my iPad, but for this you first have to copy it to the library in iTunes, but this doesn't seem to be working. So how can I get this movie to the library ? And to the iPad ?

    After copying a movie to the harddisk of my MacBook I wanted to also copy it to my iPad, but for this you first have to copy it to the library in iTunes, but this doesn't seem to be working. So how can I get this movie to the library ? And to the iPad ?

    How is it not working?  And how are you doing it?  Drag the movie onto the iTunes icon on the Dock...  what happens?

  • The scaling selection using SHIFT doesn't seem to be working for me all of a sudden.......how can I resolve ?

    The scaling selection using SHIFT doesn't seem to be working for me all of a sudden.......how can I resolve ?
    Specifically, when I select and object I used to be able to hold SHIFT while re-sizing the object and keeping it in scale.
    All of a sudden, I don't have that option as my SHIFT key doesn't seem to activate within AI
    B.Marks

    B,
    You may have something disturbing Illy so she gets confused, see Item 7 in 5) below for usual suspects, or you may have what appears to be a preference corruption, see 1) - 4) and 6) below.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • How do I import a web page as PDF? The import feature in my file dropdown menu doesn't seem to be working.

    If I remember correctly, firefox for linux previously had an option to import a web page as PDF. Now it doesn't seem to be working that way anymore. I am using Ubuntu 10.04 Lucid Lynx with the most recent Firefox program.

    That's just the standard notice when you install an addon from the AMO web site.
    Wasn't the '''Install Now''' button active?
    Sometimes you have to wait for up to 4 seconds for that button to be active - IOW, not greyed-out.

  • We tried the window.ResizeTo and window.MoveTo methods using the javascript. It doesn't seem to be working in the version 9.0.1. Please suggest any alternative .

    Hi,
    We tried the window.ResizeTo and window.MoveTo methods using the javascript. It doesn't seem to be working in the version 9.0.1. Please suggest any alternative .
    Thanks,
    Avinash

    This is no longer allowed for security reasons (bug 565541).<br>
    See https://support.mozilla.org/nl/questions/880032<br>
    https://developer.mozilla.org/en/DOM/window.moveTo<br>

  • The sound on my Mac Pro doesn't seem to be working since installing OS X Yosemite - help!

    The sound on my Mac Pro doesn't seem to be working since installing OS X Yosemite - help!

    I had a smilier issue... If you're using external speakers (as opposed to the ones on the display), you may need to re-select them in System Preferences. Some preference choices seem to reset with the Yosemite install.

  • I recently bought a iPhone and iMessage just doesn't seem to be working. It won't let me send messages to my friends with emails. Help? Haha

    I Recentl. Bought an iPhone and iMessage just doesn't seem to be working. It won't let me send a message to my friends with emails? Or iPods I don't know

    Read these:
    Using iMessage
    http://support.apple.com/kb/HT3529
    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • What to do when BBC video/iPlayer "This content doesn't seem to be working. Try again later" Firefox 3.6.13, XP

    Videos & iPlayer do not work on BBC site. I get error message "This content doesn't seem to be working. Try again later". Content is viewable on MS Internet Explorer 8.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • The iTunes "buy" button doesn't seem to be working. I click it and nothing happens. Anyone know why? Thanks.

    The iTunes "buy" button doesn't seem to be working. I click it and nothing happens. Anyone know why? Thanks.

    Apple made some sort of programming change on 12.26.12 to their iTunes system that suddenly made the Buy button non-functional specifically in the directly-out-of-the-box Snow Leopard (10.6.3). [I had Leopard, same as you, 10.5.8, and that was still working then. I installed Snow Leopard a couple of days ago to my MacBook, and discovered the Buy Button didn't work.
    First step: Pull down "Software Update" from the Apple menu (that annoying thing we always ignore.) If you're using Snow Leopard 10.6.3, it'll upgrade you for free to 10.6.8, and that should solve your iTunes problem. (I don't know if there are any upgrades for 10.5.8, but unlike the other ungodly system upgrades, Snow Leopard is only $20. Because Apple is growing increasingly stupid, you can't buy it online--you have to call customer care.)
    Hope this helps. Let me know if it does.

  • "Arrange by" doesn't seem to be working properly. What to do?

    "Arrange by" doesn't seem to be working properly. What to do?

    Properly conveys nothing. Details if you want help.

  • Equalizer - Doesn't Seem to be Working

    I have some live shows on my iPod that were recorded by those who attended the concerts.
    I have the equalizer set to make the shows louder when coming through the speakers. When I play the songs on my computer through my library, the songs sound exactly as I want them.
    The problem is, the equalizer doesn't seem to carry over when I am listening to my iPod or when it is plugged into my car. The levels are back at their original settings.
    I wanted to know if there is something I need to do to have the equalizers come into effect.
    Thanks
      Windows XP  

    Get your iPod. Turn it on.
    Select Setiings, and go down to EQ.
    Scroll down until you see "Flat." The options are in alphabetical order.
    P.S. Having the Equalizer on wil reduce the amount of play time you get out of your iPod, though not by too much.

  • My iPod doesn't seem like enjoy working, could someone help me out?

    This is my second iPod (I had to send the first one back to get it replaced) and it's getting ridiculous. About three months ago it stopped working again (the new one) and I got a box to send it back, but I tried installing new software and updating it and all, which fixed it, or so I thought. Now it's not working again. I can't even get it connected to my computer without the computer freezing completely. iTunes refuses to load when the iPod is connected, and "My Computer" (I have a win laptop) quits responding when I connect it too. If I could get it connected I would reset it completely, which I don't midn doing, but it doesn't seem to be able to do that. Has anyone else had this problem? I'd really appreciate help with this problem because Apple says I can't send it back... even though it's my second one. Any help would be appreciated greatly. Thanks in advance.
    -FF
    the ipod was bought for christmas last year (04), and is a click wheel, but not a color photo, or vid ipod.

    This is my second iPod (I had to send the first one back to get it replaced) and it's getting ridiculous. About three months ago it stopped working again (the new one) and I got a box to send it back, but I tried installing new software and updating it and all, which fixed it, or so I thought. Now it's not working again. I can't even get it connected to my computer without the computer freezing completely. iTunes refuses to load when the iPod is connected, and "My Computer" (I have a win laptop) quits responding when I connect it too. If I could get it connected I would reset it completely, which I don't midn doing, but it doesn't seem to be able to do that. Has anyone else had this problem? I'd really appreciate help with this problem because Apple says I can't send it back... even though it's my second one. Any help would be appreciated greatly. Thanks in advance.
    -FF
    the ipod was bought for christmas last year (04), and is a click wheel, but not a color photo, or vid ipod.

Maybe you are looking for

  • Updates to aliases seems not to be taken into account

    Hello, After having re-installed my email server on a macosx server snow leopard leopard, I tried to setup again my use emails accounts by modifying the aliases files, re-generate the aliases.db file, restarting the email service. Initially, I have a

  • My Touch Isnt Working Properly

    Ok basically i bought my touch earlier today and put it on charge straight away. Itunes DID recognise it and allowed me to sync music and videos onto it up untill now my touch was working perfectly it wasnt untill after that when i started downloadin

  • How to copy dialog box

    Under Safari-Preferences-Passwords, there is a list of my online passwords. How can I copy the contents of that dialog box and paste it into a printed document that I can put away in a safe place?

  • LSMW to Load - Equipment Task List/Operations/Inspection Characteristics

    Hello Experts,   Any suggestions on standard LSMW load program for this. The Standard batch Input - 0470/IBIP program does not have the option to load Maintenance Package and Inspection characteristics. Any other suggestions please. Thanks

  • How can I find out info on a possible mobile internet outage?

    I have a verizon MIFI 2200 mobile internet device. I have had internet connection issues with it since yesterday (Sunday afternoon).  Desktop computer, IPOD touch, & my laptop all show that they are connected to the mifi.  Internet signal strength is