Void results use of query in the main query.

I need to query a specific parameter in a table called parameter_id which will return a list of location code using those should I then ask another table for values of max (date_time) in another table.

Select location_id FROM TABLE1

WHERE PARAMETER_ID ='ELEV_POOL;

SELECT

TABLE1. PARAMETER_ID,

TABLE1. CWMS_TS_ID,

TABLE2. VALUE,

TABLE1. BASE_LOCATION_ID,

TABLE2. DATE_TIME,

FROM TABLE2

JOIN IN-HOUSE

TABLE1:

WE

TABLE1. CWMS_TS_ID = TABLE2. CWMS_TS_ID

WHERE

TABLE1. CWMS_TS_ID LIKE '% - REV'

AND TABLE2. UNIT_ID = ('FT')

AND TABLE2. VALUE IS NOT NULL

AND (TABLE2. CWMS_TS_ID, TABLE2. DATE_TIME) IN

(SELECT CWMS_TS_ID, MAX (DATE_TIME)

FROM TABLE2

GROUP OF TABLE2. CWMS_TS_ID)

;

And it does not work?

SELECT  TABLE1.parameter_id,
TABLE1.cwms_ts_id,
TABLE2.value,
TABLE1.base_location_id,
TABLE2.date_time
FROM
TABLE2
INNER JOIN
TABLE1
ON
TABLE1.cwms_ts_id = TABLE2.cwms_ts_id
WHERE
TABLE1.cwms_ts_id LIKE '%-rev'
AND TABLE2.unit_id = ('ft')
AND TABLE2.value IS NOT NULL
AND TABLE1.base_location_id IN ( SELECT BASE_LOCATION_ID
                                 FROM Table1
                                 WHERE PARAMETER_ID = 'Elev-Pool'
                                 )
AND (TABLE2.cwms_ts_id, TABLE2.date_time)
IN
(SELECT cwms_ts_id, Max(date_time)
FROM TABLE2
GROUP BY TABLE2.cwms_ts_id);

Tags: Database

