Error by passing the values of the main request to void query.

Hi all

I am not able to transmit the values selected under request of the main request. Error "ORA-00904" get error as REQDATE is not a valid identifier. Pointing at the request of void. Select request works very well with sub query. Please suggest, if I am not following the right approach.
SELECT LAST_DAY(TRUNC(NS.REQDATE)) LoginMonth,
TRUNC(NS.REQDATE),
NS.AcctNum aCCTNUM,
UsrAccts.acctname,
NS.UserId,
NS.Namespace,
Usr.Email_Address,
Loc.LocCode,
NVL(COUNT(NS.UserId),0) WebSiteLoginCount,

-- Passing values to sub query. Such as NS.REQDATE to calcculate AVG time.

(Select AVG(AvgTime) FROM (
Select ((cpath.REQUESTDATETIME)- NS.REQDATE)*1440 AvgTime
FROM usersessiondetails cpath 
Where 
cpath.Userkey=(Select Userkey from user where userid=NS.UserId and namespace=NS.Namespace)
and cpath.acctnum=aCCTNUM
and cpath.transactionname IN (AUTH_LOGOFF' )
-- ERror is pointing to the below line.
and cpath.REQUESTDATETIME = NS.REQDATE )) AverageTime.


FROM Name_Conflict NS, User Usr, Location Loc, Useraccounts UsrAccts
WHERE
NS.entrycreateddate BETWEEN to_date('01-SEP-2011','DD-MON-YYYY') AND to_date('02-SEP-2011','DD-MON-YYYY')
AND UPPER(TRIM(NS.APC)) IN ('O')
AND NS.UserId = Usr.UserId
AND NS.Namespace = Usr.Namespace
AND Usr.LocId = Loc.LocId
AND UsrAccts.acctnum = NS.acctnum
-- Store it at the top of the merge.
AND NS.DestProdId = 146
GROUP BY LAST_DAY(TRUNC(NS.REQDATE)),
TRUNC(NS.REQDATE),
NS.AcctNum,
UsrAccts.acctname,
NS.UserId,
NS.Namespace,
Usr.Email_Address,
Loc.LocCode
Thanks and greetings
Nana AKkivalli.

Your reference to NS. REQDATE is too deep. Oracle only allows you to refer to a column of the main request a deep level.
I think that you can simply modify this query in this:

(Select AVG(((cpath.REQUESTDATETIME)- NS.REQDATE)*1440) AvgTime
 FROM usersessiondetails cpath
 Where cpath.Userkey=(Select Userkey from ods_user where userid=NS.UserId and namespace=NS.Namespace)
   and cpath.acctnum=aCCTNUM
   and cpath.transactionname IN (AUTH_LOGOFF' )
   and cpath.REQUESTDATETIME = NS.REQDATE )

You don't have the level of additional query to the moy.

Tags: Database

Similar Questions

  • How to pass the main functions Fn?

    Recently bought a new computer hp laptop but after a few days that I realize that I would need to use the Fn key just to use my F1-12 keys, originally of these keys change brightness etc. If anyone knows how to do this?

    never forget to close this thread ive figured out how to fix it anyone who wanders here looking for the same thing just go about it.

    http://h30434.www3.HP.com/T5/other-notebook-PC-questions/how-do-I-lock-and-Unclock-the-fn-key/m-p/45847

    the answer is like the 4th or 5th post.

  • Pass the value of slot - VI VI

    Hello

    I have enclosed below my main vi and the Subvi. In the Sub - VI is a simple timer in a while loop that begins a Boolean button and stops when the time elapses. The problem is that I don't see the value of the clock when the Subvi works on my main vi and I just get the value after the end of the timer. I tried to solve the problem using references, but I can't make it work. According to me, Miss me something. Can you help me please?

    Yes it is.

    And if you read the message 3 in the link I gave, he would have given you this link.  How can I change the changes to a control/indicator a Subvi on the main VI?

    This shows you how to pass the main in sub - VI a VI command reference, so that the Subvi can update it using a value of property node.

  • Move the Main.mxml Variable to Pop.mxml

    Hi all.

    I have a project that has two files.

    Main.MXML and Pop.mxml

    Main.MXML is obv my main application and it has a variable that contains the link to an image.  This variable changes on a regular basis.

    The Pop.mxml file is a TitleWindow I want to display the image, but on a larger scale.

    My Pop.mxml code is like:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:TitleWindow ' http://www.Adobe.com/2006/MXML "
    Layout = "vertical".
    title = "Tazio audio"
    showCloseButton = "true".
    width = "1022".
    height = "800".
    Close = "titleWindow_close (Event); "move =" doMove (event) ">

    < mx:Script >
    <! [CDATA]
    Import mx.events.CloseEvent;
    Import mx.managers.PopUpManager;
    Import mx.core.Application;

    [Bindable] public var test: String;

    private void titleWindow_close(evt:CloseEvent):void {}
    PopUpManager.removePopUp (this);
    }
    private void doMove(event:Event):void
    {//keeps TW inside the layout
    var appW:Number = Application.application.width;
    var appH:Number = Application.application.height;
    if(this.x+This.Width>appW)
    {
    This.x = appW - this.width;
    }
    if(this.x<0)
    {
    This.x = 0;
    }
    if(this.y+This.Height>appH)
    {
    This.y = appH - this.height;
    }
    if(this.y<0)
    {
    This.y = 0;
    }
    }


    []] >
    < / mx:Script >
    < mx:SWFLoader width = '100 percent"height ="100% "source="swf/slide1.swf"/ >
    < mx:Label text = "{test}" color = "#C00D0D" x = "1200" top = "20" / >

    < / mx:TitleWindow >

    What I'm struggling with you, is how to pass the Main.mxml variable to Pop.mxml.

    I know how to do this with components, its easy enough, but I see no to make between these two files.

    The vairable I am rying to spend at the momnet is called 'test'.

    Any help would be great, thanks!

    Hello

    How you launch the popup, if you use PopupManager, try this

    var popup:Pop = Pop(PopUpManager.createPopUp(this, Pop, true));
    popup.test = "your value";
    PopUpManager.centerPopUp(popup);
    
  • Pass the JavaScript array to the method java plugin

    Hello
    How can I pass an array from javascript to java method?
    I've specified java method as type '[MyClass =" param in vso.xml
    But, I am getting error in passing the following Javascript to the Java method:
    "Could not convert 7.6897897E7 in [MyClass].
    Concerning
    Sameer

    Hi Sameer,

    Your Java method signature expects 4 parameters, but you are passing 5 your JavaScript action. There is an extra parameter (the contextId) I think, which causes timestamp be mapped to layer2FirewallRules . This is why it is said that it is unable to convert a number to a table.

  • Communication error has occurred during the last request please check connection.

    I get this error, Communication error occurred during the last request please check connection.

    Request failed with the following error message:

    301 moved permanently

    301 moved permanently

    Nginx

    --.

    You want to start the last request?

    Original title: Communication Error Message

  • How to change the datasource viewobject main request in .jsp

    Hi I viewobject DataSource datasource = 'test '.

    now, in the .jsp page, I need to change the main request and after things return to default once again how can I doo it?

    Thanks for the tips!

    ID.

    JDeveloper Studio Edition Version 11.1.1.6.0

    ADF business components11.1.1.61.92

    If you want to change where clause or change the appearance of any request here

    Change in the WHERE clause or query on VO when running in Oracle ADF | Techartifact

  • HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE

    HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE.

    HOW THEN IT WILL CHOOSE CORRECT ON SUB VI HEXAGONAL ENUM VALUES.

    Enum values are strings, you must first convert the hexadecimal value to a hexadecimal value chain represtation.

    Then that convert from the enum.

  • Passing the parameter of workflow with shows the http 404 error pages

    Hello

    I have a parent workflow with fragments of page deleted as a region on a page. The fragment of a page in the parent workflow displays the read-only table employees. The service Id of the table appears as a link. When you click this link, the following is provided:

    • action listener is called which calls the managed bean that retrieves this Department Id and defines in the pageFlowScope.
    • Pass this value as an input to the child workflow parameter. Child workflow contains its display type is inline-popup page.

    The problem is that when there is no parameter passed to the child workflow the popup is fine. But if the parameter is passed it gives the following error:

    ADF_FACES - 60105:HTTP error state Code: 401.

    Parameters passed from parent to child, such as:

    #{pageFlowScope.DepartmentIdBean.value}

    (DepartmentIdBean is the bean class that gets and sets the Id selected Department)

    Parameter received in the child as workflows:

    #{pageFlowScope.pdeptId}

    Can someone please help me solve this problem? Is that the path parameter is spent creating problem? The same scenario works very well if the child workflow is invoked with fragments of page and like exterior window. I use JDev 12 c.

    I looked at the code and modify it to make it work. There were a few errors. the way main reason you got the error was that you tried to read the non-existing parameter values.

    Download the app from work OTNempDeptTaskFlow.zip | JDev & amp; Goodies ADF

    After downloading the doc you rename to zip and can then decompress.

    Timo

  • How to get the return values by a button on the main program.

    Hello

    I have a main program that has an Authenticate button. Click to authenticate open for auth form that has the USERNAME and PASSWORD FIELDS.
    If the input fields are true then enable editing of jtable in main program...

    Basically something like this:
    main program
    Authenticate.addActionListener (new ActionListener()
    {
    public void actionPerformed (ActionEvent ae)
    {
    Au UpdateAuth = new UpdateAuth(); / / Opens the form that has the username and pass for authentication
    ua.setVisible (true);

    need code for activation of table here
    if(s=="mactus")
    {
    enable editing of the table
    }
    table.repaint ();
    }

    });


    form opened for auth... (class UpdateAuth)

    private String SigninMouseClicked (java.awt.event.MouseEvent evt) {}
    String aname = Aname.getText ();
    String apass = Apassword.getText ();
    If (aname. Equals("") & & apass.equals(""))
    {
    JOptionPane.showMessageDialog (null, "enter the login name or password", "Error", JOptionPane.ERROR_MESSAGE);
    }
    If (!) (Aname.Equals("")) & & apass.equals("")))
    {
    If (aname. Equals("harshil") & & apass.equals ("harshil123"))
    {
    String s = "mactus"; If the user name and password is success enable editing in table in the main program
    return s;

    }
    else if (! aname.equals ("mactus") & &! apass.equals ("mactus123"))
    {
    Aname.setText("");
    Apassword.setText("");
    }
    }
    Returns a null value.
    }

    String.Equals (String)

    String.equalsIgnoreCase (String)

  • I have a HP9050 printer and continue to receive an error 59.10 on the main screen.

    I replaced the cartridge and the DC controller and the Assembly of the main engine, but it did not help.

    any ideas?

    Thank you!!

    Hi Jankster2,

    Generally, an 59.le xx error message is due to a temporary printing error occurred and requires you to restart the printer. The 59 error is related to a main engine failure. There are a few parts that you will need to look below.

    1. the cables on the DC controller PCA

    2. run the test of the Service and give me the code

    Service test verifies that the print engine is working properly. This test is very useful for

    isolate the printer problems. The test can be performed with this attached paper handling accessories,

    but it will not activate the engine accessories, switches or sensors.

    To perform a service test

    1 . turn off the printer.

    2 . make sure that the printer paper path is clear of all the media, and that the left front and right

    the doors are closed.

    3 . open the tray 2 and tray 3.

    4 . turn on the printer, and when the printer is ready, press to open the menus.

    5 . use or to scroll to the DEVICE you want to CONFIGURE, and then press.

    6 . use or to scroll to the DIAGNOSTICS, then press.

    7 . use or for SERVICE TEST highlight, and then press. The service test can take up to two

    minutes to complete. The TEST EXECUTION SERVICE message on the control panel.

    8 when the test is finished, the message SERVICE TEST PASSED appears on the Control Panel, or

    up to five sets of four-digit numbers are displayed on the control panel. If none of the anomalies have been identified,

    (0000 0000 0000 0000 0000) appears. If abnormalities have been identified, the four-digit codes

    appears in parentheses (0101 0111 0132 0000 0000). Note these codes

    3. it might be Assembly of registration or the main engine causing the blockage.

    If it does not always help I'd consider having a HP authorized service technician come out and diagnose the error.

  • Passing an array of wave shape of the main Vi to Subvi

    I'm taking a waveform chart and have it draw accurate information and even a chart in waveform in a Subvi. For now, the waveform is getting the information of a Global DAQmx channel and information is posted on the waveform table.

    I would like to pass this information to a Subvi as well as information of a string that the user has typed information in. I want only the Subvi executing structure case if the Boolean value on the main vi it true.

    The purpose of the Subvi is automatically save (later print) the façade of the Subvi as a bmp/jpeg/png. I have attached the vi for the vi sub file and an image of the main vi. I can't give the file to the main vi.

    Image 1 is the face before of the main vi, which is the same information that I want to transfer to the Subvi. Image 2 is the block diagram of main vi with the information sent to the Subvi.

    The Subvi, I have main table of waveform and the string of the vi entry as a Boolean operator to activate control to save the cover in jpeg format.

    Now I can't get any information to be transferred to the table of waveform in the Sub - VI and I'm trying to make happen is I run some sample and when I stop my main vi waveform graph will have copied data to the Subvi and the Subvi will save the front face of the Subvi in jpeg format.

    I'm sure I'm missing something very obvious, but I was not able to understand using the forum and help of NOR.

    Any help is appreciated, thanks.

    I uh... I did a video on this subject. I hope you don't mind.

    I fall my words a little bit, you know, refer to outputs as inputs, confuse the left, right and laugh unnecessarily. But I think it does the job.

    Let me know how you go.

  • Passing the data change to Subvi through reference: always newest lack input value

    Hello world

    I'm having a problem that I can not find the solution. I searched the forum and google, but I couldn't find an explanation. I hope you can help!

    In the attached draft, there is the "main.vi", which I use to control an industrial manufacturin mashine. On the façade, I have a group called "manual control". Whenever I have change a value in the cluster, an event is triggered to run the case 'hands-on' in the 'Wirbelschicht_main.vi' [called 'FBC (control of fluidized bed)' in the pattern-block main.vi]. In this case, the data in the cluster are updated via a reference. The order run "Manual control" case is placed in a queue.

    When I change the value of, for example, "InAirTempSet" from 0 to 5, then from 5 to 9, I would expect numbers in the Subvi update in the same way (first from 0 to 5 and with the next click 5 to 9). What I see is that the update process in the subviis always one not behind. Which means, I change the value from 0 to 5 in the main.vi and nothing happens. Then I change the number of 9 and 5 in the Subvi, 5 is received. Only when I change the number in the main.vi again, the 9 is passed to the Subvi.

    What is the reason for this and how can I fix?

    Thank you!

    Qbach

    It is the expected behavior. You read the reference control value at the same time waiting for the order to the queue. This means that once the queue ("hands-on") command is received, the value has been already read a long time ago.

    To avoid race conditions, transmit the data using the queue instead of read it asynchronuously with nodes of property. You are running in a race condition here, because that's exactly what your code tells the application to do!

    Norbert

  • passing the value and to timed loop

    Hello everyone,

    I'm working on a VI that consists of a timed loop which takes values in a file every 6 ms and writes it to an output file. Inside this timed loop, there is also a MATLAB block that calculates a parameter based on the value. based on this parameter, that a marker is set to 0 or 1 (planned) to operate as a Boolean marker.

    The problem arises when the marker is set to 1. I need an additional structure any that waits five seconds (without stopping the timed loop iterations) and a 'stop' button is not pressed an additional string is placed in the output file. I wish for the marker to get back to 0 if you press the 'stop' button and not string to put in the file.

    The main problem seems to be the use of a structure outside the timed loop. I can't have a while loop or any structure that waits 5 seconds inside the timed loop. And if I let him out he does not have the value of the marker second structure during execution of the timed loop.

    + Any ideas on what the structure to be used during the 5 seconds Timeout? (I tried a while loop)
    + Use a local or global variable for the marker? (I tried briefly, but as a local variable, I couldn't choose a variable defined in the MATLAB block, and I don't understand global variables in LabVIEW)

    I enclose a simplified version of the VI as well as a sample input file in case it can help visualize.

    Thank you
    DAVA

    So far, there are a few problems with your solution, but first of all, I will try to help answer your original question.

    You are right that you can't have a structure inside the timed loop which waits five seconds without blocking execution of the timed for the same period. You are also right that you cannot simply communicate through cables to an external structure. If you exit a loop of wire in the other, which creates a dependency of data flow, which means that the data loop cannot run at all until another loop ends its execution entirely and send data.

    You have two options:

    • Don't actually use a wait function to determine if the 5 seconds elapsed. Use the Express VI of time elapsed (search the palette). He just guard track of how much time has passed since the last reset. It does not wait. If you are safe to use inside your loop timed in a case that is triggered when the marker value becomes 1. Also check the Boolean command in this case Structure to decide if you should output the data in the file.
    • Use an outer loop as in the example you posted, but use screws of the range of synchronization to send data between the parallel loop. Consider a queue.

    But overall, I don't think there is much chance of this work very well. No way, the Matlab Script node running fast enough to run at a time of 6ms. Also no way it works in a deterministic way at all. He needs to communicate with an external program, so its execution time is really unlimited.

  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

Maybe you are looking for

  • Can I turn off all notifications except the ringtone?

    Hello I keep ring/silent switch from my iPhone on silent all day, as I work in a space where the sound of notifications would be troublesome for others. However, this means that I miss all the phone calls I get, like the vibration is too low to attra

  • My resolution is passed and I can't play the game. How can I get it back to normal?

    Why my screen is big all of a sudden my screen went big... can't play... it was fine this afternoon... don't know how to get the screen back to normal please help... Thank you

  • Microsoft Finance scam - refund Department Possible

    I got three calls pressing me to access my computer to pay back me the money paid to a company of tech support for one year. The appellant says that the work of the company to Microsoft, but it is not Microsoft. The appellant said that it is from the

  • Compare 2 vm

    I have looked closely at (even vbundle) canned reports and can not find a report that you alow me to select 2 vm and compare it sΔ said last week. Any ideas would be fantastic.

  • I could really use some help!

    Hey guys, I have developed an application a few months ago and see a good answer. However, the application was created by using U.S. dollars (American) English. Its a business tool that the user enters data such as products and services and calculate