Problems with GREATEST() = > Bug?

I'm working on a view and you have a problem with the LARGEST () - function - I use 11.2.
Below I have #ve past a code with comments that should explain the problem - but you are welcome to ask questions more ;)
-- first executeing the query separated to check it return valus   2.
(SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_hr WHERE box_id IN (SELECT...WHERE id=4) );    
-- returns: 01.01.71 00:00:00,000000000
(SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_10m WHERE box_id IN (SELECT...WHERE id=4) );
-- returns: 11.08.10 16:00:00,000000000

-- therefore i assume if i use GREATEST() with this both timestamps ist would return the second one
 
SELECT GREATEST(
        to_timestamp('01-01-1971 00:00:00,000','dd-mm-yyyy hh24:mi:ss,ff'),
        to_timestamp('11-08-2010 16:00:00,000','dd-mm-yyyy hh24:mi:ss,ff')
) FROM dual;
-- do that job like expected
 
-- BUT
SELECT GREATEST(
        (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_hr WHERE box_id IN (SELECT...WHERE id=4) ),
        (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_10m WHERE box_id IN (SELECT...WHERE id=4) )
) FROM dual;
-- returns the 1971 timestamp wich is the wrong result!
 
-- any ideas?
Alternatively, you can see the code on pastebin: http://pastebin.com/uGVDUMuU

I want to know if this behavior of GREATEST() is on purpose or if I made a mistake or something else!

Thank you!

Stede wrote:
OK...
She finds 1 row of columns, each column in a subselect statement.

11.08.10 16:00:00,000000000 - 01.01.71 00:00:00,000000000

There are the years to two digits-are you absolutely certain that "71" isn't 1971 and 2071?

Try to rerun the query after running:

alter session set nls_timestamp_format='dd/mm/yyyy hh24:mi:ss.ff6';

Tags: Database

