How to get this query?

Hi all

I am using oracle 11g,

Here's my date of json:

{'1': {"YBG": 1, "BNT": ""} {ggg'}, '2': {"YBG": 1, "BNT": "vc} vm {}}"}, '3': {"YBG": 1, "BNT": "vc {}} vm"}} "

Here is my qurery

SELECT *.

(SELECT

REGEXP_REPLACE)

REGEXP_SUBSTR)

: JSONdata,.

'"[0-9]+".+?"}',

1,

LEVEL

)

,

'^[{"]+| ["}] +$'

)

AS rec

OF THE DOUBLE

CONNECT BY LEVEL < = 11)

REC WHERE IS NOT NULL;

result:

1 ": {"YBG": 1,"BNT":}

{2 ": {"YBG": 1,"BNT":"vc} {}} vm

3 ": {"YBG": 1,"BNT":"{vc} vm

expected result:

1 ": {"YBG": 1,"BNT":"} {ggg}

{2 ": {"YBG": 1,"BNT":"vc} {}} vm

3 ": {"YBG": 1,"BNT":"{vc} vm

Concerning

Dale

Hi, Dale,

913349 wrote:

Hi frank, thank you very much, but little mistake I've done here,

in fact, I need to remove quote at first... Please help no way that idea in the regular expression.

expected:

1 ": {"YBG": 1,"BNT":"} {ggg}

{2 ": {"YBG": 1,"BNT":"vc} {}} vm

3 ": {"YBG": 1,"BNT":"{vc} vm

Concerning

Dale

We have removed the final quote of the results by moving outside the parentheses.

We can delete the initial double quotation mark of the results by moving outside the parentheses, too:

SELECT REGEXP_SUBSTR (: JSONdata)

, '"([0-9]+".+?)"} +(,|$)'            -- ***  CHANGED  ***

1

LEVEL

NULL

1

) AS rec

OF the double

CONNECT BY LEVEL<= regexp_count="" (="">

, '"([0-9]+".+?)"} +(,|$)'-* CHANGED *.

)

;

