With the identifier Clause not valid

Hello

My WITH clause goes well until I try to use my query value, date at which I get an identifier not valid.

Before bang my head against the wall of the tha could someone tell me

(1) it works with Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0 - 64bi?
(2) it works in Subselects only or can it be used in the first select statement?

Thanks in advance for your help,

Lou
SQL> create table my_table (some_date date);

Table created.

SQL> insert into my_table values (sysdate);

1 row created.

SQL> commit;

Commit complete.

SQL> WITH WITH_DATE as (SELECT max(TRUNC(SOME_DATE)) FROM MY_TABLE)
  2  SELECT * FROM MY_TABLE WHERE TRUNC(SOME_DATE) = WITH_DATE;
SELECT * FROM MY_TABLE WHERE TRUNC(SOME_DATE) = WITH_DATE
                                                *
ERROR at line 2:
ORA-00904: "WITH_DATE": invalid identifier

SQL> WITH WITH_DATE as (SELECT max(TRUNC(SOME_DATE)) max_date FROM MY_TABLE)
  2  SELECT * FROM MY_TABLE WHERE TRUNC(SOME_DATE) = (select max_date from WITH_DATE);

SOME_DATE
--------------------
04-MAR-2009 11:04:27

Tags: Database

Similar Questions

  • I opened a new tab, but the boxes disappeared and comes with "the address is not valid.

    I opened a new tab and it used to show my recent history in about 12 boxes but now I get this:

    "The address is not valid

    The URL is not valid and cannot be loaded.

    Oh dear.

    Unfortunetly, you'll have to do a clean reinstall of firefox.

    https://www.Mozilla.org/en-GB/Firefox/new/

    Don't forget to restart your PC inbetween facilities

    Good luck

  • perdir media that came with the license, and I made several downloads of the version most always displays the message is not valid

    perdir media that came with the license, and I made several downloads of the version most always displays the message is not valid

    Error: "serial number is not valid for this product". Adobe Creative Suite

  • I get this error message 'The URL is not valid and cannot be loaded' when I try to go to Firefox home. I uninstalled the modules, uninstaleed and reinstalled a new fresh firefox which did not help

    I get the following error message 'The URL is not valid and cannot be loaded' when I try to go to firefox home. I uninstalled modules, uninstalled Firefox and then install a new version. Still have the problem.
    Thanks for the help

    This problem may be caused by a corrupt installation of Visual C++ or incomplete (several versions can be installed-by-side; SxS) it lacks certain runtime components (redistributable Packages), which depends on Firefox (problem with an embedded manifest file that specifies a specific runtime version).

    You need to install the missing components (for example, Redistrbutable end 2005 ++).

    • bug 713167 - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll
  • Recently downloaded version 9.0.1 and the url is not valid for the default home page. The default home page is still supported?

    I currently have www.google.com set as my homepage, but Firefox says that the url is not valid for the default home page.

    The problem is now solved with the current version of Firefox 10.0. Thanks for the help ccbrunt and SafeBrowser.

  • VISA (Hex 0xBFFF001E) error the specified state, the attribute is not valid or is not supported as defined by the resource.

    Hello

    First of all that I must say I just starting with control of the instrument using Labview. For this reason, it is possible that the problem I have is easy to solve. However, I am looking for any solution for the forum, but unfortunately I can't fint anything.

    While the situation is this: I'm looking to plug a power Analyzer (Yokogawa WT1800) with the PC through GPIB. To achieve this, I use the USB/GPIB Interface of Agilent 82357 B. The connection is done correctly because I can see and communicate with him through the Explorer NI MAX.

    In order to achieve control of the instrument using Labview, I downloaded and installed the driver of Yokogawa WT1800 (Driver instruments ykt1800) using the NI Instrument Driver Finder tool. The problem I have is that when I run the examples, I find the following error message:

    Error 1073807330 has occurred to the property (arg1) node in Yokogawa WT1800 Series.lvlib: Initialize.vi-> Yokogawa WT1800 series continuous measurement Normal.vi

    Possible reasons:

    VISA: (Hex 0xBFFF001E) the State specified, the attribute is not valid or is not taken in charge as defined by the resource.

    I tried to change the input of the open Visa arguments vi because I think that this is where is the problem, but I can't reach any solution. The following image is attached to the block diagram of the initialize.vi:

    Any help is appreciated.

    Thank you.

    I suspect the redirect property. Try to remove it.

  • NOR-IMAQ: The transmitted session or the interface is not valid, why?

    Hello:

    I am facing an error that I can't explain. I configured a NI 1742 smart camera, to do some tests. The camera is configured in Max Max I can make some shots of the image and image captures without problem, I can do the same thing in the Vision Assistant. However, in LabVIEW I can't even start a session IMAQ.

    When I try to log in with the Vi Init IMAQ, I always get an error that says "NI-IMAQ: the transmitted session or the interface is not valid. I don't understand why this is happening. I did some research and found that this error indicates when the specified interface does not exist or the unit is unplugged. But I checked and rechecked, and as you can see in the previous image, the interface exists, and of course the smart camera is connected and working. No error status displays the status doesn't lead. I tried with the VI generated with the Vision Assistant, but had no luck, in LabVIEW always manifest error.

    I have LabVIEW 8.6, Vision Assistant 8.6, OR-IMAQ 4.3, MAX 4.6.1

    No idea why this error?, I tried, but I can't understand why!

    I really appreciate help. I'm a bit desperate.

    Thanks in advance.

    Robst.

    Hello

    Just to make sure, you run LabVIEW RT? and if you are, you are your VI running on my computer or have you create a project and added to your target of the smart camera and the VI under this goal?

    If you use your VI on your local computer, the error message makes sense because there is no img0 interface in your computer.

    -Christophe

  • Outlook 2002/Windows error message 7: can't open this item. The object is not valid.

    I recently bought a new computer (eMachine ET1831-05) with Windows 7 installed at the factory.  I installed Outlook 2002.  My old computer died & I have been unable to export my calendar, contacts, etc., so I'll have to enter everything manually in my new.

    When I save a calendar appointment is periodic (for example a birthday) I'm unable to open the appointment.  When I try, I get a message - cannot open this item.  The object is not valid. If I set an appointment that recurs not , everything works fine.

    Any suggestions?

    Thanks in advance!

    Windows Update has nothing to do with your questions.

    Please post here instead: http://social.answers.microsoft.com/Forums/en-US/outlookcontact/threads

    THX

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • error code: win32 error code returned by the print processor: 6. the handle is not valid.

    When I try to print to a network printer, the print job does not print anI getting the error code: win32 error code returned by the print processor: 6. the handle is not valid. All ideas

    Hello

    In this case seems to be with the corrupted printer drivers.

    Follow the steps below to reinstall the driver.

    1. click on the "Start" button, type PRINTERS in the start search box and press ENTER.

    2. find the icons that are associated with the printer, and then remove them.

    3. right click on the blank part of the window and choose "Run as Administrator"-> "Server Properties".

    4. on the tab drivers, select the printer listed and click Remove. Please, select Remove driver and driver package.

    5. open the start menu, enter APPWIZ. CPL in the search box and press ENTER to launch the "programs and features".

    6. try to remove all related printer software.

    7. then download the latest driver from the printer manufacturer's Web site.

    8 install the driver.

    All the best!

  • 0x8007000d the data is not valid when which a file name.

    I just got a new computer with Windows 7.  I transferred all my music to the new machine and have incountered a couple problems.  I use a program called winamp to play my music and that works very well; However windows media player does not recognize more than half of music tags that winamp is to see very well.  When I go into the file & try to update the information by adding an artist or track # I get the following error: 0x8007000d the data is not valid.  Also when I run Windows media player it sucks to the top of my processor speed b/c its continualy "downloading information for an unknown artist" is a brand new macine w / very few additional programs. I have a deck of cards, Winamp, and Windows.  I'm always EMU does not download toolbars.  Music is a big part of my computer, and it becomes very frustrating.  I don't want to install i-tunes!  Help

    Hi Kishvens,

    Welcome to the Microsoft Answers Community Forum site!

    In order to solve your problem, please let us know what are the types of file, with which you have a problem? If it's MP3 or any other format

    There are some third-party tools that will help you recreate the corrupt tags.

    For more information, suggest you check the mentioned below for relationships, where the customer's problem solved.

    http://social.technet.Microsoft.com/forums/en-us/w7itpromedia/thread/4b362563-88d8-4814-9ae3-f98e21375af2

    http://social.technet.Microsoft.com/forums/en-IE/w7itproinstall/thread/fd434d22-8765-44DB-8B17-2257a3619255

    I hope this helps solve your problem!

    Thank you best regards &,.

    Calogero - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

  • OSITCP_pipe_send: Magic of the pipe is not valid.

    Hello!

    I have big problems with a six month old SG200 - 50 p. Randomly, the switch stops working, seems to restart without notice. Configure a SYSLOG server to intercept any useful information from the device.

    • (Image Active) firmware version: 1.3.7.18
    • Start the Version: 1.3.5.06

    I have attached a copy of the SYSLOG file. But I want to clarify a specific line, as seems to be the real problem.

    % OS-F-CCI: OSITCP_pipe_send: magic of the pipe is not valid. Pipeid - 1702259060, magic - 1634498143 * FATAL ERROR * task Reporting: NCCD.  Software version: 1.3.7.18 (date of 12 January 2014 time 18:01:12) 0x16adc8 0x166f34 0x6df974 0x48fd60 490670 x 0 0 x 490890 0x6e785c 0x4c7950 0x4c7d5c 0x1223fc

    To be honest, I don't know what that means. And Google seems to be useless in this regard.

    I intend to update the firmware of this weekend, because I don't know what to do next. I have the same problem on another switch (SF200 - 48P), but it occurs less often (a perhaps a month).

    No information on this error message would be appreciated, as I try to understand what is happening.

    Thank you.

    Hello

    I see this question once only once but reset factory and the manual configuration seems to solve the problem.

    If you however still see this error please open ticket with small business to engineering team can look into it:

    http://www.Cisco.com/c/en/us/support/Web/TSD-Cisco-small-business-suppor...

    Kind regards

    Aleksandra

  • To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    Hello m.velentino,

    Not sure if you are still having the error message isn't valid win32.applicaiton.

    Get the error: not a valid 32-bit application can have several origins:
    I have listed some of them below.

    The file is corrupted, bad or missing.
    -If the hard disk is damaged or hurt it cause work programs to fail, either because not all data can be read from the hard drive the program is damaged on the drive. Run scandisk and defrag on the hard disk to check for potential errors.
    -If you run the program from a shortcut on the computer, verify that the program is still on the computer. In some cases if the program is no longer installed on the computer, you can get this error.

    File is not designed for your version of Windows:
    -If you try to run a program that is not designed for your version of Windows, you can get this error.
    -Although many old programs designed to work in older versions of Windows will work with new versions of Windows, unfortunately, not all programs will not work.
    -If the program is an MS-DOS program more former start program or Windows, you can get this error.
    -If the program is designed for a 64-bit version of Windows and you are running in a 32-bit version of Windows, it will not work and generate this error.

    File is a virus, worm or other malicious program file.
    -
    This error can be generated by a file that is a virus, worm, Trojan horse or other type of malware file. Often, this will result because the antivirus installed on the computer will not allow the file to install or run. Try to analyze the file to check, it is not a virus or infected.
    -If the file has been checked and is clean, it is always possible that the virus protection program or a another program installed on the computer is at the origin of questions during installation or execution of the program. Start the computer in Mode safe and try to run the program. start the computer in Mode safe will be that nothing is running in the background that could cause this problem.

    Hardware incompatibility.

    -If you get this error during the installation of a program, it is also possible that the CD-ROM drive or the drive that you are installing the program from is not compatible with Windows or has drivers that are not compatible with Windows.
    -Download the latest drivers for your CD player or other of the manufacturer of the computer or the manufacturer of the equipment. (Microsoft does not pilot for other materials)

    Let us know if these suggestions help you.

    Marilyn

  • I'm trying to redeem a code but it says that the code is not valid is not true.

    I just got a code for my school to use Adobe cloud. There is no way that the code is not valid because I literally just it generated from the site of the school with a contract number and the registration number. However, when I go to enter the code (in the link provided by Adobe) I get a message that says that the code is not valid. The code is not invalid, and I'm typing correctly. Why it is not being recognized by Adobe? What gives?

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    - and https://forums.adobe.com/thread/1572504

    or

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • ERROR: New-Snapshot (the operation is not valid due to the current state of the object)

    Hello guys!

    I've been googlin everywhere, but impossible to find a solution to my problem. I hope that one of you, qualified people can point me in the right direction :)

    I created a powerCLI script to take a snapshot of our most important servers before we do our weekly maintenance. The idea to run the script as regular powershell script and then have

    1. Add snap-ins powercli and connect to virtualcenter servers
    2. ask the VC servers to virtual machines in a perticular folder
    3. Loop foreach on these servers to create a snapshot with the name $snapshotname

    Currently, I just do it turn on a test folder that I created in vSphere that contains 3 test VMs:

    • Testmagne1 - normal operation
    • Testmagne2 - I renamed the folder for this virtual machine in the data store to generate an error.
    • testmagne3 - normal operation

    Since the servers (not the test servers, but good ones) is the most important servers in our environment, I want to be able to catch exceptions and errors when I run this script. I do this with the Try - Catch - Finally works.

    The strange thing is:

    The release of Powershell/PowerCLI is different from the output in VirtualCenter (!)

    In virtualcenter, the output is as follows

    • Testmagne1 - snapshot is created successfully - as expected
    • Testmagne2 - the snapshot creation fails because it cannot find the files .vmx - as expected
    • Testmagne3 - snapshot is created successfully - as expected

    However, the exit in powercli is slightly different:

    • Testmagne1 - snapshot is created successfully - as expected
    • Testmagne2 - creation of the snapshot fails because it cannot find the files .vmx - as expected
    • Testmagne3 - snapshot fails with the error message: operation is not valid due to the current state of the object - huh?


    Apparently once the first error is generated all succeeding VMs get error "the operation is not valid due to the current state of the object"


    I've been pulling trying to figure this problem on my hair, but I'm not getting anywhere


    Here is some additional information:

    1. the Script (abridged version of it. It generates the same error):

    -STARTUP SCRIPT-

    $ErrorActionPreference = "stop".

    Add-PSSnapin VMware.VimAutomation.Vds, VMware.VimAutomation.Core | Out-Null

    SE connect-VIServer VIRTUALCENTER1, VIRTUALCENTER2 | Out-Null # Sensored VirtualCenter names

    $servers = get-VM-location 'testfolder '.

    $snapshotname = 'Testsnapshot '.

    $verifycreatesnapshot = Read-Host "you are about to create snapshots for $servers. Do you want to continue? o/n.

    If ($verifycreatesnapshot - eq 'y') {}

    Write-Host "snapshots of creation...". »

    {ForEach ($i in $servers)

    Write-Host "instant Creation for $i."

    Try {new-Snapshot - VM $i - name $snapshotname |} Out-Null}

    Catch {$_.exception | select *;} Write-Host "Unable to create the snapshot for $i" ;}

    }

    Write-Host "command finished.

    }

    else {Write-Host "Operation canceled by user"}

    Read-Host "end of the script. Press ENTER to close. "

    ------------------ END SCRIPT -------------------

    2. the PowerCli error messages:

    Error for Testmagne 2 (as expected):

    File: [DATASTORE114] testmagne2/testmagne2.vmx

    DynamicType:

    DynamicPropertyInternal:

    FaultCause:

    FaultMessage:

    ErrorId: Client20_TaskServiceImpl_CheckServerSideTaskUpdates_O

    perationFailed

    ErrorCategory: NotSpecified

    TargetObject:

    RecommendedAction:

    SessionId:

    ConnectionId: /VIServer = SENSORED: 443 /

    Severity: error

    Message: 31/10/2013-10:52:16 New-Snapshot the operat

    ion for the entity 'testmagne2' failed with the follo

    the wing's message: "file [DATASTORE114] testmagne2/testmagn".

    E2.vmx was not found.

    Data: {ParameterValues}

    InnerException: VMware.Vim.VimException: exploitation of the entity

    'testmagne2' failed with the following message: 'thread '.

    testmagne2/testmagne2.vmx e [DATASTORE114] was not crazy

    ND ".

    TargetSite:

    StackTrace:

    HelpLink:

    Source:

    Failed to create the snapshot for testmagne2

    Error for testmagne3:

    Creation of snapshot for testmagne3

    ErrorId: Core_BaseCmdlet_UnknownError

    ErrorCategory: NotSpecified

    TargetObject:

    RecommendedAction: An error occurred when executing command: new-Snapshot. I have check

    f exception for more details.

    SessionId:

    Login ID:

    Severity: error

    Message: 31/10/2013-10:52:17 instant New-capture operation is not

    valid due to the current state of the object.

    Data: {ParameterValues}

    InnerException : System.InvalidOperationException: operation is not valid from

    e to the current state of the object.

    at VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCo

    reServiceProviderImpl.BeginTaskCompletionPoll (list 1 taskLi

    St)

    at VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskService

    Impl.WaitForTask (IEnumerable 1 taskList, ProgressCallback p

    rogressCallback)

    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdl

    and. EndProcessingErrorHandled()

    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseC

    mdlet. EndProcessingErrorHandled()

    TargetSite: Sub ThrowTerminatingError (System.Management.Automation.Err

    orRecord)

    StackTrace: At System.Management.Automation.MshCommandRuntime.ThrowT

    erminatingError (ErrorRecord errorRecord)

    HelpLink:

    Source: System.Management.Automation

    Failed to create the snapshot for testmagne3

    3 PowerCLI version

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 5.5 Release 1 build 1295336

    ---------------

    Versions of the snap

    ---------------

    VMWare AutoDeploy PowerCLI component 5.5 build 1262826

    VMWare ImageBuilder PowerCLI component 5.5 build 1262826

    License of VMware PowerCLI component 5.5 build 1265954

    VDS's VMware PowerCLI component 5.5 build 1295334

    VMware vSphere PowerCLI component 5.5 build 1295334


    4 VirtualCenter version

    VMware vCenter Server Version 5.0.0 Build 913577

    vSphere Client Version 5.0.0 Build 913577

    Hosts: VMware ESXi 5.0.0 Build 914586

    If you need additional information, let me know

    Any help is greatly appreciated

    Thank you!

    -Loincloth



    Definition - ErrorAction Stop locally on the cmdlet will not solve the problem. We have found and solved the problem and the fix will be available in the next version. Until then, you can use the $error variable to detect whether the cmdlet was successful or not. You can clear the $error variable before calling the cmdlet and check if it's still empty after the call.

  • I bought a few years ago a Creative Suite Design Premium and when I want to record my serial number, your services say that the number is not valid. I am surprised because I have used it before on a PC computer that no longer works. I change my computer

    I bought a few years ago a Creative Suite Design Premium and when I want to record my serial number, your services say that the number is not valid. I am surprised because I have used it before on a PC computer that no longer works. I change my computer with a Mac.  You can check the number you customer service gave me, L. Fernandes: < num series kglad deleted >. I give you my phone number in Paris: < phone number deleted - kglad >. Best account. Chantal

    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-valid-product.html

    p.s. This is a public forum.  the display of your phone number is a bad idea and display your serial number will get it banned (or used by someone else and will not you).