Similar Questions

  • void VI does not run with the main VI.

    My main and sub VI is attatched.

    danil33 wrote:

    Re: void / VI does not run with the main VI.

    When you start your main program, the Subvi is called and the main VI must wait the Subvi before it can continue. However, the Subvi is not set to open the Panel before, so very probably that it runs in the background for 100 seconds (1000 iteration to 100ms), because no one can press the stop button at the beginning to put an end to the Subvi. Once the Subvi is completed, the last value is returned to the main VI via the output connector and the main VI can process and display this last value. At this point, the main VI stops, because it's done (hopefully you do not "continuous operation").

    Obviously you have some misconceptions of beginners on the stream. Please we tell exactly what you expect the program to do, and we might be able to point in the right direction.

  • Trajectory using 3D - OK to the main timeline broken into symbol

    I spent many hours of frustration trying to figure why this is happening. It is totally broken. I need to use a path using 3d in a symbol. Because of the way in which the project is being implemented (flexible), there are several FLAs that must be converted to symbols.

    So when I convert the FLA that contains a path with 3D, the object moves away from the path in the symbol (the 1st framework remains in place, but everything else is off the beaten), even if it remains correct in the main timeline.

    And once I have start to edit the object in the symbol, the object refers to the way ok, as if it had been a weird display problem, but 3D is all wrong - the vanishing from the object point has changed. The same thing if I create the 3D path using the parameters of the tool "global" or "local".


    What is happening is, of course, the registration point in the symbol, but I was confused by what I saw.

    The reg in the main scenario is at the top left, and he is a symbol. So when executives are pasted into the symbol the reg point moves toward the Center from the position of objects on the stage. So if the scene is 400 x 600, then the reg point moves 200 + and + 300.

    What is happening is that the 3D vanishing point remains numerically identical, so he also moved the reg point. The confusion occurs because objects on the 3D trajectory also move and appear in the wrong place, but the road and the first object remain in the same place. But once any object on the path is published (eg. click an object and it up and down again with an arrow key) they all break the path again. Right now, compared to other objects, but incorrect to the point of leakage.

    If the vanishing point must be reset for the symbol-200 and -300 of its current values. Easy, isn't it?

    Well, no. Because that redefines the vanishing point in the world, and all 3D in the main storyline is the new point of flight, which is different from the scene. And if this symbol is reproduced in the main storyline, the vanishing point will be according to the main scenario and it wll look all wrong again.

    So what you really have to, is to move the point of reg of the symbol to to - 200 and -300. Easy if it is a simple symbol with a couple of short times, but if it is complex, it is not easy.

    You need select several images and drag the end of the selection range to the end of the timeline, and then select all and move + 200 and 300 + to have the reg point at the top left of the area of 'scene '. This can be a real drag when you have a long timeline and you miss a little in the selection range or realize that you have some layers locked, hidden in folders or below the fold.

    WHAT WOULD BE REALLY USEFUL would be to have the ability to simply change the point of a symbol reg digitally. A new extension, perhaps?

  • How to get the result using this query?

    Hi using iam under query,

    WITH CTE (SNO, ID, PNT)

    AS

    (SELECT ROWNUM as SNO, TRANS_ID, VCN_NO OF)

    SELECT V.TRANS_ID, V.VCN_NO IN VSL_MOVES V

    WHERE V.END_TIME > = TRUNC (TO_DATE (: pStartDate, ' dd/MM/yy HH24')) AND V.END_TIME < = TRUNC (TO_DATE (: pEndDate, ' dd/MM/yy HH24'))

    AND V.MOVEMENT_TYPE_CODE NOT IN ORDER ("ATA") OF V.VCN_NO, V.END_TIME))

    SELECT ROWNUM as SNO, TAB. VESSEL_NAME, TAB. FLAG, TAB. IMO_NO, TAB. ARRIVED_DATE, TAB. F_ROM,

    NVL ((SELECT CASE WHEN VMS. MOVEMENT_TYPE_CODE = 'ATS' THEN (SELECT TO_CHAR (NBV. ATD, "DD/MM/YYYY HH24") OF PNTS WHERE NBV. DOC_NO = TAB. VCN_NO AND ROWNUM < = 1) WHEN VMS. MOVEMENT_TYPE_CODE = 'ATB' THEN (SELECT TO_CHAR (VBU. BRTH_ALL_FAST, "DD/MM/YYYY HH24") OF VSL_BERTH_UNBERTH VBU WHERE VBU. BERTH_TRANS_ID = VMS. TRANS_ID AND ROWNUM < = 1) END ELSE NULL VSL_MOVES VMS WHERE VMS. TRANS_ID = TAB. (T_ID),'-') Sailed_Date,.

    NVL ((SELECT CASE WHEN VMS. MOVEMENT_TYPE_CODE = 'ATS' THEN (SELECT P.PORT_NAME OF RRS, PORT_MASTER P WHERE P.PORT_CODE = PNT. VSL_NXT_PRT_CALL AND PNT. DOC_NO = TAB. VCN_NO) WHEN VMS. MOVEMENT_TYPE_CODE = 'ATB' THEN (SELECT CASE WHEN VBU. BERTH_CODE LIKE "% VOPK" AND THEN "VOPAK" WHAT VBU. BERTH_CODE AS "VSPM %" THEN "VOPAK" ELSE "POF" VBU VSL_BERTH_UNBERTH END WHERE VBU. BERTH_TRANS_ID = VMS. TRANS_ID AND ROWNUM < = 1) END ELSE NULL VSL_MOVES VMS WHERE VMS. TRANS_ID = TAB. (T_ID), "-") DESTINATION

    DE)

    SELECT

    VM. TRANS_ID,

    VM. VCN_NO,

    VM. MOVEMENT_TYPE_CODE,

    (SELECT PNT. VSL_NAME OF PNTS WHERE NBV. DOC_NO = VM. VCN_NO AND ROWNUM < = 1) VESSEL_NAME;

    (SELECT C.COUNTRY_NAME OF COUNTRY C, VESSEL_MASTER M WHERE C.COUNTRY_CODE = M.FLAG AND M.VSL_CODE = VM. VSL_CODE AND ROWNUM < = 1) AS FLAG,.

    (SELECT M.VSL_IMO_NO FROM VESSEL_MASTER M WHERE M.VSL_CODE = VM. VSL_CODE AND ROWNUM < = 1) IMO_NO;

    TO_CHAR (VM. END_TIME, "DD/MM/YYYY HH24") ARRIVED_DATE,.

    WHEN VM BOX. MOVEMENT_TYPE_CODE = 'STA' THEN (SELECT P.PORT_NAME FROM RRS, PORT_MASTER P WHERE P.PORT_CODE = PNT. LST_PORT_CALL AND PNT. DOC_NO = VM. VCN_NO AND ROWNUM < = 1) WHEN VM. MOVEMENT_TYPE_CODE = 'UTA' THEN (SELECT VB. VSL_BERTH_UNBERTH VB BERTH_CODE WHERE VB. UNBERTH_TRANS_ID = VM. TRANS_ID AND ROWNUM < = 1) END F_ROM.

    --(SELECT T2.ID DELE DE CTE T1 JOIN CTE T2 SUR T1.) SNO = T2. SNO + 1 WHERE T1.ID = VM. TRANS_ID AND T1. NBV = VM. VCN_NO AND T2. NBV = VM. ATD VCN_NO)

    (SELECT T1.ID CTE T1 WHERE SNO = (SELECT T2. SNO + 1 ETC T2 WHERE T2.ID = VM. TRANS_ID AND T2. NBV = VM. T_ID VCN_NO))

    OF VSL_MOVES VM

    WHERE (VM. End_time > = TRUNC (TO_DATE (: pStartDate, ' dd/MM/yy HH24')) AND VM. End_time < = TRUNC (TO_DATE (: pEndDate, ' dd/MM/yy HH24')) or

    ((CASE WHEN VMS. MOVEMENT_TYPE_CODE = 'ATS' THEN (SELECT TO_CHAR (NBV. ATD, "DD/MM/YYYY HH24") OF PNTS WHERE NBV. DOC_NO = TAB. VCN_NO AND ROWNUM < = 1) WHEN VMS. MOVEMENT_TYPE_CODE = 'ATB' THEN (SELECT TO_CHAR (VBU. BRTH_ALL_FAST, "DD/MM/YYYY HH24") OF VSL_BERTH_UNBERTH VBU WHERE VBU. BERTH_TRANS_ID = VMS. TRANS_ID AND ROWNUM < = 1) END ELSE NULL VSL_MOVES VMS WHERE VMS. TRANS_ID = TAB. Saileddate T_ID)) > = TRUNC (TO_DATE (: pStartDate, ' dd/MM/yy HH24')) and

    (CASE WHEN VMS. MOVEMENT_TYPE_CODE = 'ATS' THEN (SELECT TO_CHAR (NBV. ATD, "DD/MM/YYYY HH24") OF PNTS WHERE NBV. DOC_NO = TAB. VCN_NO AND ROWNUM < = 1) WHEN VMS. MOVEMENT_TYPE_CODE = 'ATB' THEN (SELECT TO_CHAR (VBU. BRTH_ALL_FAST, "DD/MM/YYYY HH24") OF VSL_BERTH_UNBERTH VBU WHERE VBU. BERTH_TRANS_ID = VMS. TRANS_ID AND ROWNUM < = 1) END ELSE NULL VSL_MOVES VMS WHERE VMS. TRANS_ID = TAB. T_ID) saileddate) < = TRUNC (TO_DATE (: pEndDate, ' dd/MM/yy HH24')))

    --(Sailed_Date > = TRUNC (TO_DATE (: pStartDate, ' dd/MM/yy HH24 ')) AND Sailed_Date < = TRUNC (TO_DATE (: pEndDate, ' dd/MM/yy HH24')))

    AND VM. MOVEMENT_TYPE_CODE IN ('STA', "UTA")

    ) TAB

    now my Question is should I include Sailed date also starttime and endtime (ex: date range of pStartDate and pEndDate I need to display the date sailed respected records)

    I mean the problem is solved, I found the solution

    docks of pof-

    WITH CTE (SL, VCN_NO, VESSEL_NAME, FLAG, IMO_NO, ARRIVED, FROM_, MOVEMENT_TYPE_, NEXT_MOVE, SAILED_DATE, DESTINATION, FID, TID)

    AS

    (SELECT T1.*,

    WHEN T1 BOX. FROM_ = 'POF' THEN 1 OTHER 2 END FID,

    WHEN T1 BOX. DESTINATION = "POF" THEN 1 OTHER 2 END TID

    Of

    (

    SELECT ROW_NUMBER() OVER (PARTITION OF VM. VCN_NO ORDER BY VB. (SL BRTH_ALL_FAST),

    VM. VCN_NO,

    (SELECT M.VSL_NAME FROM VESSEL_MASTER M WHERE M.VSL_CODE = VM. VESSEL_NAME VSL_CODE),

    (SELECT C.COUNTRY_NAME OF COUNTRY C, VESSEL_MASTER M WHERE C.COUNTRY_CODE = M.FLAG AND M.VSL_CODE = VM. VSL_CODE AND ROWNUM< =1="" )="" as="">

    (SELECT M.VSL_IMO_NO FROM VESSEL_MASTER M WHERE M.VSL_CODE = VM. IMO_NO VSL_CODE),

    VB. BRTH_ALL_FAST HAS ARRIVED,

    (CASE WHEN VM. MOVEMENT_TYPE_CODE = 'ATB' THEN 'ANCHORAGE' WHAT VM. MOVEMENT_TYPE_CODE = "LTB" THEN 'LAND' WHEN VM. MOVEMENT_TYPE_CODE = "BTB" AND (SELECT TT1. VSL_MOVES TT, VSL_BERTH_UNBERTH TT1 BERTH_CODE WHERE TT. TRANS_ID = TT1. BERTH_TRANS_ID AND TT. VCN_NO = VM. VCN_NO AND TT1. UNBERTH_TRANS_ID = VB. BERTH_TRANS_ID) (SELECT WB. BERTH_MASTER BM BERTH_CODE WHERE BM. QUAY_CODE NOT IN ("VOPAK", "SPM")) THEN 'POF' WHEN VM. MOVEMENT_TYPE_CODE = "BTB" AND (SELECT TT1. VSL_MOVES TT, VSL_BERTH_UNBERTH TT1 BERTH_CODE WHERE TT. TRANS_ID = TT1. BERTH_TRANS_ID AND TT. VCN_NO = VM. VCN_NO AND TT1. UNBERTH_TRANS_ID = VB. BERTH_TRANS_ID) (SELECT WB. BERTH_MASTER BM BERTH_CODE WHERE BM. QUAY_CODE IN ("VOPAK", "SPM")) THEN "VOPAK" OTHER (SELECT P.PORT_NAME FROM RRS, P PORT_MASTER WHERE P.PORT_CODE = PNT. LST_PORT_CALL AND PNT. DOC_NO = VM. FROM_ VCN_NO END)).

    VM. MOVEMENT_TYPE_CODE,

    (SELECT THE VIRTUAL COMPUTERS. VSL_MOVES VMS MOVEMENT_TYPE_CODE WHERE VMS. TRANS_ID = VB. NEXT_MOVE UNBERTH_TRANS_ID),

    VB. UB_LST_LNE_CASTOFF SAILED_DATE,

    NVL ((SELECT CASE WHEN VMS. MOVEMENT_TYPE_CODE = 'UTA' THEN 'ANCHORAGE' WHAT VMS. MOVEMENT_TYPE_CODE = 'BTL' THEN 'LAND' WHEN VMS. MOVEMENT_TYPE_CODE = "UTS" THEN (SELECT P.PORT_NAME FROM RRS, PORT_MASTER P WHERE P.PORT_CODE = PNT. VSL_NXT_PRT_CALL AND PNT. DOC_NO = VMS. VCN_NO) WHEN VMS. MOVEMENT_TYPE_CODE = "BTB" AND (SELECT TT1. VSL_MOVES TT, VSL_BERTH_UNBERTH TT1 BERTH_CODE WHERE TT. TRANS_ID = TT1. BERTH_TRANS_ID AND TT. VCN_NO = VM. VCN_NO AND TT1. BERTH_TRANS_ID = VMS. TRANS_ID) (SELECT WB. BERTH_MASTER BM BERTH_CODE WHERE BM. QUAY_CODE NOT IN ("VOPAK", "SPM")) THEN 'POF' WHEN VMS. MOVEMENT_TYPE_CODE = "BTB" AND (SELECT TT1. VSL_MOVES TT, VSL_BERTH_UNBERTH TT1 BERTH_CODE WHERE TT. TRANS_ID = TT1. BERTH_TRANS_ID AND TT. VCN_NO = VM. VCN_NO AND TT1. BERTH_TRANS_ID = VMS. TRANS_ID) (SELECT WB. BERTH_MASTER BM BERTH_CODE WHERE BM. QUAY_CODE IN ("VOPAK", "SPM")) THEN "VOPAK" OTHERWISE NULL END VSL_MOVES VMS WHERE VB. UNBERTH_TRANS_ID = VMS. (TRANS_ID), "-") DESTINATION

    OF VM, VSL_BERTH_UNBERTH VB VSL_MOVES WHERE (VM. TRANS_ID = VB. BERTH_TRANS_ID)

    AND VM. MOVEMENT_TYPE_CODE LIKE '% TB '.

    AND ((VB. BRTH_ALL_FAST > = TO_TIMESTAMP(:pStartDate,'DD/MM/YYYY HH24:MI') AND VB. BRTH_ALL_FAST<= to_timestamp(:penddate,'dd/mm/yyyy="">

    OR (VB. UB_LST_LNE_CASTOFF > = TO_TIMESTAMP(:pStartDate,'DD/MM/YYYY HH24:MI') AND VB. UB_LST_LNE_CASTOFF<= to_timestamp(:penddate,'dd/mm/yyyy="" hh24:mi'))="">

    AND VB. BERTH_CODE (SELECT WB. BERTH_MASTER BM BERTH_CODE WHERE BM. QUAY_CODE NOT IN ("VOPAK", "SPM"))

    - AND VM. VCN_NO = 201510336

    ORDER OF VB. BRTH_ALL_FAST

    ) T1

    )

    Select rownum AS SNO, tab2.* of)

    SELECT

    TAB1. VCN_NO, TAB1. VESSEL_NAME, TAB1. FLAG, TAB1. IMO_NO,

    NVL (BOX WHEN TAB1. HAS ARRIVED< to_timestamp(:pstartdate,'dd/mm/yyyy="" hh24:mi')="" then="" '----------'="" else="" to_char(tab1.arrived,'dd/mm/yyyy="" hh24:mi')="" end,'----------')="">

    NVL (BOX WHEN TAB1. HAS ARRIVED< to_timestamp(:pstartdate,'dd/mm/yyyy="" hh24:mi')="" then="" '----------'="" else="" (select="" t2.from_="" from="" cte="" t2="" where="" t2.sl="TAB1.FROM_" and="" t2.vcn_no="TAB1.VCN_NO)" end,'----------'="">

    NVL (CASE WHEN (SELECT T2. DESTINATION OF THE CTE T2 WHERE T2.SL = TAB1. DEST AND T2. VCN_NO = TAB1. VCN_NO) = 'POF' THEN '-' ANOTHER BOX WHEN TAB1. SAILED_DATE > TO_TIMESTAMP (: pEndDate, ' DD/MM/YYYY HH24') THEN '-' ELSE TO_CHAR (TAB1. (SAILED_DATE, "DD/MM/YYYY HH24") A PIECE,'-') SAILED_DATE,.

    NVL (BOX WHEN TAB1. SAILED_DATE > TO_TIMESTAMP (: pEndDate, ' DD/MM/YYYY HH24') THEN '-' ELSE (SELECT CASE WHEN T2. DESTINATION = 'POF' THEN '-' ANOTHER T2. THE END OF THE DESTINATION OF THE CTE T2 WHERE T2.SL = TAB1. DEST AND T2. VCN_NO = TAB1. (END OF VCN_NO), "-") DESTINATION

    DE)

    SELECT THE TAB. VCN_NO, TAB. VESSEL_NAME, TAB. FLAG, TAB. IMO_NO,

    MIN (TAB. HAPPENED) ARRIVED,

    MIN (TAB.SL) FROM_,

    MAX (TAB. SAILED_DATE SAILED_DATE),

    MAX (TAB.SL) DEST,

    TAB. SNO

    DE)

    SELECT T1.*,

    WHEN T1 BOX. FID = 2 AND T1. TID = 1 THEN 1 WHEN T1. FID = 1 AND T1. TID = 2 THEN 1 WHEN T1. FID = 1 AND T1. TID = 1 THEN 0

    WHEN T1. FID = 2 AND T1. TID = ROWNUM THEN 2 + 1 END OF ANOTHER 3 SNO

    T1 ETC

    ) GROUP OF TABS BY TABS. VCN_NO, TAB. VESSEL_NAME, TAB. FLAG, TAB. IMO_NO, TAB. SNO

    ) TAB1 WHERE TAB1. SNO<>0

    ) tab2

  • Cannot use Admin mode with the main user.

    One user, no PW with Admin properties but unable to launch the app, Hostess.exe, in administrator mode.

    It is the only program that you have problems with? If Yes, contact technical support of the program. What version of Internet Explorer you have installed? If you use IE8 you should be (IE6/7 are too vulnerable for use anymore), you really don't want in any case, the use of these «file managers» hosts IE8 has tightened security and using a third party host "file manager" as hostess or SpywareBlaster will actually slow things down because IE will need to list all entries first. There are better ways to manage the filtering of the web than to use a hosts file. One of the best ways is to useOpenDNS instead. It's free and extremely configurable. You can choose black and white areas list categories. If you let me know your situation and what you are trying to accomplish, maybe I can give you other suggestions too. Otherwise, contact the technical support of the hostess program or see if they have forums users for it. MS - MVP - Elephant Boy computers - don't panic!

  • can I use a structure of the event in another structure of the event

    Hello

    Can use a structure of the event in another structure of the event?

    Thank you

    Viviane

    I would put your waveforms in the registers at offset.  You can then use your structure for the main event to trigger on the Show 1... the value change events and process the data, however you need from there.

  • access to the main time line function

    Hi all

    In as2, we use _root to access the main timeline inside the movieclip or button function.

    In as3 how to access the main scenario works inside the movieclip or button.can please tell me.

    'root' is the equivalent of AS3, but use it alone will often not wortk.  Most often, you will need to cast as a form of object until the compiler will recognize.  To aid "MovieClip" (root) will usually do the trick.

  • return the empty record only when no results not returned by the main query

    It is a question of SQL (not PL/SQL)...

    Let's say I have the following text:

    Full_name SELECT NULL, NULL, NULL last_update_date address
    OF the double
    UNION ALL
    SELECT full_name, address, last_update_date
    Employees
    WHEN TRUNC (sysdate) = TRUNC (last_update_date)

    If the second part of the query retrieves no rows, it works beautifully and I get a blank line; However, if the second part of the query returns records, I get a blank line over my dataset I want.

    How can I create a SQL statement that executes only the first query (before the union all) when no result is returned from the second. Also, I don't want to exceute the query twice only if I can get a count of the records because my actual query is much more complex than the example I've provided here.

    Thanks in advance!
    Emily

    Hello

    You can try to use a subquery factoring (WITH clause)
    The query is executed only once, the query results are cached in memory or in a temporary table.
    and you can view these results several times in the main query:

    WITH second_query AS (
      -- your second query here
      SELECT full_name, address, last_update_date
      FROM employees
      WHERE TRUNC(sysdate)=TRUNC(last_update_date)
    )
    SELECT full_name, address, last_update_date
    FROM second_query
    UNION ALL
    SELECT NULL full_name, NULL address, NULL last_update_date
    FROM dual
    WHERE NOT EXISTS ( SELECT 1 FROM second_query)
    

    Published by: kordirko on 2010-07-08 02:02

  • 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.

  • defining the results of a query to a variable

    Hi all

    I'm having a problem affecting the results of a query to a variable. What I'm trying to do, is to do an AJAX call to a .cfc file and pass back the results of the function. The main problem is, I'm again moving a block of HTML (resulting from a cfquery in a cfoutput) stored in a variable. My code is something like...

    < name cffunction = "getText" access = "remote" returntype = 'Cancel' >

    < datasource = "" #request.dsn # cfquery "name ="queryTable">"
    SELECT kort, infoB

    Of infoTable

    < / cfquery >


    < cfset result = ' <!-this is the part I'm stuck, I want the table go here. -> ">"

    < table >
    < cfoutput query = "tablequery" >
    < b >
    < td > #infoA # < table > < td > #infoB # < table >
    < /tr >
    < / cfoutput >
    < /table >


    < cfwddx action = "cfml2js" input = "" # result # ' toplevelvariable 'o' = > "

    < / cffunction >

    It is a simplified version of what I want to do, but you get the idea...

    Is it still the right way to go about this?  Thank you

    That's what I get for trying the E-mail response feature!  Are you not happy, that I double checked my post.

    You could do a lot of string concatenation here to do stuff like"& Kort &""& infoB &""> time and time again."  But in reality the tags is so much easier to use.



      

        
      

    #infoA #.#infoB #.

  • Go to the list of the results of the main sequence in my plugin...

    Hi guys,.

    OK, first post here, but I'm a little stuck. I am writing a plugin model to generate a custom HTML report (my requirement has a very specific layout for the report, which is not at all compatible with the html reports generated by teststand normally). Anyway. I generated all labview code, I want to make the report in the format I need, but I'm really bad at actually get information of teststand in a way that is easier.

    What I want to do is browse through the list of the results of the main sequence in the callback sequence DUT-Done of the sequence of pluging, which is stored in

    Parameters.MainSequenceResult.TS.SequenceCall.ResultList according to the documentation, but how can I really access it as a table I can go? All I have in my list of parameter is a reference to the parameters. MainSequenceResult, and for the life of me I can't work out what to call this knowledge actually just get it into a format that I can then use to browse in a loop "foreach" to get out of these settings.

    I'm on a windows machine and teststand 2014 7.

    Any help you could give would be really appreciated!

    J

    The list of top level result is: Parameters.MainSequenceResult.TS.SequenceCall.ResultList

    To find it, I dragged Parameters.MainSequenceResult in the Watch window to a breakpoint and developed it until I found the list of results.

    The ResultList is a PropertyObject which is an array of containers, so as the methods GetPropertyObjectByOffset and GetNumElements are going to work on that.

  • How can I include results of a subsequence, which takes place in a new thread in the test report from the main sequence

    Hello!

    I have ", working with the Version 4.2.1 of TestStand. I have a main sequence, which sous-séquences of different calkls. All these steps are reported correctly. One of the subsequences works like "new thread". How can I include his results in the common test report of the main sequence?

    I have variable markes of the subsequence as is required for the test report (it works OK if it's not a new thread). If the digital test, which is performed in this subsequence is correct, I get no results at all. If the digital test could not get a "message in red" who whithout having failed to test any reference to step somewhere in the report of the main sequence or values of vaiables that were not correct.

    I tried an option 'on the fly' in the Configuration of the report, but n ' got no useful result. What should I do?

    Best regards

    Hello Pericles,

    You can use a queue time for the results of the wire once it ends. Place a waiting time after the call to the thread in your MainSequence at the location where you want the results to add to the report (compared to other results). In the waiting step Setup tab, select wait: Thread the threaded sequence, and then select call to specify sequence call the radio button. You can also use an object reference if you need results if poster somewhere where elsewhere - you would just add an object reference to the appeal of sequence threaded in its thread settings dialog box.

    I hope this helps.

    -Jack

  • Using c# to check if the main report contains a sub report in the Crystal Reports Viewer

    Hello

    I currently have a web form application, which displays a crystal report already created using the crystal reports Viewer. In this report, the format is a few pages of the main report, followed by a few pages of the report of void. However, when the user first opens the application, all they see is the main report. Unless they click on the subpage of report the report viewer do not recognize as one of void, even if the user is on the page of report of void.

    I was wondering if there are ways to use the c# code to check if some pages of the main report contains a report without user sup a goes through each page of the report?

    Thanks a lot for your help!

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to take partial dump using EXP/IMP in oracle only for the main tables

    Hi all

    select*from v$version;
    
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE    10.2.0.1.0    Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    

    I have about 500 huge data main tables in my database of pre production. I have an environment to test with the same structure of old masters. This test environment have already old copy of main tables production. I take the dump file from pre production environment with data from last week. old data from the main table are not necessary that these data are already available in my test environment. And also I don't need to take all the tables of pre production. only the main tables have to do with last week data.

    How can I take partial data masters pre prodcution database tables?  and how do I import only the new record in the test database.

    I use orders EXP and IMP. But I don't see the option to take partial data. Please advice.

    Hello

    For the first part of it - the paintings of masters just want to - use datapump with a request to just extract the tables - see example below (you're on v10, so it is possible)

    Oracle DBA Blog 2.0: expdp dynamic list of tables

    However - you should be able to get a list of master tables in a single select statement - is it possible?

    For the second part - are you able to qrite a query live each main table for you show the changed rows? If you can not write a query to do this, then you won't be able to use datapump to extract only changed lines.

    Normally I would just extract all the paintings of masters completely and refresh all...

    See you soon,.

    Rich

  • AE - video appears and disappears in the main comp but comp void HELP!

    Hello

    I'm working on a music video (mostly live footage) and images play perfectly well in a model of void (e.g. comp1 image below: BASS1) but in the main computer, the images empties every few seconds (for example a blank image: 2 Vids).

    When I make it the same thing - the video disappears in parts! I also used an effect like Trapcode particular in the subcomp and the effect will appear in the final rendering very well but the video always disappears every few seconds.

    I hope that its some simple setting me escapes, but I'm under time pressure and can't resolve it. Any help appreciated!

    Comp1.jpg

    blank.jpg

    Details

    After effects CS5 V 10.0.0.458

    Plug-in - Trapcode particular (glitch happens even without it)

    Windows 7 64 bit

    32 GB of Ram

    NVIDIA Quadro K5000

    Rendering to the local disk


    Make sure that the composition settings, and corresponds to the pace. Serve all your cash flow and memory, and then try again.

Maybe you are looking for

  • Why my scanner scan only certain sections of a document?

    Printer: HP Envy D411c 110 series. When I scan as part of 'document', it scans the whole document and the text is fine, but the pictures are unreadable. Thus, to search for pages containing the text and images, I scan through the 'photo', the image q

  • HP Envy spectrum XT 13: Deleted my recovery partition, now how can I recover it or create a new one

    I accidentally delete hidden on my factory recovery drive files. How can I get them back or how can I create an another recovert readers like recovery disks factory. Or, is there anyway to retrieve the file from ssd Thanks in advance.

  • BlackBerry 10 Setup Blackberry z10

    I totally forgot the password I used to set my z10 after reset, the anti-theft protection device. So I deleted my account and made another with the same email. again let me connect. Is that a way to factory reset? or is there a way around it. Thank y

  • Popup of XDB in URL APEX login

    HelloI just finished installing Oracle APEX (I use Oracle 11 g Enterprise Edition and APEX 4.02) I uninstalled the pre-existing version of APEX 3.2 and installed the 4.20, and when I try to connect to the main admin page to: http://HOST:PORT/apexI ge

  • What plan I just get Fireworks

    HelloI want to basically just Fireworks because I used it for years and it's all that I really need at this point.I am very pleased to pay a monthly fee for this but the £17,15 / month seems high and I can't even see fireworks in option.Given that Fi