The 6th argument to REGEXP_SUBSTR is as a backreference.  1 means that the results will include only what's inside the 1st pair of parentheses (in other words, the 1st on the left '(' et sa correspondance) ").

Tags: Database

Similar Questions

  • Hi there is a balance of $20 showing on my Itunes account, however I don't seem to be able to use it to download a movie to rent.  Can someone tell me please how to get this balance...

    Hi there is a balance of $20 showing on my Itunes account, however I don't seem to be able to use it to download a movie to rent.

    Can someone tell me please how to get this balance...

    What happens when you try to rent the movie? If you use a family sharing and that you are the family Organizer so you won't be able to use your balance.

  • CODE - 641 Windows update has encountered an error of unkonwn. How to get this right

    CODE - 641 Windows update has encountered an error of unkonwn.  How to get this right

    Try to run the tool:

    http://support.Microsoft.com/mats/windows_update/

  • I reinstalled adobe CS6. my other macs, I had a printer named 'Adobe PDF', that I could choose that as my printer and a dialogue box came up, I named the file and the location.  I can't figure out how to get this done on my new mac.  Help

    I reinstalled adobe CS6. my other macs, I had a printer named 'Adobe PDF', that I could choose that as my printer and a dialogue box came up, I named the file and the location.  I can't figure out how to get this done on my new mac.  Help

    There are two ways to create a PDF on a Mac:

    (1) you can use the default method, which is to choose file > print. Click on the PDF menu below on the left, then click on save as PDF. This lets you name and save the PDF file using the mechanism of OS X to create PDF files.

    (2) in the same menu, you can save in Adobe PDF format. It runs a script (a little slow) that lets choose you what PDF settings file you want to use. This is the Adobe-developed mechanism that replaces the old Virtual PDF printer.

  • No idea how to write this query

    Hi, My Data is as below

    DocNum doc_date type of amount
    1154 15 November 11 232501.5 invoice
    200206 4 November 11 - 243672.64 credit memo
    Note flow 111 5 November 555.22 11

    Output must be

    DocNum doc_date amount Type AmountDR AmountCR
    1154 232501.5 15 November 11 Bill 232501.5
    Note credit 200206 4 November 11 - 243672.64 - 243672.64
    Note flow 111 5 November 555.22 11 555.22

    If the amount is > 0, then it must be displayed in the value of the amount to be AmountDR
    If amount < 0 then it must be displayed in the value of the sum amount CR



    Can help how to write this query
    with sample_table as (
                          select 1154 Docnum,date '2011-11-15' doc_date,232501.5 Amount,'Invoice' type from dual union all
                          select 200206,date '2011-11-04',-243672.64,'Credit Memo' from dual union all
                          select 111,date '2011-11-05',555.22,'Debit Memo' from dual
                         )
    select  Docnum,
            doc_date,
            Amount,
            type,
            case
              when Amount >= 0 then Amount
            end AmountDR,
            case
              when Amount < 0 then Amount
            end AmountCR
      from  sample_table
    /
    
        DOCNUM DOC_DATE      AMOUNT TYPE          AMOUNTDR   AMOUNTCR
    ---------- --------- ---------- ----------- ---------- ----------
          1154 15-NOV-11   232501.5 Invoice       232501.5
        200206 04-NOV-11 -243672.64 Credit Memo            -243672.64
           111 05-NOV-11     555.22 Debit Memo      555.22
    
    SQL> 
    

    SY.

  • How to rewrite this query to get the correct results?

    Friends,

    DB: 9iR2

    I need to get the name of the employee and the employee number that are not in the table of presence.
    but this query is not the right answer.
    select e.eno,e.ename from empl e
    where e.eno not in (select a.eno from attendance a)
    Thank you

    Depending on your data

    SQL> create table attendance(
      2  ENO   VARCHAR2(5),
      3   TDATE VARCHAR2(10),
      4   IN_TIME  VARCHAR2(6),
      5   OUT_TIME VARCHAR2(6),
      6   SHIFT_NO  NUMBER(1));
    
    Table created.
    
    SQL>  create table empl(
      2   ENO VARCHAR2(5),
      3   ENAME  VARCHAR2(75));
    
    Table created.
    
    SQL> insert into empl values('11','AA');
    
    1 row created.
    
    SQL>   insert into empl values('12','AB');
    
    1 row created.
    
    SQL>    insert into empl values('13','AC');
    
    1 row created.
    
    SQL>     insert into empl values('14','AD');
    
    1 row created.
    
    SQL>   insert into empl values('15','AF');
    
    1 row created.
    
    SQL>  insert into attendance values('11','23-3-2009','9.00','6.00',1);
    
    1 row created.
    
    SQL>  insert into attendance values('14','24-3-2009','9.00','6.00',1);
    
    1 row created.
    
    SQL>  insert into attendance values('11','25-3-2009','9.00','6.00',1);
    
    1 row created.
    
    SQL>  insert into attendance values('13','23-3-2009','9.00','6.00',1);
    
    1 row created.
    
    SQL>  insert into attendance values('15','23-3-2009','9.00','6.00',1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    select e.eno,e.ename
    from empl e
    where not exists(select 1 from attendance a where a.eno=e.eno);
    
    ENO     ENAME
    
    12     AB
    

    Twinkle

  • How to write this query in the hierarchy

    Hi gurus,

    Really need your help on this query.  Thank you very much in advance.

    SELECT
      t1.key as root_key ,
    (SELECT
          t2.unit_id AS unit_id 
          level-1 AS level ,
          t2.name,
          t2.creator
        FROM
          tab t2
          START WITH t2.unit_id       =   t1.unit_id            -----check each node as root
          CONNECT BY prior t2.unit_id = t2.parent_unit_id
    
      )
       t1.name as parent_unit_name
    FROM
      tab t1
    

    I'll write a query of the hierarchy as above, and that EACH line (node, totally more than 10200) is checked as root node to see how many sheets are accessible for her... It must be implemented in a single query.

    I know inline query should NOT return multiple rows or multiple columns, but the inline elements are necessary and can certainly be made in a correct solution.

    (env):

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    PL/SQL Release 12.1.0.2.0

    )

    Test data:

    select 1 as unit_id, null as parent_organization_unit_id, 'U1' as name from dual
    union all
    select 2, 1, 'U2' FROM DUAL
    UNION ALL
    SELECT 3, NULL, 'U3' FROM DUAL
    UNION ALL
    SELECT 4, 3, 'U4' FROM DUAL
    UNION ALL
    SELECT 5, 2, 'U5' FROM DUAL
    UNION ALL
    SELECT 6, 5, 'U6' FROM DUAL
    UNION ALL
    SELECT 7, 6, 'U7' FROM DUAL
    UNION ALL
    SELECT 8, 5, 'U8' FROM DUAL
    UNION ALL
    SELECT 9, 5, 'U9' FROM DUAL;
    

    Final result should be like this

    key unit_id,    level,   name, parent_name
    1    1    0    u1      u1
    1    2    1    u2       u1
    1    5    2     u5      u1
    1    6    3     u6      u1
    1    7    4    u7       u1
    1    8    3    u8       u1
    1    9    3     u9      u1
    2    2    0     u2       u2
    2    5    1      u5       u2
    2    6    2     u6       u2
    2    7    3      u7      u2
    2    8    2      u8       u2
    2    9    2      u9       u2
    
    

    Don't know how get you your output, it does not match your data...

    with tab as)

    Select 1 as unit_id, null as parent_organization_unit_id 'U1' as the name of double

    Union of all the

    Select 2, 1, 'U2' FROM DUAL

    UNION ALL

    SELECT 3, NULL, 'U3' FROM DUAL

    UNION ALL

    SELECT 4, 3, 'U4' FROM DUAL

    UNION ALL

    SELECT 5, 2, 'U5' OF THE DOUBLE

    UNION ALL

    SELECT 6, 5, 'U6' OF THE DOUBLE

    UNION ALL

    SELECT 7, 6, "U7" OF THE DOUBLE

    UNION ALL

    SELECT 8, 5, 'U8' FROM DUAL

    UNION ALL

    9. SELECT, 5, 'U9' FROM DUAL

    )

    Select dense_rank() key (order by connect_by_root unit_id), unit_id, level - 1 as 'LEVEL', connect_by_root name root_parent_name

    t tab

    Start with parent_organization_unit_id is null

    Connect prior unit_id = parent_organization_unit_id

    KEY UNIT_ID LEVEL ROOT_PARENT_NAME
    1 1 0 "U1".
    1 2 1 "U1".
    1 5 2 "U1".
    1 6 3 "U1".
    1 7 4 "U1".
    1 8 3 "U1".
    1 9 3 "U1".
    2 3 0 "U3".
    2 4 1 "U3".
  • How to get this challenge of output using joint?

    We will create a document XML E2B to query an Oracle Argus Pharmacovigilance DB.  Problem is when trying to generate the tag < drugs >.

    -A drug (or product) can have multiple schemas.

    -A drug can have several indications.

    If a product has several treatment regimens and the indications must be created 1 < drugs > tag to each plan and each indication. However, let us assume that there is only 1 sign and 1 plan, we should produce 1 single tag. If we have 2 regimens and directions 1, we should be producing 2 labels. 1 label must include 1 plan and 1 sign and the other tag should have the indication of information etc...

    Like this:

    If a drug (product) 1 indication and 1 plan we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    If the drug has 2 indications and 2 diagrams then we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 2 directions and following the 1 pattern, we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 1 indication and 2 diagrams, then like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < / drugs >

    and so on...


    I am trying to create a query to get the records to do this, but have problems.  I created 3 examples of tables with test data. It seems that this can be done by using joins. I do not know. Can someone tell me

    drop table Case_Prod_Indications_;

    drop table Case_Dose_Regimens_;

    drop table Case_Product_;

    Create Table Case_Product_

    (

    Number of Case_Id

    Number of Seq_Num,

    product_id VARCHAR2 (5).

    reported_Name Varchar2 (15).

    Constraint Case_Product_Pk Primary Key (Case_Id, Seq_Num)

    );

    Create Table Case_Dose_Regimens_

    (

    Number of Case_Id

    Number of Seq_Num,

    Number of Log_No

    Regimen_Description Varchar2 (20).

    Constraint Case_Dose_Regimens_Pk Primary Key (Case_Id, Seq_Num, Log_No),

    Constraint Regimens_2_Product_Fk Foreign Key (Case_Id, Seq_Num) made reference Case_Product_ (Case_Id, Seq_Num)

    );

    Create Table Case_Prod_Indications_

    (

    Number of Case_Id

    Number of Prod_Seq_Num

    Number of Seq_Num,

    Indication Varchar2 (25).

    Constraint Case_Prod_Ind_Pk Primary Key (Case_Id, Prod_Seq_Num, Seq_Num),

    Constraint Foreign Key (Case_Id, Prod_Seq_Num) to indics_2_Product_Fk references Case_Product_ (Case_Id, Seq_Num)

    );

    Case_Product_ p, Case_Dose_Regimens_ r's Case_Prod_Indications_ I

    We always want an output for a particular case_id ONLY.

    Scenario1: Product has only been inserted to case_product, with no product_id, but with a reported indication.

    INSERT INTO case_product_ VALUES (100, 1, NULL, 'Panadol');

    COMMIT;

    Output should be: 1 plug as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    100                 1                         null                          Panadol                          null                                       null

    Request used:

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    WHERE

    p.case_id = 100;

    Output is OK? : YES.

    Scenario2: Product diagrams a.

    INSERT INTO case_product_ VALUES (200, 10, 3, "Disprin");

    INSERT INTO case_dose_regimens_ VALUES (3, 1, 10, 200 mg');

    INSERT INTO case_dose_regimens_ VALUES (200, 10, 2, 5 mg');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    200                10                          3                          Disprin                          3mg                                         null

    200                10                          3                          Disprin                          5mg                                         null

    Request used: same as above, but with case_id = 200.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 200;

    Output is OK? : YES.


    Scenario3: Product has patterns AND directions. Here, there are more indications that treatment regimens.

    INSERT INTO case_product_ VALUES (300, 30, 5, "Aspirin");

    INSERT Into Case_Dose_Regimens_ Values (300, 30, 1, 65 MG');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 1, 'Bread');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 2, 'Vomiting');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                               5                          Asprin                          65MG                                    Pain

    300                30                               5                          Asprin                          null                                         Vomiting

    Request used: same as above, but with case_id = 300.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 300;

    Output is OK? : No. we get 65MG for the 2nd record as well.

    Scenario4: Product has patterns AND directions. Here there are patterns and equal information.

    INSERT Into Case_Dose_Regimens_ Values (4, 2, 30, 300 kg');

    commit;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                          5                          Asprin                               65MG                                    Pain

    300                30                          5                          Asprin                               4kg                                        Vomiting

    Request used: same as above.

    Output is OK? : no today, we get 4 rows.

    Scenario5: Product has patterns AND directions. Here, there are patterns more than indications.

    INSERT Into Case_Dose_Regimens_ Values (6, 3, 30, 300 g');

    commit;

    Output should be: 3 discs as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                     30                               5                                    Asprin                          65MG                               Pain

    300                     30                               5                                    Asprin                          4kg                               Vomiting

    300                     30                               5                                    Asprin                          6g                                         null

    Request used: same as above.

    Output is OK? : No. now we get 6 entries.

    How we do this? Or can not use joins and perhaps another method?

    Any help would be greatly appreciated.

    Hello

    I see it; you need in a few lines of possible exit, until all rows in related tables are included.  You don't care which line of case_dose_regimens gets paired with what line of case_prod_indications, you want just the 1st row of each table (or the 1st line of a table, if there is no matching data in the other) together on the 1st row of output and the 2nd row of each table set on 2nd line , and so on and in what order is used to define the "1st" and "2nd" is not important.  Is this fair?

    If so, then use the ROW_NUMBER analytic functions to assign numbers (I called it r_num) to identify the 1st, 2nd,... lines, like this:

    WITH schema AS

    (

    SELECT case_id, seq_num, regimen_description

    , ROW_NUMBER () OVER (PARTITION BY case_id, seq_num)

    ORDER BY log_no - or what you want

    ) AS r_num

    OF case_dose_regimens_

    )

    directions,

    (

    SELECT case_id, prod_seq_num, indication

    , ROW_NUMBER () OVER (PARTITION BY case_id, prod_seq_num)

    ORDER BY seq_num - or what you want

    ) AS r_num

    OF case_prod_indications_

    )

    SELECT p.case_id, p.seq_num, p.product_id, p.reported_name

    r.regimen_description

    i.indication

    OF case_product_ p

    LEFT OUTER JOIN

    (diagram r

    FULL OUTER JOIN indication I have ON i.case_id = r.case_id

    AND i.prod_seq_num = r.seq_num

    AND i.r_num = r.r_num

    )

    ON p.case_id = COALESCE (r.case_id

    i.case_id

    )

    AND p.seq_num = COALESCE (r.seq_num

    i.prod_seq_num

    )

    WHERE p.case_id (300)

    ORDER BY p.case_id, p.seq_num

    , COALESCE (r.r_num, i.r_num)

    ;

  • How to write this query?

    Hi people,

    I need to get a query in which a set of records, I get ONLY those which previous registry has a field with a value to this topic. Other values, the field can contain are not necessary.

    I know that sounds easy but... I can't get it.

    So, for Oracle 10 g 2... Here's my query:

    SELECT a.person_id, a.person_status, a.message_id, a.order_id

    OF t_HR one

    WHERE a.person_status = "rejected".

    AND a.id >

    (SELECT max (b.id)

    OF t_HR b

    WHERE b.person_id = a.person_id

    and b.order_id = a.order_id

    AND b.person_status! "revised =".

    B.ID AND < a.id)

    ORDER BY desc a.id

    Let me explain:

    1 - HR table is a table of people. These people has serveral STATUS.

    2 - ID is a sequential (each www.voyages-sncf.com has a different identification number).

    3 - the application must get THAT all people "rejected".

    4. - However, (subquery) I need ONLY those that previous register (the second register) holds a status of "OK". If the person holds a "revised" status he's not, he should be the next register (the third)

    5.-L' ORDER ID DESC, so is the first register must have a STATUS = "rejected" and the second a 'OK '.  IF the second register = "revised", then the third register must be 'OK '. And I need this query.

    HOW DO?

    My problem: the subquery gives you previous register of the same guy, but... it does not give you the value of the State, I need, which is 'OK '.

    I tried to add to the subquery...

    SELECT max (b.id)

    OF mod_human_resource b

    WHERE b.person_id = a.person_id

    and b.order_id = a.order_id

    AND b.person_status = 'OK '.

    AND b.id < a.id

    ... but if I have 5 records of that person, the first is "rejected", the second is "accepted", the third is 'new' and the fourth is 'OK'... the subquery gives you the 4th register and which is not correct for me, it must be only the second one (prior to the first State registry).

    I need to be a query, because I need to use it on a MERGER for a DWH.

    If there is another way (function, or even a procedure) to make the MERGER rather than with a request, which would be ok too. I am poor DWH knowledge.

    Thanks in advance.

    Hello

    So, you need to know if a line is the 'first' line, and you should also know what is the 'next' status, (even the 'first' and 'next' are already defined).  This sounds like a job for analytical functions.  ROW_NUMBER can tell you if a line is first or not, and LEAD can tell you what a value on the next row.

    Since you post CREATE TABLE and INSERT statements for your own table, I'll use the table scott.emp to illustrate.

    Consider these data from scott.emp:

    SELECT DeptNo

    ename

    work

    FROM scott.emp

    ORDER BY deptno

    ename DESC

    ;

    Output:

    DEPTNO ENAME JOB

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

    10 MILLER CLERK

    PRESIDENT OF KING 10

    MANAGER 10 CLARK

    20 SMITH CLERK

    ANALYST SCOTT 20

    20 JONES MANAGER

    20 FORD ANALYST

    20 ADAMS CLERK

    30 WARD SALESMAN

    SELLER OF 30 TURNER

    30 MARTIN SALESMAN

    30 JAMES CLERK

    MANAGER BLAKE 30

    30 ALLEN SALESMAN

    Now, let's say we want only who know the departments where the forefront (in order descending ename) a job = 'CLERK', and the following line (also in descending by ename order) = "ANALYST" job, and we want to know the ename of the first row.  In other words, the correct output is:

    DEPTNO ENAME

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

    20 SMITH

    Note that deptno = 10 is not included, even if the first task is to "CLERK." that was because the second job in deptno = 10 is the "PRESIDENT", not "ANALYST."

    Here's a way to get these results:

    WITH got_analytics AS

    (

    SELECT ename, deptno, job

    ROW_NUMBER () OVER (PARTITION BY deptno

    ORDER BY ename DESC

    ) AS r_num

    LEAD (employment) OVER (PARTITION BY deptno

    ORDER BY ename DESC

    ) AS next_job

    FROM scott.emp

    )

    SELECT deptno, ename

    OF got_analytics

    WHERE r_num = 1

    AND job = 'CLERK '.

    AND next_job = 'ANALYST '.

    ;

    I hope that answers your question.

    If this isn't the case, then, as Dan (and the FAQ forum) said, post CREATE TABLE and INSERT statements for some sample data and the exact results you want from these data.

    Post your query, based on the one I have posted more top and ponit out where he gets results.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • How to get the query execution time without running...?

    Hello

    I had one condition... as follows...
    I had 3 sql statements. I need to run only sql what runtime is very less.

    Can someone help me, how to get the time query and run this query without using explain plan... ?

    Thank you
    Rajesh

    I can't think in any way at all to get the query execution time without running the query.

    You might get an estimate ( approximation ) If you are using explain plan.

    But you have governed to explain plan for a reason, so I can't help you.
    Why you do not want to use don't explain plan?

  • Instructions immediately talk about Firefox window, but does not say how to get this window.

    It took me almost an hour to get to this point. I am technologically challenged. I have an old version of Firefox. The instructions immediately embark on the 'Firefox window' but says nothing about how to access this window. Where this window? Maybe I should just download Opera?

    "Firefox" means Firefox, this is the window that appears when Firefox is opened.

    You must follow the directions to update to the latest version Firefox update to Firefox 33.0.2 (read to the bottom of the page to see the screenshots). This will take you to the most recent version of Firefox, and then we can help you with other problems you're having with Firefox.

    If you are a beginner in Firefox, try to start with Firefox – an overview of the main features of the reading

  • Qosmio G20-102 TV TUNER: how to get this to work - what cables are required?

    Hey everybody,

    I just installed vista on my laptop QOSMIO G20-102 (PQG20), I have media library now.
    My laptop came not like MEDIA CENTER EDITION, it came under the home edition of Windows XP (laptop purchased in July 2005).
    I got 3 cables which I have no idea how to use...
    laptop was purchased in Dubai/Emirates and I live in Malta

    These are the cables >
    http://img399.imageshack.us/img399/7189/dsc00780gi6.jpg

    Now for my question (s):
    1 which of these cables do I need? Im just trying to figure out how to get my satellite tv or digital cable to work on my laptop.
    2 antenna adapter (see picture) is not for coaxial cable, what can I do?
    3 I did WINDVR more due to the upgrade of vista, Media Center Gets the job done but I don't know what to do... This guide has confused me even more > http://www.microsoft.com/windowsxp/mediacenter/using/setup/settop.mspx
    I don't have IR control cable, I do not have a remote sensor (but I have some sort of built in the remote sensor on the front of my laptop.

    I'm looking for advice as for example buy this, get rid of it, install this etc...
    Please, anything that can help is appreciated!
    If you need information more just ask, I am here ;)

    Yours sincerely
    Ishmael

    Hi ismael,.
    I'll try to help with that, but it's a long way to the road...
    I don't know what Tv system is used to Malta (Pal)?

    The best way to set up your TV's with Media Center 2005 edition.
    Cables:
    Check the back of your cable TV installation box and find the composite or SVHS output. If you have only the composite, you can use the composite cable of the posted image. If your TV decoder has the SVHS, so you should use, to the better image than composite. You must obtain a SVHS cable for this.
    Look for the audio output rca, too. Mix with the composite cable for the audio Qosmio.

    But you must have:
    1 control cable IR, for media center 2005 configuration as well as your TV decoder. It is cable connected to the remote sensor (see fact sheet on the back).

    2 sensor for your remote control and configure it with the remote control of your TV decoder. In this way, you can control the receiver cable channels, using the remote control for your Qosmio G20 media center edition.
    Recovery: you can change the channels on your TV decoder using the qosmio remote control.

    3. remote control for you media Center 2005, one that came with your Qosmio g20.

    Open the TV on Media Center 2005 configuration and follow all the steps required for installation.
    You must follow the guide, as is explained in the image you posted:
    http://www.Microsoft.com/windowsxp/mediacenter/using/Setup/SetTop.mspx

    If you have all these cables, you can use the Qosmio player to watch TV. It is not tied to windows OS.
    Here, simply connect the coaxial cable and let the Qosmio player search for available channels in your area. Qosmio player has the opportunity to set the colour TV system in any part of the world. all NTSC regions in all PAL regions.
    If you have the remote control for your Qosmio, TV keys will work directly with the Qosmio remote sensor on board, without needing the external sensor of Microsoft.

    I hope this helps you
    Francisco

  • How to optimize this query?

    Hello

    I have a query like this:

    Merge into the table st1

    using (select * from (select pk, value, diff_value, m_date, row_number () over (PARTITION pk ORDER BY diff_value) rnk)

    from (select distinct / * + Full (t1) full (t2) * / t1.pk, t2.m_date)

    , Case when (t1.m_date = t2.m_date) then "CORRESPONDENCE".

    When (t2.m_date BETWEEN t1.m_date-1 and t1.m_date + 1) then ' MATCHED WITH +/-1gg.

    When (t2.m_date BETWEEN t1.m_date-2 and t1.m_date + 2) then "MATCHED WITH +/-2 days.

    else "

    end value_match

    Case when (t1.m_date = t2.m_date) then 0

    Where (t2.m_date BETWEEN t1.m_date + 1 and t1.m_date - 1) then 1

    Where (t2.m_date BETWEEN t1.m_date + 1 and t1.m_date - 1) then 2

    else "

    end diff_value

    of table t2, t1 table

    where t1.value is null

    and t1.id = t2.id)

    where value_match is not null)

    where rnk = 1) s

    on (st1.pk = s.pk)

    WHEN MATCHED THEN

    Update set st1.value = s.value_match, st1.diff_value = s.diff_value, st1.up_date = s.m_date

    where st1.value is null.

    Explain the plan:

    EXPLAIN_PLAN1.jpg

    Table1 a record 3Million and table 2 has 1 million records.

    I used gather stats before you run this query and 'Full' trick, even in this case, he is running for 45 minutes.

    Please suggest the best solution to optimize this query.

    Thanks in advance.

    Remove the tips.

    No need for the separate.

    Get the diff by ceil (abs(t2.m_date-t1.m_date)) and the filter for that where value_diff<>

    Assing the statement ".. MATCHED" lately in the update clause.

    Maybe give exactly to your needs with a small example may be the query may be getting more simplified or not what you want it to do.

  • How to get this effect?

    Hey guys, new user first here sorry in advance if this is a stupid question. Does anyone know how to get the effect that appears around: 14 in the next video? Where the waves fill the outline of the girl, but not big thing.

    Escape to exist • white s/s 16 on Vimeo

    Background scene on track V1

    Contrast shot of the girl on the floor V3

    Coup waves on track V2 with effect hides by applied approach, effect hiding approach specifying track V3 as source material Composite using Matte Luma, you will need to check the box to reverse the effect if it is darker as the background,

    MtD

  • How to optimize this query XMLDB

    Hello dear community, we have two XMLType table they are very similar but not identical and we do not have the XSD for validation for this exercise.

    We need to make a join between these tables and the data code example go like that

    create table xmltst ( xmldata xmltype);
    create table xmltst2 ( xmldata xmltype);
    
    declare
     idata varchar2(4000);
     idata2 varchar2(4000);
     begin
    
     idata := '<?xml version="1.0" encoding="UTF-8"?>
    <SWs>
      <SW s_ID="T6B890.00-01" t_ID="T6B890.00">
      <Ds>
      <De sX="59" sY="-57" rX="7" rY="22" m_ID="L" eTime_s="2014-12-12T02:22:11+08:00" eTime_e="2014-12-12T02:22:42+08:00" mst="0.631"/>
      <De sX="70" sY="-57" rX="7" rY="23" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00"  eTime_e="2014-12-12T02:22:33+08:00" mst="0.217"/>
      <De sX="69" sY="-57" rX="47" rY="1" m_ID="R" eTime_s="2014-12-12T02:22:16+08:00" eTime_e="2014-12-12T02:22:56+08:00" mst="0.974"/>
      </Ds>
      </SW>
      <SW s_ID="T6B890.00-02" t_ID="T6B890.00">
      <Ds>
      <De sX="56" sY="-1" rX="72" rY="19" m_ID="R" eTime_s="2014-12-12T02:36:01+08:00" eTime_e="2014-12-12T02:36:29+08:00" mst="0.541"/>
      <De sX="57" sY="-1" rX="39" rY="42" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:23:01+08:00" mst="0.426"/>
      <De sX="58" sY="-1" rX="72" rY="20" m_ID="R" eTime_s="2014-12-12T02:36:07+08:00" eTime_e="2014-12-12T02:36:18+08:00" mst="0.716"/>
      </Ds>
      </SW>
    </SWs>';
    
    
    idata2 := '<?xml version="1.0" encoding="UTF-8"?>
    <SWs>
      <SW s_ID="T6B890.00-01" t_ID="T6B890.00">
      <Ds>
      <De sX="59" sY="-57" rX="7" rY="22" m_ID="L" eTime_s="2014-12-12T02:22:11+08:00" eTime_e="2014-12-12T02:22:42+08:00"/>
      <De sX="70" sY="-57" rX="7" rY="23" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:22:33+08:00"/>
      <De sX="69" sY="-57" rX="47" rY="1" m_ID="R" eTime_s="2014-12-12T02:22:16+08:00" eTime_e="2014-12-12T02:22:56+08:00"/>
      <De sX="72" sY="-57" rX="47" rY="2" armID="R" eTime_s="2014-12-12T02:22:18+08:00" eTime_e="2014-12-12T02:23:28+08:00"/>
      <De sX="82" sY="-57" rX="7" rY="25" armID="L" eTime_s="2014-12-12T02:22:19+08:00" eTime_e="2014-12-12T02:22:58+08:00"/>
      </Ds>
      </SW>
      <SW s_ID="T6B890.00-02" t_ID="T6B890.00">
      <Ds>
      <De sX="56" sY="-1" rX="72" rY="19" m_ID="R" eTime_s="2014-12-12T02:36:01+08:00" eTime_e="2014-12-12T02:36:29+08:00"/>
      <De sX="57" sY="-1" rX="39" rY="42" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:23:01+08:00"/>
      <De sX="58" sY="-1" rX="72" rY="20" m_ID="R" eTime_s="2014-12-12T02:36:07+08:00" eTime_e="2014-12-12T02:36:18+08:00"/>
      </Ds>
      </SW>
    </SWs>';
    
    
    
    insert into xmltst values (idata);
    insert into xmltst2 values (idata2);
    
    
    end;
    
    
    commit;
    

    The SQL code, we try to optimize:

    with tt as (    
    SELECT /*+ materialize */
       x.*
         FROM xmltst t,
              XMLTABLE ('/SWs/SW[@s_ID="T6B890.00-01"]/Ds/De'
                        PASSING t.xmldata
                        COLUMNS sX number  PATH '@sX',
                                sY number  PATH '@sY',
                                rX number PATH '@rX',
                                rY number PATH '@rY',
                                eTime_s varchar2(30) PATH '@eTime_s',
                                eTime_e varchar2(30) PATH '@eTime_e',
                                mst number PATH '@mst'
                                ) x     
                                )
                                ,tt2 as (
                                
    SELECT /*+ materialize */
       x.*
         FROM xmltst2 t,
              XMLTABLE ('/SWs/SW[@s_ID="T6B890.00-01"]/Ds/De'
                        PASSING t.xmldata
                        COLUMNS sX number  PATH '@sX',
                                sY number  PATH '@sY',
                                rX number PATH '@rX',
                                rY number PATH '@rY',
                                eTime_s varchar2(30) PATH '@eTime_s',
                                eTime_e varchar2(30) PATH '@eTime_e'                            
                                ) x        
                                )
                                select tt2.*,tt.mst
                                from tt2
                                left outer join tt
                                on (tt2.sX = tt.sX and tt2.sY = tt.sY and tt2.rX = tt.rX and tt.rY=tt.rY)
    

    CREATE INDEX xmltst_idx ON xmltst (xmldata)
    INDEXTYPE IS XDB.XMLIndex
    PARAMETERS (
    'XMLTable SW_tab ''/SWs/Sw''
     COLUMNS 
     s_ID VARCHAR2(100) PATH ''@s_ID'',
     sX NUMBER PATH ''Ds/De/@sX'',
     sY NUMBER PATH ''Ds/De/@sY'',
     rX NUMBER PATH ''Ds/De/@rX'',
     rY NUMBER PATH ''Ds/De/@rY''');
    

    Create an index as above, but it does not seem to be used to explain the plan for the part of XML query.

    and a lot of time, I also get this error but I cannot now re - produce for some reason.

    I thought that its because I can't index after branch out according to s_ID

    SQL Error: ORA-29879: cannot create multiple domain indexes on a column list using same indextype
    29879. 00000 -  "cannot create multiple domain indexes on a column list using same indextype"
    *Cause:    An attempt was made to define multiple domain indexes on the same
               column list using identical indextypes.
    *Action:   Check to see if a different indextype can be used or if the index
               can be defined on another column list.
    

    and this index below seems to have choice as shown explain plan.

    Why can't I see the index above in the plan to explain it?

      CREATE INDEX "OE"."XMLTST_INDX01" ON "OE"."XMLTST" ("XMLDATA") 
       INDEXTYPE IS "XDB"."XMLINDEX"  PARAMETERS ('paths (include (/SWs/SW/@s_ID))');
    

    However, it is still the loop nest join when the join of two tables after the XML in the process... Is it possible to tell Oracle to a join index or some kind of faster join after the XML select part.

    My real case got way as many lines to make the join of X - Y and it may be nice to have an index to quickly reach?

    When do some small tests, the clause will eventually cause oracle core dump. It should not happen even it is a virtual machine with 3G of memory max and the max_memory_target = 800 M as all my data are not not even 50 M.

    We are the team of analysts and Dev team suggest that is a little too much time to contact Oracle Support and I finally create 3 global temporary table with commit preserve rows and operate with performance much better.

Maybe you are looking for