Similar Questions

  • iOS 9.3.2 problem with alarms (Bug?)

    Hello community members

    I m new here and must start with a problem that occure on my iPhone since iOS 9.3.2.

    Alex I´m, 17 and I come from Germany. I apologize for any errors I could do

    If the problem is that since the iOS 9.3.2 my sensors in the clock app no longer works.

    When I set up an alarm, the iPhone automatically disable when I quit the app.

    This problem I've had since my iPhone 6. Then I bought for me the iPhone 6s and boot from a backup of the iPhone 6.

    Nothing helps me. I often reset the iPhone and turn it on but nothing really works.

     Care cannot help me too. Is that a person having the same problem?

    I don't really know what I can do to solve it. Now I use the watch for messages, but I want my iPhone to wake me up

    I hope someone can help me.

    Best regards

    Alex

    Hi AlexRis,

    Thanks for checking out the Apple Support and communities for details on what is happening with your alarms. I understand that you are experiencing problems with your alarms do not stay on your iPhone. I use a alarm every morning on my iPhone and my Apple Watch so I can understand how it is important to make sure that it works.

    I just want to be safe, make sure you follow the steps in the user guide to set up an alarm.

    Alarms and timers - iPhone

    Since you already mentioned reboot, the next step that I recommend is to reset all the settings on your iPhone. This does not erase any of your data (like photos, applications, or contacts), but you need to set some default settings save as wallpaper, ringtones, sounds system, restrictions, Touch ID & password and iMessage. You'll also need to reconnect to your Wi - Fi networks then make sure that you have your Wi - Fi in the information available. To reset the settings of your iPhone, go to settings > general > reset > reset all settings. The iPhone will reboot, then you can test.

    If it is not the thing to reset all settings, the next step would be to backup your iPhone and restore it via iTunes. Once restore you, you'll want to set up as a new device (temporarily) and test without your backup data. If it works, you can restore your backup and test again. You will find articles that will help you with the steps below.

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

    Restore your iPhone, iPad or iPod touch from a backup - Apple Support

    Best regards.

  • Problem with TOC (Bug?) levels

    Hello!

    IM using layout-> Table of contents to generate the table of contents for my magazine. My pages have essentially two paragraph styles that will be used in the table of contents window. They are Section and Tittle and are defined as style paragraph and well synchronized with the other articles of the journal, im using a book to organize files.

    In the table of contents window a pick for the first style paragraph of article style and add the paragraph include style, he then added section title style to the include paragraph style.

    Im getting

    Tittle1... 3

    Section1

    Tittle2... 4

    Section 2

    Instead of

    Section1

    Tittle1... 3

    Section 2

    Tittle2... 4

    Style of cutting area is at level 1 and box style Tittle is at level 2 in the table of contents window. It make sense to me, when I'm defining paragraph styles for OCD, but is different from what I expected.

    This is a Bug on the CS4 for Windows? Someone at - it a similar problem?

    Thank you

    What is the purpose of positioning of the text and the images taking paragraphs?

    This kind of problem is usually the result of the positioning of the frame. ID looks at the top left of the page and working down before moving to the right. TOC levels are used to define dashes, not the order in which appear the inscriptions.

  • HORRIBLE 38.3.0! Problems with lightning (bug 1211291)

    Hello
    Thunderbird set itself updated 38.3.0 today and I have several questions:

    1. When you have selected the Inbox, rather than see, the sender, the date sent etc. on the half top of the pane and the body of the email in the background, I see a page that says Thunderbird Mail - Inbox with e-mail accounts, advanced features below. It looks like the page for server-level file. He said: no matter what folder I take Thunderbird Mail - [folder name]. If I click with the right button on a folder and select open in a new tab, I can see my mails.

    2. it is slow to respond.

    3 calendar disappeared. The menu events and tasks of the element disappeared, so I can't select from there. I saw another post suggested to go to tools > Options menu and making sure that the Lightning has been activated this brings me to my next problem.

    4. When you select several menu items that nothing happens. This is the case with the help > about Thunderbird (so I could check the version and are looking for an upgrade), tools > Options and many others.

    I'm on Windows 7 64 bit. I noticed in the section removal programs that he updated to 38.3.0 today and Firefox also updated. As I type this I noticed that it is also buggy, freezing the text I type and very slow. For Thunderbird, there is an uninstall for 38.3.0 and one for 38.2.0. I uninstalled the 38.3.0 in the hope that le.2.0 would always be there and work. Not the case. Do not wait to spend hours to reinstall for my wife and myself. It seems that many people have similar problems, but I don't think anyone of them got both. I have included a picture of the folder view.

    Thanks for the advice in advance.

    Indeed, it was noted that this is caused by the calendar addon.

    For Windows,.
    1. install the old version of http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/38.2.0/win32/en-US/Thunderbird%20Setup%2038.2.0.exe
    2. remove the calendar addon, restart thunderbird
    3. Update thunderbird help | On
    4 reinstall the calendar addon

    Who help me?

  • What is the problem with the bugs to Adobe management system?

    I want to report a bug in the Flex SDK kit, but something wrong with Adobe JIRAs.

    I can not connect with my existing ID

    not getting emails trying to reset the password when I type this fake,

    can not activate a new account as with confirmation emails never arrive.

    I tried after the URL:

    https://bugs.Adobe.com/Flex/

    https://bugs.Adobe.com/JIRA/secure/dashboard.jspa

    Am I missing something?

    Thank you!

    He started working as it should last night to 9 hours EST.

  • Problems with WiFi Centrino N2230 adapter. Many potential bugs applied but not resolved.

    I keep losing WiFi connection.  Network is good, many other features is hung in.  Wired LAN connection is good.  HP technical support has not been able to resolve with BIOS or driver changes.  By checking on the web, there only seems to be a lot of similar problems with the WiFi adapter.

    I'm willing to do some surgical interventions like recommendations on a level appropriate to this N2230 Centrino.   Can anyone help?

    Notebook is a 17 HP Touchsmart laptop

    Model: m7-j020dx

    Product: E4S19UA #ABA

    OS: Windows 8.1 Pro

    Hello:

    Some members of the forum reported to solve the problems of loss of connection with this card by installing the driver and proset instead of just the driver package only.

    The last file on the list would be what you want to try...

    https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=24220

    Insofar as a replacement card, I don't know if your model has this feature of white list of BIOS.

    If this is the case, you wouldn't be able to install one of the cards described in Chapter 3 of the manual of your PC and they must have the part number HP on it or it won't work.

    If the laptop was made last year or so, you can probably install any wireless card you want as it appears that HP has done away the white list of BIOS locking not wireless cards supported.  See the thread below...

    http://h30434.www3.HP.com/T5/wireless-Internet-home-networking/why-no-dual-band-NIC-card/m-p/4019924#M69140

  • Bug/problem with Adobe CC etc on 4K scale displays

    screenshot 1.jpg

    Hi, I have a problem with Photoshop in particular, but it also happens with other programs.

    My screen is Ultra HD 4 K, and for this reason, the menus etc appear incredibly small next to the screen (see picture). This is the case with other programs as well (but not the very recent, such as Microsoft Office 2013).

    It's the last trial version of Photoshop CC, but it also happens with my previous versions of CS3 that I installed it and my Sony Vegas software too.

    I tried to lower the resolution on the computer up to 1920 x 1080 instead of the default Ultra HD (3840 x 2160) but when I do this the whole of the office becomes large and pixelated, but still a problem in Photoshop programs.

    Any help would be really appreciated. I bought this laptop specifically for graphic design and illustration, but this problem that makes it impossible. Thank you.

    Have you tried Edit > Preferences > experimental features > scale IU 200%...?

  • Problem with iPhone 7Plus, lightning audio commands, connector and inline

    Just bought a new iPhone 7 more and understand that there more listener intake. I have a pair of Bose In-Ear-Headphones who controls inline for voice/mic, volume, etc. But when connected to the adapter and plugged into the connection of the lightning and listen to music, the controls do not work. Others found that I'm certainly not the only one having this problem? The sound is very good, but the controls works do not, concerned the micro does not work either. It is my main use of headphones for meetings and teleconferences.

    Thoughts?

    Kind regards

    Bryan

    I have the same problem with my iPhone7, when you unplug and plug it in new job wil.

    After releasing music with the control, you can put it on once again, but when you wait long but when waiting in time he won't answer any more until you unplug and plug back taking.

    I contacted the support and there seems to be a software bug.

    Restoring say ore phone wait for the first update of IOS10

    Hello Michel,

  • Connection problem with the second monitor, macbook pro 2014, OSX El Capitan

    There are a few threads describing problems with two monitors, but I have not found a match.

    I like for the operating system ask login password once the lid is closed, no matter how much time has passed (even for a moment). Also, I work with a dual monitor. However, when my macbook is plugged into the monitor and I close the lid, the macbook don't disconnect but spends just primary monitors. Understand that this could be a feature and not a bug, I tried to unplug the monitor before closing the lid. But the OS seems not to realize that the monitor has been disconnected, and when I close the lid he didn't ask me for my password once that I reopen it. Does it also if I wait a bit (i.e. one minute) after disconnecting the monitor, but not if I wait a while (or 15 minutes), well that I've not enough highlighted how long is necessary so that it starts locking on my closing the lid. He does it with different monitors, so I doubt that it depends on the particular monitor. In both cases, I used the HDMI port.

    This is quite annoying, because I need to be able to disconnect safely in a short period of time, and I was not able to find a workaround on mine. Everyone knows this? Thank you for any help or advice.

    Emilio

    You might have invoked indevrtantly this obscure 'functionality' of MacOS. Read the article and see if you do these things:

    Use your Mac laptop to view closed with an external display - Apple Support

    .

  • problem with yahoo mail on firefox 30.0

    A few days ago a different version (and apparently much earlier) Yahoo mail appeared on my 30.0 FF browser. It is not working properly, but there is no way to change the settings. A link to "Switch to the new Yahoo Mail", but it does not work. Can I still use yahoo mail on IE, but not on FF. I tried the usual bugs (opening FF in safe mode, disabling modules, clear the cache, etc.) without success.

    Hi Dennis, for what it's worth, Yahoo mail looks normal to me in Firefox 30.

    Have you noticed any problems with secure sites (HTTPS) since this problem has begun, such has duty to make exceptions, or not properly apply styles or lack of features?

  • Since the installation of Mac Mavericks all my friends with Macs and I have problems with the cursor disappears, that in Firefox, Safari is very good...

    I stopped using Firefox as nothing I've done has corrected this problem. I tried to close Firefox and restart it, I erased all my Add-ons and then added adblock back (it's the only one), but it still does not work. I deleted files so that I have more space - I can't think of anything that works. I talked to four of my friends with Macs and they are all having the same problem with Firefox since the Mavericks.

    Cursor disappears huh? It's quite strange. All of the compatibility of the Mavericks can be followed in [Bug 883824]

    Try this work around:

    1. Go to Firefox > Preferences > advanced > general
    2. Always check "use the cursor keys to navigate through the pages.
    3. Press OK.

    Or try the Mac preferences noted here: https://discussions.apple.com/message/23542890#24471966

  • Every night giving problems with redirect to gmail

    I decided to try every night and Firefox and all night, both installed. After I did and tried to log in to my gmail account, Firefox (and nightly) had problems with the redirect to the website of gmail.

    I have now uninstalled every night, and the problem disappeared. I, therefore, think that there is some sort of bug in every night.

    Roy

    Bugzilla is the official site in which you are filing bug reports.

  • have problems with hardware acceleration of rendering: fonts looks terrible

    have problems with hardware acceleration of rendering (integrated gpu: amd 760 g) of one of the latest nightly updates - police seem terrible http://i.imgur.com/kWnySVv.png

    Note that the gfx.content.azure.enabled pref has more effect and you can try to disable Direct2D by setting the pref gfx.direct2d.disabled true on the subject: config page and leave hardware acceleration enabled otherwise.

    See also commentary 414 in bug 812695:

    This way you still have the advantage of hardware acceleration, but can not suffer rendering problems.

  • Qosmio G50 - problem with graphics card or fan problem?

    Over the last year, I bought myself a Qosmio G50 at the beginning it seemed very nice and kool or so I thought until after the expiration of the first year, I noticed a small problem with my laptop.

    1. my fans are loud and sometimes they overheat, whats worse I can't clean my computer laptop but because fans note my fans were quite
    the first year to have my laptop, so I have no idea why they are noisy, they shouldn't be doing this right?

    2. now that my fans are not clean, I'm in trouble, play with my video games, at least those who need the video card.

    3. while I play my games I have noticed how the fans or the video card video game a little speed and not the game, but you get the idea, it was bugs me for everything now.

    Here is my last question for Toshiba support here
    Qosmio G50 laptop Fans can be replaced? If so, how much would it cost?

    What are the causes of the nose of the fans to make it so hard?

    More help on my problem would be welcome.

    If you have any questions for Toshiba support service then you are on the wrong place here. This is the forum user.
    Maybe you should contact the nearest authorized service provider and ask it.

    They can clean up your computer is turned on in a professional manner. After cleaning of the cooling and ventilation of cooling grid will be dust-free and run with low speed.
    The material can be cooled properly.

  • problems with calendar

    I'm having a frustrating problem with calendar projects. When the project is exported to another preview of pdf or simply buy, the months at the bottom of the page text appears as very low. There is no way to change the font size at all stages of the project. I had this same problem in November

    and got about it fly by the whole project and 4 hours of work and starting over. He then worked and I thought the problem was a corrupted file on my end.however that I have invested a whole day to do this project on two different Macs with the same result. any help or ideas would be appreciated

    !. With the help of pictures 1.5

    2. the two Macs with 10.11.4

    3. using color paper theme

    4. not all months have MONTHS small TEXT seems to be random

    First of all, as a test pictures of launch with down option and create a new test library.  Import photos and a test to see if the same problem persists. T it? If this is not the problem is limited to your library so try to repair the library according to the instructions in this document from Apple: Repair Your Library.

    Warning: If you use iCloud photo library with Photos, this operation will lead to Photos to upload all your pictures again (of difficulty missing or incorrect thumbnails in photo - Apple Support).

    If that doesn't solve the problem user jdelisle posted a fix for the same problem in iPhoto.  Don't know if it applies to Photos, however.

    jdelisle

    December 6, 2012 20:00

    Re: Change the font size of the text in a font of month date box resizes also irreversible at 6 points?

    in response to Loki cyberworld

    I ran into the same problem - my iPhoto calendar month text was small for a reason, and I couldn't change it to a larger font size. I decided to take a look at the way iPhoto stores project data and discovered that it is a simple SQLite table.

    Here is a fix, guaranteed to work.  We will open your iPhoto projects database and edit the details of the police directly by hand, because there is no way to fix this in iPhoto (Apple, correct this bug...)

    This seems much more difficult that it is what is serious effort of 10 minutes.

    1. Get SQLite Browser http://sqlitebrowser.sourceforge.net/
    2. Quit iPhoto and launch the browser of SQLite
    3. Open a new finder window and open the pictures folder located in your home directory
    4. You should see a section in your folder of photos called "iPhoto Library".  Right click and choose "Show Package Contents" because we need to edit a file inside the library
    5. Search for "Projects.db."  Right click and choose "Duplicate" to make a backup in case something goes wrong
    6. Drag and drop the "Projects.db" in the application being SQLite Browser
    7. Click on the button "browse data".
    8. Select the 'KHProject' in the menu dropdown "Tables".
    9. You will see a list of your iPhoto projects.  Locate your calendar project by browsing this list and especially the values in the column 'name '.  When you have found your calendar project, take note of the number in the column 'modelID '.
    10. Change to the "KHProjectTextStyle" table using the drop "Tables".
    11. Locate a line in the table "KHProjectTextStyle", where the number in the column matches 'projectID' 'modelID' you noted in step 9, and where the value "IdentificateurStyle" is "Photo-calendrier-CalendarMonth.
    12. On the line drawn in step 11, look at the value of the column "fontSize".  For my broken calendar, he was "6".  It's much too small, that you can barely read 6 points.
    13. Double-click the "fontSize" value (for me, I double-clicked the value '6')
    14. Replace the '6' '54.  Do not press on enter, just change the '6' '54"and click the button"Apply Changes ".
    15. You're done! Simply click on the disc icon in the browser of SQLite to save your changes (or file-> save)
    16. Open iPhoto and enjoy your calendar fixed

    Hope that helps some of you, this worked 100% for me on several projects of calendar.  If you see not the font size change, make sure that you have identified the correct project in step 8 and make sure you change the "fontSize" for this project, on the line where the value "IdentificateurStyle" is "Photo-calendrier-CalendarMonth.

    If something was terribly wrong, you did a backup in step 5 (right?) and just delete the "Projects.db" you have edited and rename "Projects.db" of the backup.  You can then try again, or not.

    I send my calendars to print this week and will see if there are any questions.  I don't anticipate any problems.

    Don't forget to back up your library before you try the hack of the database file.