Maybe you are looking for

  • Toshiba TV download firmware

    Hi all I had trouble with my toshiba smart that TV to connect to netflix, after trying everything possible and nowhere, I contacted toshiba who sent me a usb memory stick with the need to download on my TV firmware and should solve the problem, so wa

  • OR TB-2605 terminal block for the NI PXI-2503 relay card PIN GND interconnection?

    I use the relay Board NI PXI-2503 and the NI TB-2605 terminal block to impliment some of interconnections, my question is on the Terminal it is a GROUND terminal on the GND PIN. What electric pins or card background basket or internal relay Terminal

  • FREE HARD DRIVE SPACE

    I have a 500 GB HDD partitioned into drive C 250 Gb and D drive 250 GB.  I have only 15 GB of free space on C but 200 + GB free on D.  How can I move files (photos, music, data, etc.) from C to D but still accessible to programs on the C.  Thanks muc

  • Navigation of the scene!

    HelloI created a flash file contained 2 scenes, "Wheel_Slide_In" and "Wheel_Rotate". MU wants to play the scene "Wheel_Rotate" after "Wheel_Slide_In" finished playing.I put this code in the last image of the 'Wheel_Slide_In ':gotoAndPlay(1,"Wheel_Rot

  • MultiCam video zoom

    tonight, some problems of setting technical support had me change a record 9.0 to 10.0. This solved my settings. now, when you try to change a sequence of cam multi video zoom in then he played that doesn't let me see the image full size. very diffic