Reg query using

Hello

I'm trying to use Reg Query to review the contents of a registry key. More precisely

  • HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

I just want to know what are the subkeys. I expect to be

  • IconStreams and

    PastIconsStream


Since they are both of type reg_binary, when I do this query I have also all binary data as well, make very large output.

Is there a way to simply retrieve/request which is in the field/column name and not the data column/field? I tried the /k options and /v who gave me errors, which I interpreted in the sense I was their use either wrong or they are not used in this instance.

There is not a lot of examples out there and most of repeat them what you find when you use /?.

Thank you.

Hello

The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues

Tags: Windows

Similar Questions

  • using reg query

    Hello

    I'm trying to use Reg Query to review the contents of a registry key.  More precisely

    • HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

    I just want to know what are the subkeys.  I expect to be

    • IconStreams and
      PastIconsStream

    Since they are both of type reg_binary, when I do this query I have also all binary data as well, make very large output.

    Is there a way to simply retrieve/request which is in the field/column name and not the column/field data ?  I tried the /k options and /v who gave me errors, which I interpreted in the sense I was their use either wrong or they are not used in this instance.

    There is not a lot of examples out there and most of repeat them what you find when you use /?.

    Thank you.

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues

  • How can I fix this. REG QUERY "HKLM\SOFTWARE\Microsoft.

    HELP... Can someone please tell me what this means and how can I fix. REG QUERY 'HKLM\SOFTWARE\Microsoft NT\CurrentVersion\AppcompatFlags\UpgrapeExperienceIndicators' / v UpgEx: finderstr UpgEx ERROR: the system was unable to find the specified registry or the value key.

    How does this relate to the features of Windows Update (or recovery)?

    Did you mean "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ExperienceIndicatorsUpgrade... » ?

    Is this a computer Win7 Pro or Ultimate?

    Is this the same computer (not the same problem) in one or two of these previous discussions of yours?...

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/Windows-feature/3dd93b2b-0500-4173-9e96-10021973d79d

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/install-updates/b1307f0b-cef4-48C6-a9f5-68063c270d0b

  • SPARQL query using varying paths

    Hello

    I have a chart in Oracle I like to do query using Jena 2.6.4 and OracleJenaAdaptor 11.2.0.3

    IND:123: ind:124 hasA
    IND:124: ind:125 Hilmi
    IND:125: hasC ind:126
    IND:123: coward ind:127

    Is there a way to build a sparql query to return all the ind: without 'hard-conding"the full property name? Something in these lines (note that this query doesn't really work).

    Select *.
    where {ind:123 (: has *) +? x}

    Thank you.

    Hello

    If you have created a virtual model before, then will do the following. Note that I am assuming that the virtual model is created based on two 'my_asset', 'my_model' models and modules OWLPRIME.

    Piece attached attachment = Attachment.createInstance (new String() {"my_model"},
    (New String() {"OWLPRIME"}, InferenceMaintenanceMode.UPDATE_WHEN_COMMIT, QueryOptions.ALLOW_QUERY_INVALID_AND_DUP).

    Chart GraphOracleSem = new GraphOracleSem (oracle, "my_asset", room attached, true);
    graph.performInference ();

    Thank you

    Zhe

  • XPath query using DONKEY with AIR3.9 for iOS app

    We build an app for iOS using AIR 3.9 where we load and parse the xml document so that we can read the path of images and download stuff on iOS device. To resolve this issue, we found a solution using XCode via DONKEY where query using XPath such as 'PerformXPathQuery', 'PerformXMLXPathQuery', 'xmlReadMemory"etc.. The code runs and when build Simulator itself on mac computer. But when we're packing DONKEY with AIR 3.9, it gives the error that says that: -.

    Error occurred during the application of packaging:

    For architecture armv7 httpd Undefined symbols:

    "_xmlReadMemory", referenced from:

    _PerformXMLXPathQuery in libnet.example.download.a (ExampleLib.o)

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    I tried connecting binary with libraries such as 'libxml2.dylib', 'libxml2.2.dylib' and libz.dylib + added header files libXML to the header in the build properties search path, but had no help.

    our AIR 3.9 platform xml looks like: -.

    " < platform xmlns =" http://ns.Adobe.com/air/extension/3.9 ">

    < > 4.0.0 sdkVersion < / sdkVersion >

    < linkerOptions >

    < option > - ios_version_min 4.2 < / option >

    < option > - frame UIKit < / option >

    < option > - framework Foundation < / option >

    < option > - framework CoreText < / option >

    < / linkerOptions >

    < / platform >

    can anyone suggest where we are going wrong!

    Thanks in advance

    Found the solution, it was missing the framework connects to the xPath library in platform.xml

    follow the instuctions from the link below: -.

    http://forums.Adobe.com/thread/1037904

    Thanks to the adobe team

  • Query using progressive relaxation take more time for execution

    HI gurus,

    I'm creating a query using the context and the progressive relaxation index

    I had started using progressive relaxation after obtaining the forum entries {: identifier of the thread = 2333942}. With the help of progressive relaxation takes more than 7 seconds for each request. Is there a way we can improve the query performance?
     create table test_sh4 (text1 clob,text2 clob,text3 clob);
    
    begin
       ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
       ctx_ddl.set_attribute
           ('nd_mcd',
            'columns',
            'replace (text1, '' '', '''') nd1,
             text1 text1,
             replace (text2, '' '', '''') nd2,
             text2 text2');
       ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
       ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
       ctx_ddl.create_section_group ('test_sg', 'basic_section_group');
       ctx_ddl.add_field_section ('test_sg', 'text1', 'text1', true);
       ctx_ddl.add_field_section ('test_sg', 'nd1', 'nd1', true);
       ctx_ddl.add_field_section ('test_sg', 'text2', 'text2', true);
       ctx_ddl.add_field_section ('test_sg', 'nd2', 'nd2', true);
     end;
    
    create index IX_test_sh4 on test_sh4 (text3)   indextype is ctxsys.context   parameters    ('datastore     nd_mcd   lexer test_lex1 section group     test_sg') ;
    
    alter index IX_test_sh4 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)') ;-- sync index on every commit. 
    
    
    SELECT SCORE(1) score,t.* FROM test_sh4 t WHERE CONTAINS (text3,  '
    <query>
    <textquery>
    <progression>
    <seq>{GIFT GRILL STAPLES CARD} within text1</seq>
    <seq>{GIFTGRILLSTAPLESCARD} within nd1</seq>
    <seq>{GIFT GRILL STAPLES CARD} within text2</seq>
    <seq>{GIFTGRILLSTAPLESCARD} within nd2</seq>
    <seq>((%GIFT% and %GRILL% and %STAPLES% and %CARD%)) within text1</seq>
    <seq>((%GIFT% and %GRILL% and %STAPLES% and %CARD%)) within text2</seq>
    <seq>((%GIFT% and %GRILL% and %STAPLES%) or (%GRILL% and %STAPLES% and %CARD%) or (%GIFT% and %STAPLES% and %CARD%) or (%GIFT% and %GRILL% and %CARD%)) within text1</seq>
    <seq>((%GIFT% and %GRILL% and %STAPLES%) or (%GRILL% and %STAPLES% and %CARD%) or (%GIFT% and %STAPLES% and %CARD%) or (%GIFT% and %GRILL% and %CARD%)) within text2</seq>
    <seq>((%STAPLES% and %CARD%) or (%GIFT% and %GRILL%) or (%GRILL% and %CARD%) or (%GIFT% and %CARD%) or (%GIFT% and %STAPLES%) or (%GRILL% and %STAPLES%)) within text1</seq>
    <seq>((%STAPLES% and %CARD%) or (%GIFT% and %GRILL%) or (%GRILL% and %CARD%) or (%GIFT% and %CARD%) or (%GIFT% and %STAPLES%) or (%GRILL% and %STAPLES%)) within text2</seq>
    <seq>((%GIFT% , %GRILL% , %STAPLES% , %CARD%)) within text1</seq>
    <seq>((%GIFT% , %GRILL% , %STAPLES% , %CARD%)) within text2</seq>
    <seq>((!GIFT and !GRILL and !STAPLES and !CARD)) within text1</seq>
    <seq>((!GIFT and !GRILL and !STAPLES and !CARD)) within text2</seq>
    <seq>((!GIFT and !GRILL and !STAPLES) or (!GRILL and !STAPLES and !CARD) or (!GIFT and !STAPLES and !CARD) or (!GIFT and !GRILL and !CARD)) within text1</seq>
    <seq>((!GIFT and !GRILL and !STAPLES) or (!GRILL and !STAPLES and !CARD) or (!GIFT and !STAPLES and !CARD) or (!GIFT and !GRILL and !CARD)) within text2</seq>
    <seq>((!STAPLES and !CARD) or (!GIFT and !GRILL) or (!GRILL and !CARD) or (!GIFT and !CARD) or (!GIFT and !STAPLES) or (!GRILL and !STAPLES)) within text1</seq>
    <seq>((!STAPLES and !CARD) or (!GIFT and !GRILL) or (!GRILL and !CARD) or (!GIFT and !CARD) or (!GIFT and !STAPLES) or (!GRILL and !STAPLES)) within text2</seq>
    <seq>((!GIFT , !GRILL , !STAPLES , !CARD)) within text1</seq>
    <seq>((!GIFT , !GRILL , !STAPLES , !CARD)) within text2</seq>
    <seq>((?GIFT and ?GRILL and ?STAPLES and ?CARD)) within text1</seq>
    <seq>((?GIFT and ?GRILL and ?STAPLES and ?CARD)) within text2</seq>
    <seq>((?GIFT and ?GRILL and ?STAPLES) or (?GRILL and ?STAPLES and ?CARD) or (?GIFT and ?STAPLES and ?CARD) or (?GIFT and ?GRILL and ?CARD)) within text1</seq>
    <seq>((?GIFT and ?GRILL and ?STAPLES) or (?GRILL and ?STAPLES and ?CARD) or (?GIFT and ?STAPLES and ?CARD) or (?GIFT and ?GRILL and ?CARD)) within text2</seq>
    <seq>((?STAPLES and ?CARD) or (?GIFT and ?GRILL) or (?GRILL and ?CARD) or (?GIFT and ?CARD) or (?GIFT and ?STAPLES) or (?GRILL and ?STAPLES)) within text1</seq>
    <seq>((?STAPLES and ?CARD) or (?GIFT and ?GRILL) or (?GRILL and ?CARD) or (?GIFT and ?CARD) or (?GIFT and ?STAPLES) or (?GRILL and ?STAPLES)) within text2</seq>
    <seq>((?GIFT , ?GRILL , ?STAPLES , ?CARD)) within text1</seq>
    <seq>((?GIFT , ?GRILL , ?STAPLES , ?CARD)) within text2</seq>
    </progression>
    </textquery>
    <score datatype="FLOAT" algorithm="default"/>
    </query>',1) >0 ORDER BY score(1) DESC

    Progressive relaxation works best when you select only a limited number of lines. If you retrieve ALL the rows that satisfy the query, then every step of easing should run without worrying.

    If you collect - say - the first 10 results, then if the first step in the relaxation gives 10 results so there is no need to execute the next step (actually, due to the internal buffering, which won't be exactly true but he is theoretically correct).

    The easiest way to proceed is to reformulate the query in the form

    SELECT * FROM)
    (Score select (1) SCORE, t.* FROM test_sh4 t WHERE CONTAINS (Text3, '))


    ...


    (1) > 0 ORDER BY score (1) DESC
    )
    WHERE ROWNUM<=>

    You have discovered that wildcards don't work too well, unless you use SUBSTRING_INDEX. I encourage you to avoid completely if possible, or push down much lower in the progressive relaxation. Usually, GIFT % is a useful term (matches GIFTS, GIFTED, etc.), DON % is generally more effective.

    There are a lot of steps in your progressive relaxation. It you want to reduce the number of steps, you can change:

    ((GIFT and percent of the GRID and STAPLES % and CARD %)) in Text1
    ((GIFT and percent of the GRID and STAPLES % and CARD %)) in Text2

    TO

    ((CADEAU % et % de la GRILLE et AGRAFES % et CARTE %) * 2) within Text1 ACCUM ((GIFT and percent of the GRID and STAPLES % and CARD %)) in Text2

    I don't know if it would have performance benefits - but it is worth trying to see.

  • Reg query

    Hi all!

    Please help me with this query:

    View the details of the employees whose salary exceeds the average salary of their own LOCATION

    Thank you
    Anthony.

    If you change your query using deptno instead of loc, the results remain the same:

    SQL> select avg(e.sal)
      2       , d.deptno
      3    from emp e
      4       , dept d
      5   where d.deptno = e.deptno
      6   group by d.deptno
      7  /
    
    AVG(E.SAL)     DEPTNO
    ---------- ----------
    1566,66667         30
          2175         20
    2916,66667         10
    
    3 rijen zijn geselecteerd.
    

    Note that the join to table dept can be ignored because emp also contains a column deptno.

    Now if you want to select the average salary to each employee, you can use the table emp, like this:

    SQL> select e.ename
      2       , e.sal
      3       , avg_sal.avg_sal
      4    from ( select avg(e.sal) avg_sal
      5                , d.deptno
      6             from emp e
      7                , dept d
      8            where d.deptno = e.deptno
      9            group by d.deptno
     10         ) avg_sal
     11       , emp e
     12   where e.deptno = avg_sal.deptno
     13  /
    
    ENAME             SAL    AVG_SAL
    ---------- ---------- ----------
    SMITH             800       2175
    ALLEN            1600 1566,66667
    WARD             1250 1566,66667
    JONES            2975       2175
    MARTIN           1250 1566,66667
    BLAKE            2850 1566,66667
    CLARK            2450 2916,66667
    SCOTT            3000       2175
    KING             5000 2916,66667
    TURNER           1500 1566,66667
    ADAMS            1100       2175
    JAMES             950 1566,66667
    FORD             3000       2175
    MILLER           1300 2916,66667
    
    14 rijen zijn geselecteerd.
    

    And now, it becomes easy to select employees with an average more wise pay high Department.
    Note that, apart from the mentioned optimization earlier, you can also pass the second access of table emp using analytical functions.

    And if you don't want to see the average salary, you can use a subquery correlation like this:

    SQL> select e.ename
      2       , e.sal
      3    from emp e
      4   where e.sal >
      5         ( select avg(e2.sal)
      6             from emp e2
      7            where e2.deptno = e.deptno
      8         )
      9  /
    
    ENAME             SAL
    ---------- ----------
    ALLEN            1600
    JONES            2975
    BLAKE            2850
    SCOTT            3000
    KING             5000
    FORD             3000
    
    6 rijen zijn geselecteerd.
    

    I hope this helps.

    Kind regards
    Rob.

  • Reg: Hierarchical query (using connection by)

    Hi all
    I got the result with the hierarchical query in the form:
    * / qxxh *.
    * / qxxh/jxobcbg *.
    * / qxxh/jxobcbg/n00wcp4 *.
    * / qxxh/jxobcbg/n00wcp4 / 000263 x *.
    * / qxxh/jxobcbg/n00wcp4 / x 000263 / p0263 *.
    * / qxxh/jxxocbg *.
    * / qxxh/jxxocbg/n00voc1 *.
    * / qxxh/jxxocbg/n00voc1 / x 000589 *.
    * / qxxh/jxxocbg/n00voc1 / x 000589 / p0589 *.
    * / qxxh/jxuwxxh *.
    * / qxxh/jxuwxxh/n00xpxf *.
    * / qxxh, jxuwxxh, n00xpxf, m00bxpl *.
    * / qxxh/jxuwxxh/n00xpxf/m00bxpl / 000522 x *.
    * / qxxh/jxuwxxh/n00xpxf/m00bxpl / 000522 x / p0522 *.

    Here, I want to select only the maximum path. Here I used "SYS_CONNECT_BY_PATH.
    Please let meknow how to do this?
    Thanks in advance.

    Published by: udeffcv on December 9, 2009 22:03

    udeffcv wrote:
    Hi all
    I got the result with the hierarchical query in the form:
    * / qxxh *.
    * / qxxh/jxobcbg *.
    * / qxxh/jxobcbg/n00wcp4 *.
    * / qxxh/jxobcbg/n00wcp4 / 000263 x *.
    * / qxxh/jxobcbg/n00wcp4 / x 000263 / p0263 *.
    * / qxxh/jxxocbg *.
    * / qxxh/jxxocbg/n00voc1 *.
    * / qxxh/jxxocbg/n00voc1 / x 000589 *.
    * / qxxh/jxxocbg/n00voc1 / x 000589 / p0589 *.
    * / qxxh/jxuwxxh *.
    * / qxxh/jxuwxxh/n00xpxf *.
    * / qxxh, jxuwxxh, n00xpxf, m00bxpl *.
    * / qxxh/jxuwxxh/n00xpxf/m00bxpl / 000522 x *.
    * / qxxh/jxuwxxh/n00xpxf/m00bxpl / 000522 x / p0522 *.

    Here, I want to select only the maximum path. Here I used "SYS_CONNECT_BY_PATH.
    Please let meknow how to do this?
    Thanks in advance.

    Published by: udeffcv on December 9, 2009 22:03

    What do you mean by maximum path? is this...
    * / qxxh/jxobcbg/n00wcp4 / x 000263 / p0263 *.
    * / qxxh/jxxocbg/n00voc1 / x 000589 / p0589 *.
    * / qxxh/jxuwxxh/n00xpxf/m00bxpl / 000522 x / p0522 *.

    is it child nodes?
    so, you would like to see
    Column nickname... CONNECT_BY_ISLEAF example, you can find it in the link below
    http://download.Oracle.com/docs/CD/B14117_01/server.101/b10759/pseudocolumns001.htm#sthref670

    Ravi Kumar

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • change / stop the query using bad plan

    I use 11.2.0.3.  I'm wrong a script with multiple insert into... Select.  One of the insert running for hours because it is using bad plan because of State statistics.   I've now updated the statistics. Is - it there anyway I can do oracle raise this insert or ignore this insert and continue with the other inserts in my script. (I don't want to kill the session, I want to run other sqls).

    Also, for the future is there a way to make oracle dynamic sampling rather than obsolete statistics usage?

    I was able to cancel the query in another session to help

    execDBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS (sid, serial#, 'CANCEL_SQL');

  • Reg: query logic.

    Hi Experts,

    I have a requirement of query which am not able to achieve correctly-

    2 tables like this:

    WITH t1 AS)

    SELECT the 1 id, cm_dt of TO_DATE('04.04.2014','dd.mm.yyyy') OF double UNION ALL

    SELECT 2 id, TO_DATE('01.11.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL

    SELECT 2 id, TO_DATE('29.09.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL

    Select 3 id, to_date('17.05.2013','dd.mm.yyyy') cm_dt of the double

    )

    t2 AS)

    SELECT the 1 id, TO_DATE('04.05.2014','dd.mm.yyyy') fh_dt, ov 'b', 'a' double UNION ALL nv

    SELECT 1 id, TO_DATE('21.05.2014','dd.mm.yyyy'), 'y', 'x' FROM dual UNION ALL

    SELECT 2 id, TO_DATE('01.10.2013','dd.mm.yyyy'), 'r', 'e' FROM dual UNION ALL

    SELECT the id 2, TO_DATE('15.10.2013','dd.mm.yyyy'), 'x', 'q' FROM dual UNION ALL

    SELECT 2 id, TO_DATE('29.03.2014','dd.mm.yyyy'), 'f', 'b' FROM dual

    )

    My requirement is :


    Check - 1

    For each ID of "t1", need to check in 't2' If a record exists. If the 'id' doesn't exist, you need to select another table called "table_y". Here, T1.ID = 3

    Check the box - 2

    If the ID exists, for each 'id' and T1. CM_DT - is any record in T2 where (T1.id = T2.id and T1. CM_DT < T2. Take FH_DT) then the OV (old value) of the last record.

    Otherwise, if no such folder i.e. all have T1. CM_DT > T2. FH_DT - take NV (new value) of the first record.

    Expected results :

    1 04.04.2014 b

    2 01.11.2013 q

    2 29.09.2013 r

    3 17.05.2013 < some value from another table >

    My try and try again...

    WITH t1 AS)

    SELECT the 1 id, cm_dt of TO_DATE('04.04.2014','dd.mm.yyyy') OF double UNION ALL

    SELECT 2 id, TO_DATE('01.11.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL

    SELECT 2 id, TO_DATE('29.09.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL

    Select 3 id, to_date('17.05.2013','dd.mm.yyyy') cm_dt of the double

    )

    t2 AS)

    SELECT the 1 id, TO_DATE('04.05.2014','dd.mm.yyyy') fh_dt, ov 'b', 'a' double UNION ALL nv

    SELECT 1 id, TO_DATE('21.05.2014','dd.mm.yyyy'), 'y', 'x' FROM dual UNION ALL

    SELECT 2 id, TO_DATE('01.10.2013','dd.mm.yyyy'), 'r', 'e' FROM dual UNION ALL

    SELECT the id 2, TO_DATE('15.10.2013','dd.mm.yyyy'), 'x', 'q' FROM dual UNION ALL

    SELECT 2 id, TO_DATE('29.03.2014','dd.mm.yyyy'), 'f', 'b' FROM dual

    )

    ------

    x AS

    (SELECT

    T1.ID, t1.cm_dt, t2.fh_dt, nv, ov,

    ROW_NUMBER() over (PARTITION BY t2.id ORDER BY fh_dt asc) Clotilde,

    MIN (T2.fh_dt) on min_dt (PARTITION BY t2.id),

    Max (T2.fh_dt) on max_dt (PARTITION BY t2.id)

    T1 LEFT JOIN t2 ON (t1.id = t2.id)

    )

    --------

    SELECT distinct

    x.ID, x.cm_dt, x.fh_dt,

    (CASE WHEN cm_dt < = min_dt THEN)

    (SELECT t2.ov FROM t2 WHERE t2.id = AND t2.fh_dt x.id = x.min_dt)

    ON THE OTHER

    (SELECT t2.ov FROM t2 WHERE t2.id = AND t2.fh_dt x.id = x.min_dt)

    Chk1 END)

    X

    ORDER BY id, cm_dt

    Please give some guidance. Help much appreciated.

    -Nordine

    (on Oracle 11.2.0.3.0)

    I think it's something like what you are looking for (if you had provided details of the 'other' table you want to get the values of, then I could have tried integrate this logic in this query, rather than do something using the double table!):

    WITH t1 AS (SELECT 1 id, TO_DATE('04.04.2014','dd.mm.yyyy') cm_dt FROM dual UNION ALL
                SELECT 2 id, TO_DATE('01.11.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL
                SELECT 2 id, TO_DATE('29.09.2013','dd.mm.yyyy') cm_dt FROM dual UNION ALL
                select 3 id, to_date('17.05.2013','dd.mm.yyyy') cm_dt from dual),
         t2 AS (SELECT 1 id, TO_DATE('04.05.2014','dd.mm.yyyy') fh_dt, 'a' nv,'b' ov FROM dual UNION ALL
                SELECT 1 id, TO_DATE('21.05.2014','dd.mm.yyyy') , 'x','y' FROM dual UNION ALL
                SELECT 2 id, TO_DATE('01.10.2013','dd.mm.yyyy') , 'e','r'  FROM dual UNION ALL
                SELECT 2 id, TO_DATE('15.10.2013','dd.mm.yyyy') , 'q','x' FROM dual UNION ALL
                SELECT 2 id, TO_DATE('29.03.2014','dd.mm.yyyy') , 'b','f' FROM dual),
        res as (select t1.id,
                       t1.cm_dt,
                       t2.fh_dt,
                       t2.nv,
                       t2.ov,
                       min(case when t2.fh_dt > t1.cm_dt then t2.fh_dt end) over (partition by t2.id, t1.cm_dt) min_t2_fh_dt_past_cm_dt,
                       max(case when t2.fh_dt < t1.cm_dt then t2.fh_dt end) over (partition by t2.id, t1.cm_dt) max_t2_fh_dt_pre_cm_dt,
                       coalesce(max(case when t2.fh_dt < t1.cm_dt then t2.fh_dt end) over (partition by t2.id, t1.cm_dt),
                                min(case when t2.fh_dt > t1.cm_dt then t2.fh_dt end) over (partition by t2.id, t1.cm_dt)) comparison_dt
                from   t1,
                       t2
                where  t1.id = t2.id (+))
    select id,
           cm_dt,
           case when comparison_dt is null then (select 'zzz' from dual)
                when comparison_dt > cm_dt then ov
                when comparison_dt < cm_dt then nv
           end replacement_value
    from   res
    where  comparison_dt is null
    or     comparison_dt = fh_dt;
    
            ID CM_DT      REPLACEMENT_VALUE
    ---------- ---------- --------------------------------
             1 04/04/2014 b
             2 29/09/2013 r
             2 01/11/2013 q
             3 17/05/2013 zzz
    
  • How to create a resource of query using CS component?

    Hi all

    Can someone please let me know how we can create a resource request (OOTB assettype WCS) using the option element CS?

    Assettype - Query, OOTB assets can be created using two methods: 1) using the SQL query and 2) using CS elements.

    I searched a lot of guides and has been unable to find even a small example or a snippet of code that must be used in an element cs while creating a resource request.  Even guide the developer gives example of using only one SQL query when creating a resource request and did not mention anything on the assets of the query to the CS elements.

    It would be very very useful for me and most of them if an example can be provided. Thanks in advance.

    Kind regards

    Praveen

    Hi Praveen,

    In the attribute menu editor drop-DOWN using a resource request, you need the following:
    -The SQL code in the assets of the query should return a column 'value '. For example:select name as value from shippingtype

    -If the data type of the attribute using the attribute Editor is 'good', the query should also return property IDs. For example:select name as value, id as assetid from Product where...

    See Designing Attribute Editors - 11g Release 1 (11.1.1.8.0)

    Your original CallQuery was essentially correct except that you must

    1. return a value column (and possibly an id column)

    2. no loop on the results. The attribute editor will loop on the results.

    3. set the name of the list the variable 'list '.

    For example

    <%
      String sqlQuery = "select name as value from Query";
    %>
    
    

    Note that this will return a list of the names of the assets of the query, which may or may not be what you need.

    I hope this helps.

    Kind regards

    Stephan.

  • Workflow of vCO of query using the REST API in PowerShell

    Hello

    I am interrogating a workflow vCO by name using the REST API of PowerShell based on this article:

    http://www.vcoteam.info/articles/learn-VCO/268-how-to-use-the-rest-API-to-start-a-workflow.html

    $username = "XXXXXX".

    $upassword = "XXXXXX".

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $body = "<-xmlns = execution context" ". ' http://www.VMware.com/VCO ' > < / execution context > '

    #query for workflow named "donothing".

    Invoke-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donothing -Headers $headers - body $body - ContentType "application/xml" - Get method

    Invoke RestMethod: failed to send a content-body with this type of verb.

    On line: 1 char: 1

    + Call-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donoth ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [invoking-RestMethod], ProtocolViolationException)

    + FullyQualifiedErrorId: System.Net.ProtocolViolationException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    The request succeeds by using the customer REMAINS on Firefox, but I can't make it work on PowerShell. (NOTE: PowerShell workflow execution works very well)

    Any help is appreciated.

    Thank you

    Juan.

    OK, I managed to do work by removing

    [System.Net.ServicePointManager]: ServerCertificateValidationCallback = {$true}

    And add this at the beginning of the script

    "Add-type @ '.

    using System.Net;

    using System.Security.Cryptography.X509Certificates;

    public class TrustAllCertsPolicy: {ICertificatePolicy

    public bool CheckValidationResult)

    ServicePoint srvPoint, X509Certificate certificate,

    WebRequest request, int certificateProblem) {}

    Returns true;

    }

    }

    "@

    [System.Net.ServicePointManager]: CertificatePolicy = New-Object TrustAllCertsPolicy

    Now I can use the GET method:

    $ret = Invoke-WebRequest - uri $URL - Headers $headers - ContentType "application/xml" - Get method

    I spent to Invoke-WebRequest so I can get the return of application Web.

    Juan.

  • Helps the query using LESS

    Hello Experts

    I can't in select the record_sequence in the output. Please see the part of the desired effect.
    Please help solve this problem.

    Is the version of Oracle, I'm working on that

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    Thank you

    RB

    TABLE1 AS
    (
    SELECT '28' EXAM_CD1, EXAM_CD2 '29', '10' EXAM_CD3, 111' CAND_ID FROM DUAL UNION ALL
    SELECT '21' EXAM_CD1, EXAM_CD2 '39', '20' EXAM_CD3, 112' CAND_ID FROM DUAL UNION ALL
    SELECT '22' EXAM_CD1, EXAM_CD2 '49', '30' EXAM_CD3, 113' CAND_ID FROM DUAL UNION ALL
    SELECT 'EXAM_CD1 23', '59' EXAM_CD2, EXAM_CD3 ' 40', 114' CAND_ID FROM DUAL UNION ALL
    SELECT '24' EXAM_CD1, EXAM_CD2 '69', '50' EXAM_CD3, 115' DOUBLE CAND_ID)
    AS TABLE2
    (
    SELECT EXAM_CD '28', '111' CANDID, 1 RECORD_SEQ OF DOUBLE UNION ALL
    SELECT '30' EXAM_CD, '113' CANDID, 2 RECORD_SEQ FROM DUAL UNION ALL
    SELECT EXAM_CD '94', '111' CANDID, 3 RECORD_SEQ OF DOUBLE UNION ALL
    SELECT EXAM_CD '69', '115' CANDID, 4 DOUBLE RECORD_SEQ)
    (
    SELECT EXAM_CD FROM TABLE2, CANDID
    LESS
    SELECT CAND_ID,
    MAX (L CASE WHEN 1 EXAM_CD1 THEN WHEN 2 THEN of OTHER EXAM_CD2 EXAM_CD3 END) exam_code
    FROM TABLE1,
    (SELECT LEVEL L FROM DUAL CONNECT BY LEVEL < = 3)
    CAND_ID GROUP, L)

    The aim is

    CAND_ID, EXAM_CD, RECORD_SEQ
    * 111, 94, 3 *.

    Hello

    Rb2000rb65 wrote:
    The solution use not less as long as I get my results using the latest features, it is good with me.

    Good idea!
    UNMIS is not the best tool for this task. The saved query gets the exam_cd and the Candide you want, but you can't find the record_seq because there of nothing like record_seq in table1.

    You can do this way:

    SELECT     *
    FROM     table2     m
    WHERE     NOT EXISTS (
                        SELECT  1
                    FROM    table1
                    WHERE   m.candid      = candid
                    AND     m.exam_cd  IN ( exam_cd1
                                             , exam_cd2
                                 , exam_cd3
                                 )
                 )
    ;
    

    I guess you could use LESS, like this

    SELECT     *
    FROM     table2
    WHERE     (exam_cd, candid)
         IN (
                SELECT  ...  -- The MINUS query you posted goes here
            )
    ;
    

    but it is unecessarily complicated.

  • Update the query using nulls update box

    I need to update a column according to the conditions that I've used below, the update query, I used is updated as well to null values. How can I stop this and keep the old values when no match was found for the case.
    create table sample (name varchar2(10),eno number(10),salary number(10));
    insert into sample (name,eno,salary) values ('emp1',1,100);
    insert into sample (name,eno,salary) values ('emp2',2,200);
    insert into sample (name,eno,salary) values ('emp3',3,300);
    select * from sample;
        
    update sample 
    set salary = 
    case when salary = 100 then 10000 else 
    case when salary = 150 then 15000 else 
    case when salary = 200 then 20000 end end end
    where name is not null;
           
    Actual o/p:
           emp1     1     10000
           emp2     2     20000
           emp3     3     
    
    Required o/p:
            emp1     1     10000
           emp2     2     20000
           emp3     3      300

    Hello

    The updated control WHERE clause lines.
    If you do not have a WHERE clause, then updates all rows in the table.

    update  sample
    set      salary = case
                          when salary = 100 then 10000
                   when salary = 150 then 15000
                   when salary = 200 then 20000
               end
    where   salary   IN (100, 150, 200)
    ;
    

    Note that you do not need to nest BOX icies expressions (or almost anywhere else). If the 'salary = 100' condition is true, then its correspondent WHEN the value is returned, and the remaining terms will not be evaluated. If the first condition is not true, then only will be the "salary = 150" condition to be evaluated. (The terms are mutually exclusive in this example anyway, so it does not matter.)

    Published by: Frank Kulash, June 5, 2012 13:09

Maybe you are looking for