Cannot find the MAX Date value in the USER_TAB_PARTITIONS HIGH_VALUE

Hi all

I'll try to find the Max value of the date of the HIGH_VALUE from the USER_TAB_PARTITIONS, but my request has failed because the HIGH_VALUE is a LONG column.

Appreciate your valuable contributions here.

Thank you
MK.

Maldini says:
I'll try to find the Max value of the date of the HIGH_VALUE

You use the PL/SQL:

SQL> select  high_value
  2    from  user_tab_partitions
  3    where table_name = 'RANGE_SALES'
  4  /

HIGH_VALUE
----------------------------------------------------------------------------------------------
TO_DATE(' 1998-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1998-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1998-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1999-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1999-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1999-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 1999-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 2000-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 2000-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 2000-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TO_DATE(' 2000-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')

HIGH_VALUE
----------------------------------------------------------------------------------------------
MAXVALUE

12 rows selected.

Now:

create or replace
  type DateList
    as
      table of date
/
declare
    v_DateList DateList := DateList();
    v_max_high_value date;
begin
    for v_rec in (select high_value from user_tab_partitions where table_name = 'RANGE_SALES') loop
      if v_rec.high_value != 'MAXVALUE'
        then
          v_DateList.extend;
          execute immediate 'begin :1 := ' || v_rec.high_value || '; end;'
            using out v_DateList(v_DateList.count);
      end if;
    end loop;
    select  max(column_value)
      into  v_max_high_value
      from  table(v_DateList);
    dbms_output.put_line('Table RANGE_SALES max high value is ' || to_char(v_max_high_value,'MM/DD/YYYY HH24:MI:SS'));
end;
/
Table RANGE_SALES max high value is 10/01/2000 00:00:00

PL/SQL procedure successfully completed.

SQL> 

SY.

Tags: Database

Similar Questions

  • I just bought the SX710 HS. Cannot find the stamp date on the Menu. Is there a?

    I just bought the SX710 HS.  Cannot find the stamp date on the Menu.  Is there a?

    It seems strange, but no, I don't think that you can mark the date on the pictures. You can print the with a good date.

  • Windows cannot find the files xcel I was accssing regularly to date.

    Windows cannot find the files xcel I was accssing regularly to date.

    Hi Scottud,

    ·        Where you saved the Excel files?

    ·        You are unable to find only Excel files?

    If you remember the name of the file or the folder that you saved the files, you can use the search start, and search the files. See the link below: find a file or folder: http://windows.microsoft.com/en-US/windows-vista/Find-a-file-or-folder

    You can even check recycle bin if you've accidentally deleted it and recover again.

    Link to the same thing: recover files from the Recycle Bin:http://windows.microsoft.com/en-US/windows-vista/Recover-files-from-the-Recycle-Bin

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • "Safari cannot find the server.

    I have not had this happens in another version of Safari, but since the update more recent (9.1.1 on May 17, 2016), I get the following message several times a day: "Safari cannot find the server. Refreshing the page does not help. After I visit some other sites, I am able to connect to those that I had a problem with. Most of the information I could find going back five or more and seems not applicable. It is not necessarily the same sites that don't load. It is random and occurs throughout the day. It's annoying and sometimes embarrassing, but I'm dealing with it (I didn't wish)!

    Does anyone else have this problem? Is this a bug in the latest version of Safari and there at - it an easy fix? Any advice will be greatly appreciated.

    Thank you.

    Hello

    Could be a cookie problem...

    In your Safari menu bar, click Safari > Preferences then select the Privacy tab, then click: delete all data Web site

    Quit and then restart Safari to test.

  • Access cannot find the macro

    Hello everyone!

    I have a damaged database. I decided to try to restore. VD, I created a new database and imported all the tables, queries, forms, reports, macros of corrupted to the new database.

    However, when I try to open most of the forms, I get the error message:

    "Microsoft Office Access cannot find the macro 'TrackDBaseForms '.

    The macro (or its macro group) does not exist, or the macro is new, but has not been saved... »

    This basis has worked for a year, and I never had this problem. A Google search returns no results. However, it is obviously not in the macros page, or in any code I can find.

    I have supports this database for a year and have never encountered this missing macro. A Google search returns no results, so I guess it's something that the developers at the beginning. However, it is obviously not in the macros page, or in any code I can find.

    The corrupted database is such a State that it will not be open to all: the main form that is set to open at startup corrupts. MS Access 2007, size 500mg.

    Thank you!

    Have u tried looking for hidden objects?
    Go to Tools/Options and view the hidden objects to open the database without starting.  You can press the SHIFT key , and then open the DB. Note You may need to do this a few times.

    I hope that this recommendation will help you. In extreme cases, you can restore the data file via the repair tool of ms access as the Access Recovery Toolbox . http://www.oemailrecovery.com/access_repair.html  

  • Satellite T110-11U - cannot find the router WLAN

    Hello

    I have a Toshiba Satellite T110-11U. Have had since February and loved it-fortunately it wireless used throughout the House. Then one day on a month, unless I was in the same room that the wireless router, Wireless does not work. I have 2 other laptops (and iPhone) which still connect wirelessly throughout the House and the garden without problem.
    As you can imagine, it was very strange. When I take in the garden, my other laptops are all networks wireless in the region, but my Toshiba can't find any.

    Suspecting it was a driver problem, I made sure that the wireless drivers are up-to-date. With no joy, I got the system as it was at the time of purchase (do a complete restoration by interupting, starting and leaving the hard drive to be deleted and reinstalled etc.). Still the same problem. I even changed the rooms in which the router is, and the same problem - the Toshiba cannot find the router unless the router is located a few meters from the laptop.

    Until I lose the will to live, can anyone suggest the cause of my problems, or is it time I admitted defeat and brought back to the Comet under warranty (where likely test next to a wireless router and tell me everything is fine!).

    Thank you very much

    Steve.

    Hey Buddy,

    Did you check if the wireless network card is recognized correctly in the Device Manager? There may be a yellow exclamation or unknown device. Try also updating the driver WLAN from Toshiba Web site:
    http://APS2.toshiba-tro.de/WLAN/

    See all other WLAN routers?
    The wireless network card can be activated using a combination of keys FN + F8 and in the BIOS. In the BIOS, you should also load default settings and test again.

  • P1102w - cannot find the printer

    Hello

    I'm unable to print using a wireless connection.

    the printer is p1102w.

    operating system is MAC OS 10.10 Yosemite

    Whenever I try to print something I get "printer is not connected / cannot find the printer" message.

    I tried the solutions on your support site, but nothing helped.

    For sure, printer is connected to the same network as the computer. I see it on the print configuration page and I can connect to its IP address via a web browser (but I can't use web services).

    All software and drivers are up to date. Update Apple is nothing new to me. Niether have your site.

    I tried to move the printer closer and further away from router. No results.

    No web proxy is related to my network.

    To make this work, I have to remove the printer from my system, reinstall it using the USB cable, and then add it again via wi - fi.

    But some time the problem reappears.

    It's really frustrating. Help, please.

    Hi @xopot ,

    I see that you have problems printing via wireless network. I would like to help you today.

    Since you can access the printer embedded Web server, the printer would have a valid IP address. Most likely, it has something to do with the software that the printer uses.

    Fix permissions of the drive on the Mac:

    Close all applications.

    In the Apple menu, click OK, click Applications, and then click utilities.

    Double-click disk utility.

    Highlight your hard drive / partition on the left.

    Click on check and then repair disk permissions.

    Restart the computer...

    Reset the printing system:

    Note: This will remove all printers in the print and Fax/Scan, any printer deleted can be re-added later by clicking the sign plus (+) symbol.

    Click on the Apple icon and then click on System Preferences.

    Click on Printers & Scanners.

    Make a right click (or Ctrl + click) in the left white side panel, and then click Reset printing system.

    Click OK to confirm the reset.

    Type the name and the correct password.

    Click OK to reset the printing system.

    Then click on the sign to add the driver, highlight the printer +. (you may need to click the drop down menu to select the name of the printer) Then click the Add button.

    Configure a static IP address for the printer.

    The printer is not found during Installation wireless.

    Do not take into account the title. Select the Solution 4: assign your printer a static IP address.

    If you need help, let me know.

    Have a great day!
    Thank you.

  • Cannot find the function in the dll library

    I'm trying to use the function I build in a C++ of Labview "Call library function" dll, but it cannot find the name of the function "Add" or "divide". Attached my .dll, file .cpp and screws, could you help me to find out where is the problem?

    The only function exported in your original of the CPP file is the

    add_num()
    

    function. Declare the object as static methods does not export them. It just creates methods of objects that do not have an implicit object as the first parameter pointer and so these functions cannot reference the data object members (but your class has none yet).

    Essentially if you intend to do all your static class methods, using a class is actually pretty meaningless. You would be better with simple standard C functions as your add_num() function is.

  • Update Windows XP SP3 is abandoned during the installation of UNIDRV. DLL and displays the message "the system cannot find the file specified."

    When the update of Windows XP is install SP3, the sequence is abandoned at the location of the process.  After you download the SP3, the progresses set install through the normal initialization sequence, inspection, creating list of 3rd drive part, backup files, etc., begins to install the files but when to reach the "UNIDRV. The installation of the file "DLL" stops and I get a message "the system cannot find the file specified".  The close message will invalidate all the installation and possible automatic restart.  I did not locate a UNIDRV. DLL file and copy it to my C:\ root directory but have tried almost everything in the 22/01/12 'terribrownQF' and the response "Tommy Stanley" 22/01/12 no change where the installation of SP3 crashes.  Should I try to put the UNIDRV. DLL file on my computer?  Any other ideas?

    Please respond to each of the following diagnostic questions in a numbered list type in your very next answer (no need to quote this post):

    1. What is the full name of your application or the installed antivirus security suite and when (date about) is your subscription current expires?  What (other than Defender) anti-spyware applications are installed?  What third-party firewall (if applicable)?

    2 a Norton or McAfee application ALREADY installed on the computer?

    3. do you have a free trial Norton or a test of free McAfee [CHOOSE ONE ANSWER] come preinstalled on the computer when you bought it? (No matter if you have never used or activated).

    4. why has not been installed SP3 years? [1]

    5. is Firefox, Chrome or any other alternative browser installed?

    6. are you familiar with "Registry cleaners" (e.g., Registry Mechanic;) System Mechanic; RegCure; RegClean Pro. Advanced SystemCare. Registry Booster; McAfee QuickClean. AVG PC TuneUp. Norton Registry Cleaner; PCTools optimizer; SpeedUpMyPC; PC Doctor; TuneUp Utilities; WinMaximizer; WinSweeper; Comodo System Cleaner. Advanced System Optimizer. CCleaner)?

    7 have you ever had the opportunity to do a repair install or clean install of Windows XP for some reason any?

    =====================================================================
    [1] note: support for WinXP SP2 ended the July 13, 2010! "Computers running WinXP SP2" will no longer receive software updates from Windows Update "[i.e., updated on and after August 2, 2010 so now that you're missing more than two years worth of updates to security critical! ] until SP3 has been installed.

  • Receive error message: the system cannot find the specified file. C:\Windows\System32\ < LANG_NAME > \mstsc.exe.MUI when I try to use remote desktop.

    Remote Desktop error

    I use Vista Home Premium.  I used to be able to use the remote desktop connection application, but all of a sudden, it stopped working.  When I try to run it I get this message:
    _________________
    The system cannot find the specified file.

    C:\Windows\System32\\mstsc.exe.MUI
    _________________

    Does anyone have a solution to this problem?  I do not have this file into C:\Windows\System32\en-US\... but perhaps it was corrupted somehow?

    Please help me.  Thanks in advance.

    Hello

    It seems that there are a few system files that have trouble.  One of them being mstsc.exe, I wish you find spyware or infection by the virus first, before you try the next step.  Please see the sticky thread in the security forum.  MVP offers some good advice how to remove these problems.

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/fa30853d-719a-4265-9e7b-9287567d31e3

    If everything is clean, we will try a repair installation to replace the problem files and also to ensure that other system files are good.

    The 'repair' installation (upgrade on-site) will not affect your installed programs or data.  Just make sure that you are already connected to your computer when you start the installation.  Do not boot from the DVD.

    If the installation does not start automatically when you insert the DVD, run setup.exe from your DVD player.

    • When the Setup program starts and the install now screen, click install now.
    • Note When you receive the important Get updates for installation message, click go online.
    • Click upgrade when the which type of installation you want? appears

    Please let us know if this solves the problem for you.

    Brent
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I get an error saying "the BCM42RLY service failed to start due to the following error: the system cannot find the file specified. '.

    Log name: System
    Source: Service Control Manager
    Date: 17/07/2011-21:12:53
    Event ID: 7000
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: ivan-PC
    Description:
    The BCM42RLY service failed to start due to the following error:
    The system cannot find the specified file.
    The event XML:
     
       
        7000
        0
        2
        0
        0
        0 x 80000000000000
       
        203523
       
       
        System
        Ivan-PC
       
     
     
        BCM42RLY
        %%d Ko
     
    original title: can someone please help...

    Hello

    1. you are using a Dell computer?
    2. What is the model number of your computer?
    3. don't you make changes to your computer before the problem?

    BCM42RLY is a broadcom driver. I suggest that you uninstall and reinstall the drivers.

  • The system cannot find the specified file. (0 x 80070002)

    I am running Vista Home Premium.  We ran out of space on the external hard drive that we use backups, even if the backup disk is significantly bigger than the data we sort to the top.  My wife has removed the backup files to start again.  Now backup status and configuration indicates, "the backup was not completely successful... the system cannot find the file specified. '. (0 x 80070002) "How to fix this?

    Hi SamSmithey,

    I suggest you try the steps suggested by Vincenzo Di Russo, from the following link and check if this can help:

    Error message when Vista backup (0 x 80070002)

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: How to back up and restore the registry

  • Error: The drive cannot find the sector requested: 0x8007001B) during execution of the backup on DVD

    I tried to backup using a DVD, as usual, but without success. Back to the high status and Configuration States:

    Upward did not complete successfully
    Original title: back to the top has not completely filled.

    An error has occurred. The following information can help you resolve the error:)

    The drive cannot find the sector requested:
    0x8007001B)

    I've looked everywhere for this problem... need help :)

    Babette

    Hello

    1. have you done any software or hardware changes on your computer before this problem?
    2. have you checked with another DVD drive?
    3. using the Windows backup feature to backup?
    4 do you have third-party backup programs installed on your computer?
     
    To work on the issue, refer to these methods.
     
    Method 1:
     
    Step 1:
     
    If it's a DVD I suggest trying to backup to an external hard drive and check to see if you get any errors.

    Step 2:
     
    Temporarily disable the antivirus software and check if you are able to perform the backup.

    Caution:
    Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
    Back up and restore: frequently asked questions

    Set up or change automatic backup settings
    Method 2:
     
    I suggest you check for errors of hard disk on the drive you want to back up.
     
    Check your hard drive to find errors in Windows 7
    http://support.Microsoft.com/kb/2641432
     
    NOTE: the steps also apply to Windows Vista
     
    CHKDSK warning:
    Important: When running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    Hope the information is useful.
  • MOM. Implementation - the system cannot find the file specified at startup

    original title: when that I start the computer, this message - MOM. Implementation, Version = 2.0.3463.30896, culture = neutral, PublicKeyToken = 90ba9c70f846762e, or one of its dependencies. The system cannot find the specified file. __

    So my video capabilities do not work well and the system is slower loading pages of web sites.

    Help, please

    Try a system restore to a Date before the problem began:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Then:

    This error seems to indicate a driver problem ATI Catalyst

    Go to the Web site of the manufacturer of your laptop computer-graphics/computer card > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • After update of Windows 7 with the last KB 'Reliability' updates, wouldn't Boot: Boot mgr failed, cannot find the OS loader

    After that update of Windows 7 with 5 ~ updates which mainly provided increased reliability, these KBs wound up loader of Windows BOOT OS/corrupt the rupture.

    Root cause found:
    ----------------------
    Boot Manager cannot find the OS loader

    Repair action: repair of files
    Result: failed. Error code = 0xa<---- next="" repair,="" this="" changes="" to="">
    Time taken = 4206 ms

    Repair action: repair store boot configuration data
    Result: Has no = 0 error code x 490
    Time taken = 221 ms

    Repair action: System Restore
    Result: Completed successfully. Error code = 0 x 0
    Setting time = ms 44444

    How to search through my hard drive to find updates KB which is the origin of my computer to lose its bootloader/OS and not starting?  What KB update is initially the charger operating system not found when everything worked very well, before these 5 updates.

    What are the solutions?

    Try the Forum updated; It includes questions of XP, Vista and Windows 7 update:

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Windows 7 backup error "the system cannot find the file specified. (0 x 80070002) »

    * Note that I never could solve this problem. In the long run, I ended up reinstalling the operating system (for different reasons), but the issue remained pending. Thanks to those who have tried to help. (January 30, 2011)

    Suddenly, I seem to have a problem with Windows 7 backup. I get the message "the system cannot find the specified file. (0 x 80070002) "at the point in the process when the backup is supposed to start. It has disabled my ability to make a backup, of course, except to the directly copy files to another hard drive. I was able to use the same USB drive in the past, so I don't know what happened.

    I thought it might be a corrupt profile causing the problem, but I still get the same message on the new profile. I thought that maybe it's the reader, but I get the same message when you try to use the DVD burner.

    I think my Windows software is up to date, and I looked in different places to find an answer without success. Any help you could give me would be appreciated. Thank you. I would be happy to provide you with any additional information you might need.

    Hi Cuzzlor,

    I finally solved the problem last week; I had the same error for 4 months.

    Although the error message when opened on the Notepad kept identifying a PDF 'missing' that I had deleted my office long and the computer.  I couldn't find the file back.

    I noticed that the library tends to scan and Add locations; He had made a place out of the folder, because it was a file created with a scanner.

    I've removed the 'empty' location, I don't know how I didn't notice, she draws from images and my backups are free from error.

    I hope this helps.

Maybe you are looking for