Maybe you are looking for

  • Why am I being asked to buy antivirus software for apple

    I have a MacBook Pro and currently on a trip abroad, but a lot of adware and also being asked to buy antivirus software. Normally at home in Ireland I don't remember the amount of adware. The impression that Safari was strong enough to withstand the

  • Windows Vista recovery disc

    I can't load the Windows Vista recovery disks (3 in total).  The Recovery Manager has not opened.  I went up to step 3 only.  I guess the restore disc (CD 1) failed.

  • Myrio stop rt

    Hey guys pro, I need someone help me now ~ I made a mistake on MyRIO. burn some time program loop without pause and the stop condition button... I can't stop him, same reset button or build something new to cover... but not everything works MyRIO run

  • Error code 80070539 will not install in new Windows Pro 32

    Starts to install, allows you to restore and shortly after "updates could not be installed" I closed Google desktop, 3rd party antivirus paused and have nothing else running.  Will have some problem installing HP 6 L printer and get other software to

  • My DRIVER CD/DVD HL0DT-STDVDRAM GSA-T20N Deriver Windows cannot recognize the Driiver

    I have already submitted the problem but I'll put new retail I was Unistalling Norton Antivirus 360 Vervion 5.0 and after restarting the computer didn't recgnize the K drive (CD-ROM/DVD-ROM) ie Windos cannot load the driver Impatience on your part Co