Please help me to set a query that was so irritating... (test 2)

I thank in advance for any help, you can provide or you the light can shine
on that. I tried to work this problem for a few days
and continue to run into a wall, so any help is appreciated more.

Overview-

We have a collection of sites. At each location, users can create
checklists and assign ratings to the elements.

Database model:
CREATE TABLE RATINGS_DETAIL
(
  RATING_ID           NUMBER(5),
  RATING_DESCRIPTION  VARCHAR2(30 BYTE)
);

CREATE TABLE ITEMS
(
  ITEM_ID           NUMBER(5),
  ITEM_DESCRIPTION  VARCHAR2(1000 BYTE)
);


CREATE TABLE CHECKLIST_USERS
(
  USER_ID    NUMBER(5),
  USER_NAME  VARCHAR2(32 BYTE)
);

CREATE TABLE CHECKLIST
(
  CHECKLIST_ID           NUMBER(5),
  LOCATION_ID            NUMBER(5),
  CHECKLIST_DESCRIPTION  VARCHAR2(1000 BYTE),
  CHECKLIST_DATE         DATE,
  CHECKLIST_EXTERNAL     CHAR(1 BYTE)
);

CREATE TABLE CHECKLIST_ITEMS
(
  ITEM_ID         NUMBER(5),
  CHECKLIST_ID    NUMBER(5),
  RATING_ID       NUMBER(5),
  RATING_USER_ID  NUMBER(5)
);

ALTER TABLE RATINGS_DETAIL ADD (CONSTRAINT RATINGS_DETAIL_PK PRIMARY KEY (RATING_ID));

ALTER TABLE ITEMS ADD (CONSTRAINT ITEMS_PK PRIMARY KEY (ITEM_ID));

ALTER TABLE CHECKLIST_USERS ADD (CONSTRAINT CHECKLIST_USERS_PK PRIMARY KEY (USER_ID));

ALTER TABLE CHECKLIST ADD (CONSTRAINT CHECKLIST_PK PRIMARY KEY (CHECKLIST_ID));

ALTER TABLE CHECKLIST_ITEMS ADD (CONSTRAINT CHECKLIST_ITEMS_PK PRIMARY KEY (ITEM_ID, CHECKLIST_ID));

ALTER TABLE CHECKLIST_ITEMS ADD (
  CONSTRAINT CHLIST_ITEM_RATING_FK FOREIGN KEY (RATING_ID) REFERENCES RATINGS_DETAIL (RATING_ID),
  CONSTRAINT CHLIST_ITEM_USER_FK FOREIGN KEY (RATING_USER_ID) REFERENCES CHECKLIST_USERS (USER_ID),
  CONSTRAINT CHLIST_ITEMS_LIST_FK FOREIGN KEY (CHECKLIST_ID) REFERENCES CHECKLIST (CHECKLIST_ID),
  CONSTRAINT CHLIST_ITEMS_ITEM_FK FOREIGN KEY (ITEM_ID) REFERENCES ITEMS (ITEM_ID));
And some data
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (1, 1, 'Internal List 1', TO_DATE('09/01/2011', 'MM/DD/YYYY'), 'N');
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (2, 1, 'External List 1', TO_DATE('05/01/2011', 'MM/DD/YYYY'), 'Y');
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (3, 1, 'External List 2', NULL, 'Y');
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (4, 1, 'External List 3', TO_DATE('08/01/2011', 'MM/DD/YYYY'), 'Y');
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (5, 1, 'External List 4', NULL, 'Y');
Insert into CHECKLIST
   (checklist_id, location_id, checklist_description, checklist_date, checklist_external)
 Values (6, 2, 'Internal List 1 (loc 2)', TO_DATE('08/01/2011', 'MM/DD/YYYY'), 'N');
COMMIT;


Insert into ITEMS (item_id, item_description) Values   (1, 'Item 1');
Insert into ITEMS (item_id, item_description) Values   (2, 'Item 2');
Insert into ITEMS (item_id, item_description) Values   (3, 'Item 3');
Insert into ITEMS (item_id, item_description) Values   (4, 'Item 4');
Insert into ITEMS (item_id, item_description) Values   (5, 'Item 5');
Insert into ITEMS (item_id, item_description) Values   (6, 'Item 6');
Insert into ITEMS (item_id, item_description) Values   (7, 'Item 7');
Insert into ITEMS (item_id, item_description) Values   (8, 'Item 8');
Insert into ITEMS (item_id, item_description) Values   (9, 'Item 9');
Insert into ITEMS (item_id, item_description) Values   (10, 'Item 10');
COMMIT;


Insert into RATINGS_DETAIL (rating_id, rating_description) Values (1, 'Low');
Insert into RATINGS_DETAIL (rating_id, rating_description) Values (2, 'Med');
Insert into RATINGS_DETAIL (rating_id, rating_description) Values (3, 'High');
COMMIT;

Insert into CHECKLIST_USERS (user_id, user_name) Values (1, 'Internal User');
Insert into CHECKLIST_USERS (user_id, user_name) Values (2, 'External User');
COMMIT;


Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (1, 1, 1, 1);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (2, 1, NULL, NULL);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (3, 1, 1, NULL);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (4, 1, 3, 1);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (5, 1, 3, 1);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (8, 1, 2, 1);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (1, 2, NULL, NULL);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (2, 2, NULL, NULL);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (6, 2, 2, 2);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (7, 2, 1, 2);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (1, 3, NULL, NULL);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (8, 3, 2, 2);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (1, 4, 3, 2);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (6, 4, 1, 2);
Insert into CHECKLIST_ITEMS (item_id, checklist_id, rating_id, rating_user_id)
           Values (8, 4, NULL, NULL);
COMMIT;
To get the items for a given list:
  1  SELECT CC.checklist_id, II.item_id, CHI.rating_id, RR.rating_description
  2    FROM checklist CC
  3    LEFT JOIN checklist_items CHI ON CC.checklist_id =CHI.checklist_id
  4    LEFT JOIN items II            ON CHI.item_id =II.item_id
  5    LEFT JOIN ratings_detail RR   ON CHI.rating_id =RR.rating_id
  6*  WHERE     CC.checklist_id =1
SQL> /

CHECKLIST_ID    ITEM_ID  RATING_ID RATING_DESCRIPTION
------------ ---------- ---------- ------------------
           1          3          1 Low
           1          1          1 Low
           1          8          2 Med
           1          5          3 High
           1          4          3 High
           1          2
and
  
  1  SELECT CC.checklist_id, II.item_id, CHI.rating_id, RR.rating_description
  2    FROM checklist CC
  3    LEFT JOIN checklist_items CHI ON CC.checklist_id =CHI.checklist_id
  4    LEFT JOIN items II            ON CHI.item_id =II.item_id
  5    LEFT JOIN ratings_detail RR   ON CHI.rating_id =RR.rating_id
  6*  WHERE     CC.checklist_id =4
SQL> /

CHECKLIST_ID    ITEM_ID  RATING_ID RATING_DESCRIPTION
------------ ---------- ---------- ------------------------------
           4          1          3 High
           4          6          1 Low
           4          8  
  
  
Now the problem:

For a given location, there may be multiple lists - 1 list of audit 'Internal' and any number of checklists "External" (including 0). They may, but have not, share items.

It should pull up a query that joins the list of internal control with the most recent list of external audit. And there manage if there is no list of external control.

So far, the best I've been able to understand is to make each separate list and then try to merge the results later, but it's not effective for hundreds of possible objects we need to "Preview" in several places and find all their results which would be thousands of results.


So, I want a single query to retrieve the data if possible. I can make a separate request for internal identification numbers and a list of corresponding external audit.


I need to produce something like this:
  1  SELECT checklist_id AS INTERNAL_ID FROM checklist
  2* WHERE checklist_external ='N' AND location_id =1
SQL> /

INTERNAL_ID
-----------
          1
           
  1  SELECT     EE.checklist_id AS EXTERNAL_ID
  2    FROM     checklist EE
  3   WHERE  EE.checklist_external ='Y'
  4     AND  EE.checklist_date =(SELECT  max(EE2.checklist_date)
  5                           FROM  checklist EE2
  6                          WHERE  EE2.checklist_external ='Y'
  7                                 AND  EE2.location_id =EE.location_id)
  8*   AND      EE.location_id =1
SQL> /

EXTERNAL_ID
-----------
          4
What I want is a result like this
INTER  EXTER  ITEM_ID  I_RATING  E_RATING
----- ------ -------- ---------- ---------
    1      4        1 Low        High
    1               2
    1               3 Low
    1               4 High
    1               5 High
           4        6            Low
    1      4        8 Med
    
  1  SELECT     CC1.checklist_id AS INTER,
  2             CC2.checklist_id AS EXTER,
  3             II.item_id,
  4             RD1.rating_description AS I_rating,
  5             RD2.rating_description AS E_rating
  6    FROM     items II
  7    JOIN     checklist_items CHI1 ON II.item_id =CHI1.item_id
  8    JOIN     ratings_detail RD1 ON CHI1.rating_id =RD1.rating_id
  9    JOIN     checklist CC1 ON CHI1.checklist_id =CC1.checklist_id
 10                                     AND CHI1.checklist_id =1
 11    JOIN     checklist_items CHI2 ON II.item_id =CHI2.item_id
 12    JOIN     ratings_detail RD2 ON CHI2.rating_id =RD2.rating_id
 13    JOIN     checklist CC2 ON CHI2.checklist_id =CC2.checklist_id
 14*                                    AND CHI2.checklist_id =4
 15  /

     INTER      EXTER    ITEM_ID I_RATING      E_RATING
---------- ---------- ---------- ------------- --------------
         1          4          1 Low           High
Addition of LEFT joins on the right does not work and I can't find a combination that works... what Miss me?

Tags: Database

Similar Questions

  • Please help to write a complex query "select".

    Hello

    I am trying to write a query that retrieves information about attachments in HP ALM by referring to TestInstances, TestRun and TestSteps tables. For those who do not know HP ALM...

    I'm describing the structure of data in these tables (the names of tables and fields are changed for easy understanding).

    > > 1. In the "TestInstances" table key fields are I_InstanceID, I_HasAttachments and I_TestSetID

    1.1 I_InstanceID is the primary key for this table

    > > 2. Key in the table "TestRuns" fields are R_RunID, R_InstanceID, R_RunTime and R_HasAttachments

    2.1 R_RunID is the primary key for this table

    2.2 R_InstanceID is a foreign key to I_InstanceID in the TestInstances table

    2.3 all I_InstanceID in the TestInstances table may not have an entry in the table TestRuns

    2.4 an I_InstanceID in TestInstances can have multiple entries in the table TestRuns with different R_RunID

    > > 3. In the "TestSteps" table key fields are S_StepID, S_RunID and S_HasAttachments

    3.1 S_StepID is the primary key for this table

    3.2 S_RunID is a foreign key to R_RunID in the TestRuns table

    3.3 all R_RunID in the TestRuns table may not have an entry in the TestSteps table

    3.4 a R_RunID in TestRuns can have multiple entries in the table TestSteps with different S_StepID

    Entry to the query I want to write is a set of I_TestSetID in the TestInstances table (which I already have)

    The desired query output is -.

    1. all I_InstanceID have the values as shown in the entry I_TestSetID

    2 I_HasAttachments corresponding to I_InstanceID

    3. Earl of R_RunID against each I_InstanceID (may be 0 or a positive integer)

    4. only the last R_RunID corresponding to each I_InstanceID (later are using MAX (R_RunID) GROUP BY I_InstanceID)

    5 R_HasAttachment value of last R_RunID

    6 R_RunTime last R_RunID value

    7. County of S_StepID against each R_RunID (may be 0 or a positive integer)

    8. County of S_HasAttachment against each R_RunID (may be 0 or a positive integer and may differ from the County of S_StepID)

    Friends, could one of you give it a try and help out me?

    Thanks in advance!

    PS: This had been driving me crazy for 3 days. I'm not able to get unique entries and entries for which references to the TestRun and TestStep tables are empty.

    Try the bottom of correlated subquery

    SELECT i_instanceid,

    i_hasattachments,

    (SELECT COUNT (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid) cnt_runid;

    (SELECT MAX (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid) cnt_latestrunid;

    (SELECT I_HasAttachments

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid

    AND tr.r_runid = (SELECT MAX (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid)) R_HasAttachments;

    (SELECT R_RunTime

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid

    AND tr.r_runid = (SELECT MAX (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid)) R_RunTime;

    (SELECT COUNT (S_StepID)

    OF TestSteps ts

    WHERE the ts. S_RunID = (SELECT MAX (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid)) cnt_stepid;

    (SELECT COUNT (S_HasAttachments)

    OF TestSteps ts

    WHERE the ts. S_RunID = (SELECT MAX (R_RunID)

    OF TestRuns tr

    WHERE tr.r_instanceid = ti.i_instanceid)

    AND S_HasAttachments = 'Y') cnt_SHasAttachment

    OF ti TestInstances

    WHERE I_TestSetID IN (1190,1191,1192,1194,1195);

  • Please help me write this SQL query...

    Hi everyone,
    
    Please help me in this query.
    A patient can multiple types of Adresses (types P,M,D).If they have all the 3 types i need to select type: p and
    if they have (M and D) i need to select type M,and if they have only type D i have to select that.
    For each address i need to validate whether that particular address is valid or not (by start date and end date and valid flag)
    
    Patient table
    =============
    
    Patient_id          First_name    last_name
    
    1                   sanjay        kumar
    2                   ajay          singh
    3                   Mike          John
    
    
    Adress table
    ============
    
    address_id       patient_id       adresss       city       type       startdate        enddate      valid_flg
    
    1                   1             6222         dsadsa           P          01/01/2007       01/01/2010
    2                   1             63333        dsad             M          01/02/2006       01/01/2007      N
    3                   1             64564         fdf              M          01/01/2008       07/01/2009      
    4                   1             654757       fsdfsa          D          01/02/2008       09/10/2009  
    5                   2             fsdfsd       fsdfsd            M          01/03/2007       09/10/2009   
    6                   2             jhkjk        dsad              D          01/01/2007       10/10/2010   
    7                   3             asfd         sfds               D          01/02/2008       10/10/2009      
    
    
    output
    =====
    
    1        sanjay       kumar            6222       dsadsa      P          01/01/2007        01/01/2010     
    2        ajay         singh            fsdfsd     fsdfsd       M          01/03/2007        09/10/2009 
    3        mike         john              asfd       sfds        D          01/02/2008        10/10/2009
    Thanks in advance
    Phani

    Hello, Fabienne,.

    This race for you (twisted code of Sarma):

    SELECT patient_id, first_name, last_name, address, city, type, startdate, enddate
     FROM (
      SELECT a.patient_id patient_id, first_name, last_name, address, city, type, startdate, enddate,
                 ROW_NUMBER() OVER (PARTITION BY p.patient_id ORDER BY CASE type WHEN 'P' THEN 1
                                                                          WHEN  'M' THEN 2
                                                                          WHEN  'D' THEN 3
                                                                        END) rn
        FROM  patient p
        JOIN  address a ON (p.patient_id = a.patient_id )
       WHERE NVL(valid_flg, 'X') != 'N'
         AND SYSDATE BETWEEN startdate AND  NVL(enddate, SYSDATE)
         )
    WHERE rn = 1; 
    

    Edit, currently in the trial:

    With Patient AS (
    SELECT 1  Patient_id , 'sanjay' First_name, 'kumar'  last_name FROM DUAL UNION ALL
    SELECT 2, 'ajay', 'singh' FROM DUAL UNION ALL
    SELECT 3, 'Mike', 'John' FROM DUAL),
    Address AS (
    SELECT 1   address_id, 1  patient_id, '6222'    address, 'dsadsa'   city, 'P'  type, to_date('01/01/2007', 'DD/MM/YYYY')  startdate, to_date('01/01/2010', 'DD/MM/YYYY')  enddate, NULL  valid_flg FROM DUAL UNION ALL
    SELECT 2,1,'63333','dsad','M', to_date('01/02/2006', 'DD/MM/YYYY'), to_date('01/01/2007', 'DD/MM/YYYY'),  ' N'  FROM DUAL UNION ALL
    SELECT 3,1,'64564','fdf','M', to_date('01/01/2008', 'DD/MM/YYYY'), to_date('07/01/2009', 'DD/MM/YYYY'), NULL  FROM DUAL UNION ALL
    SELECT 4,1,'654757','fsdfsa','D', to_date('01/02/2008', 'DD/MM/YYYY'), to_date('09/10/2009', 'DD/MM/YYYY'),  NULL  FROM DUAL UNION ALL
    SELECT 5,2,'fsdfsd ','fsdfsd','M', to_date('01/03/2007', 'DD/MM/YYYY'), to_date('09/10/2009', 'DD/MM/YYYY'), NULL  FROM DUAL UNION ALL
    SELECT 6,2,' jhkjk','dsad','D', to_date('01/01/2007', 'DD/MM/YYYY'), to_date('10/10/2010', 'DD/MM/YYYY'),  NULL  FROM DUAL UNION ALL
    SELECT 7,3,'asfd',' sfds',' D', to_date('01/02/2008', 'DD/MM/YYYY'), to_date('10/10/2009', 'DD/MM/YYYY'),  NULL  FROM DUAL)
    -- end test data
     SELECT patient_id, first_name, last_name, address, city, type, startdate, enddate
     FROM (
      SELECT a.patient_id patient_id, first_name, last_name, address, city, type, startdate, enddate,
                 ROW_NUMBER() OVER (PARTITION BY p.patient_id ORDER BY CASE type WHEN 'P' THEN 1
                                                                          WHEN  'M' THEN 2
                                                                          WHEN  'D' THEN 3
                                                                        END) rn
        FROM  patient p
        JOIN  address a ON (p.patient_id = a.patient_id )
       WHERE NVL(valid_flg, 'X') != 'N'
         AND SYSDATE BETWEEN startdate AND  NVL(enddate, SYSDATE)
         )
    WHERE rn = 1; 
    
    PATIENT_ID FIRST_ LAST_ ADDRESS CITY   TY STARTDATE ENDDATE
    ---------- ------ ----- ------- ------ -- --------- ---------
             1 sanjay kumar 6222    dsadsa P  01-JAN-07 01-JAN-10
             2 ajay   singh fsdfsd  fsdfsd M  01-MAR-07 09-OCT-09
             3 Mike   John  asfd     sfds  D 01-FEB-08 10-OCT-09
    
  • Hello my name is dema yeshey and I forgot my apple that has been in icloud, please help me to get the ID that is used to connect ID?

    My Ipad series no is DL * 5YN

    IMEI: 355890067949300

    Product version: 13D 15

    Please help please me to get my apple ID and the last that I registered with an ID icloud. SOS

    Yeshey dema

    < personal information under the direction of the host >

    I want my Apple I D and I forgot the password.

    Help, please

  • Need help to write a MySQL query that returns only the peer matching records

    Because I don't know how to explain it easily, I use the table below as an example.

    I want to create a MySQL query that returns only the records that match counterparts where 'col1' = 'ABC '.

    Notice the ' ABC / GHI' record does not have a Counter-match ' GHI / ABC' record. This record must not be returned because there is no Counter-Party correspondent. With this table, the ' ABC / GHI' record should be the one returned in the query.

    How can I create a query that will do it?


    ID | col1 | col2
    --------------------
    1. ABC | DEF
    2. DEF | ABC
    3. ABC | IGS
    4. DEF | IGS
    5. IGS | DEF


    * Please let me know if you have no idea of what I'm trying to explain.

    I wanted to just the results where col1 = ABC, but I already got the answer I needed on another forum. Thank you anyway.

    SELECT a.col1,
    a.col2
    FROM table_name AS a
    LEFT OUTER
    Table_name JOIN b
    ON b.col1 = a.col2
    AND a.col1 = b.col2
    WHERE b.col1 IS NOT NULL AND a.col1 = 'ABC '.

  • Please help me with this SQL query

    I'm practicing of SQL queries and met one involving the extraction of data from 3 different tables.

    The three paintings are as below

    < pre >
    Country
    Location_id country
    LOC1 Spain
    loc2 England
    LOC3 Spain
    loc4 USA
    loc5 Italy
    loc6 USA
    loc7 USA
    < / pre >
    < pre >


    User
    user_id location_id
    loc1 U1
    loc1 U2
    loc2 U3
    loc2 U4
    loc1 U5
    U6 loc3
    < / pre >
    < pre >


    Publish
    user_id post_id
    P1 u1
    P2 u1
    U2 P3
    P4 u3
    P5 u1
    P6 u2
    < / pre >

    I am trying to write a SQL query - for each country of the users, showing the average number of positions

    I understand the logic behind all this that we must first consolidate all locations, and then the users in one country and then find the way to their positions.
    But, I'm having a difficulty to this format SQL. Could someone help me please with this request.

    Thank you.

    Select
    Country.Country,
    Count (*) Totalpostspercountry,
    Count (distinct post.user_id) Totaldistincuserspercountry,
    count (*) / count (distinct post.user_id) Avgpostsperuserbycountry
    Of
    countries, have, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    Country.country group

    The output is like this for your sample data - hope that's what you're looking for :)

    COUNTRY, TOTALPOSTSPERCOUNTRY, TOTALDISTINCUSERSPERCOUNTRY, AVGPOSTSPERUSERBYCOUNTRY
    In England, 1, 1, 1.
    Spain, 5, 2, 2.5.

  • my laptop came with windows media center vista 64-bit, please help to install the same OS that I don't have installation dvd or I restore partion work.

    I bought the laptop United States & the model no is Pavilion dv4-1120us. Pls help me to restore or to get my system back BONES & also let me know if I can upgrade to windows 7 or not, once I am able to recover my original OS.

    Hi Pavan,

    Please answer these questions so that we can properly diagnose the problem, and to help you, as a result.

    1. the operating system does not work properly? What exactly is the problem you are having?

    2 did you receive any disk partition recovery with the computer?

    I suggest you contact HP support to obtain the recovery partition disk and for aid to restore the computer to its factory settings.

    If you want to re - install Windows Vista, check out this link:

    Installation and reinstallation of Windows Vista
    http://Windows.Microsoft.com/en-in/Windows-Vista/installing-and-reinstalling-Windows-Vista

    If you want to upgrade to Windows 7, see these articles:

    Upgrading to Windows 7
    http://Windows.Microsoft.com/is-is/Windows7/products/upgrade

    Upgrade Windows Vista to Windows 7
    http://Windows.Microsoft.com/en-in/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7

    Please get back to us with the results.

     

    If you have questions about Windows operating systems, help us on this forum. We are happy to help you.

  • Please help Urgent. I just realized that my ESC key stopped working. Help, please

    I have a laptop Inspiron and I just realized that the ESC key no longer works in it. Come to think of it, I think that the problem has been there for several days, but I just realize

    Hello

    I suggest to see the steps in the link below and check if it helps.

    Check out the section from the link below:

    Troubleshooting a keyboard or a touchpad built in Notepad

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=277550#Issue0_0

  • Please help me fix this SQL query...

    Hi, please consider following:
    create table test (col varchar2 (255))
    insert into test values ("TERM").
    Insert test values ("VOLUME");

    Select the test pass where pass in ('TIME', 'VOLUME');
    This property returns the rows.

    but my input string is a comma-separated list:
    DURATION, VOLUME

    so I try
    Select the test pass where col to (replace (' DURATION, VOLUME, ',' "'," '));
    but no result. Or:
    Select the test pass where col in ("' | replace (' DURATION, VOLUME, ','" ', "') |") ') ;

    However
    Select "' | Replace (' DURATION, VOLUME, ',' "'," ') | " ' the double
    gives "DURATION", "VOLUME".

    then why does it work?

    hope you can help. Thank you

    convert stringlist in lines and then use in the clause...

    SELECT col
       FROM test
      WHERE col IN
      (SELECT    *
         FROM
        (SELECT TRIM( SUBSTR ( txt , INSTR (txt, ',', 1, level ) + 1 , INSTR (txt, ',', 1, level+1 ) - INSTR (txt, ',', 1, level) -1 ) ) AS token
           FROM
          ( SELECT ','||'DURATION,VOLUME'||',' AS txt FROM dual
          )
          CONNECT BY level <= LENGTH(txt)-LENGTH(REPLACE(txt,',',''))-1
        )
      )
    

    Ravi Kumar

  • Canon t5I - please help with what memory cards to use - was sold a UHS 700 x that says 120 MB/sec!

    EXACTLY what the memory card should I use in a new Canon Rebel T5i - there are 'TOO MANY TIPS'!

    I have a SanDisk I was going to use who says SDHC - UHS-1 16 GB up to 80 MB/sec 533 x.  I have another who said professional UHS 700 X - Ultra HD 4 K - 120 b/sec!   I DO NOT pull any clip or RAW... just regular shots, family, moving animals, jpegs.

    Can I use those who say 40-45 MG/S?  You can use a card of memory TOO QUICKLY and it can DAMAGE your camera, if you do?  I have a lot to learn for sure.  Thank you.

    SDHC 16 GB is fine for your use.

    More fast/more high capacity card will not damage the camera.

  • Please help, e by soving the query

    SQL > SELECT * FROM THE Department;

    DEPTNO DNAME LOC

    --------------------------------------------------------------------------------
    --------------
    --------------------------------------------------------------------------------
    50 SALES NEW DELHI
    10 ACCOUNTS NEW YORK
    SEARCH 20 DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON

    I WANT THE OUTPUT AS->


    Column name


    --------------------------------------------------------------------------------
    ACCOUNTING
    10
    NEW YORK CITY
    20
    SEARCH
    DALLAS
    CHICAGO
    SALES
    30
    BOSTON
    OPERATIONS
    40
    SALES
    50
    NEW DELHI

    Like this..

    SQL> with dep
      2  as
      3  (
      4     select row_number() over(order by deptno) rno, d.*
      5       from dept d
      6  )
      7  select 1 no, rno, to_char(deptno) colname from dep
      8  union all
      9  select 2 no, rno, dname from dep
     10  union all
     11  select 3 no, rno, loc from dep
     12  order by rno, no
     13  /
    
            NO        RNO COLNAME
    ---------- ---------- ----------------------------------------
             1          1 10
             2          1 ACCOUNTING
             3          1 NEW YORK
             1          2 20
             2          2 RESEARCH
             3          2 DALLAS
             1          3 30
             2          3 SALES
             3          3 CHICAGO
             1          4 40
             2          4 OPERATIONS
    
            NO        RNO COLNAME
    ---------- ---------- ----------------------------------------
             3          4 BOSTON
    
    12 rows selected.
    
  • Help: I deleted a numbers document that was in iCloud. Can I restore from a previous backup?

    I deleted a document my iCloud numbers. A backup ran yesterday. I can retrieve this document of the backup and if I can how?

    Thank you

    Documents in your iCloud drive are not part of a backup to iCloud - iCloud: overview of backup and storage iCloud

    If you have an iTunes backup, then use instead. If you have another device connected to the same iCloud account and it has not been used recently, you can try to disable the wifi on it and then see if the copy local caching of the document pages is always on this device. But if it has synchronized with iCloud drive because you have removed it from the document, then it will not be there.

  • SQL query takes too long to run (1 h 25 min)... pls help how to set up the query.

    Hello

    Could someone please help how to tune the query as its takes a long time to retrieve the results.

    Select

    col1,

    col2,

    col3,

    COL4,

    col5,

    col6,

    col7,

    COL8,

    col9,

    col10,

    Col11,

    col12,

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Of

    Table 1 - 13, 25, 99, 400 records

    Table2 - 13, 45, 1000 records

    Table 3 - 4, 50, 000 records

    Table 4 - 1,00,000 records

    table5 - 30 000 records

    where tabl1.col1 = table2.col2,

    Table1.Col1 = table3.col1.

    table2.col2 = table3.col2...

    Group

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Thank you

    Prasad.

    > Could someone please help how to tune the query as its takes a long time to retrieve the results.

    The query you posted is obviously fake.

    If you ask to give us a request that you do not post and we cannot see.

    For real?

  • I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    You are 100% sure that you are clicking to download the Mac version and not the version of Windows?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html
    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Query that needed help

    Hello
    I need help to form a query. I have two tables Support_issues and Support_comments with the information below.
    I want to create a query to view the account of the situation for the last 15 days until today.
    Sample Input data
    
    support_issues: 
    ISSUE_ID  ISSUE_DESC  CREATION_DATE  STATUS
    1          AAA        01/NOV/2011    Open
    2          BBB        02/NOV/2011    Closed
    3          CCC        02/NOV/2011    Open
    4          DDD        03/NOV/2011    Reopened
    5          EEE        03/NOV/2011    Reopened
    
    support_comments:
    COMMENT_ID  ISSUE_ID  COMMENT_DESC  STATUS  UPDATE_TIME
    101          1        aaa           Open    01/NOV/2011
    102          2        bbb           Open    02/NOV/2011
    103          2        bbbbbb        Closed  03/NOV/2011
    104          2        bbbb11        Reopened 03/NOV/2011
    105          3        ccc           Open     02/NOV/2011
    106          2        bbbbb         Closed   03/NOV/2011
    107          4        ddddd         Open     03/Nov/2011
    108          5        eeeee         Open     03/NOV/2011
    109          4        343434        Closed   06/NOV/2011
    110          4        dfdf          Reopened 07/NOV/2011
    111          5        dfdfdf        Closed   08/NOV/2011
    112          5        udehjk        Reopened 10/NOV/2011
    Sample output:
    
    DATE         Created   Reopened   Closed
    28/OCT/2011  0         0          0
    29/OCT/2011  0         0          0
    30/OCT/2011  0         0          0
    31/OCT/2011  0         0          0
    01/NOV/2011  1         0          0
    02/NOV/2011  2         0          0
    03/NOV/2011  2         1          2
    04/NOV/2011  0         0          0
    05/NOV/2011  0         0          0
    06/NOV/2011  0         0          1
    07/NOV/2011  0         1          0
    08/NOV/2011  0         0          1
    09/NOV/2011  0         0          0
    10/NOV/2011  0         1          0
    11/NOV/2011  0         0          0
    For "Created" count of status must be taken Support_issues table, for others it must be taken from table Support_comments.

    Please help me to form a query for this!

    Thank you
    Mukesh

    Hello

    Try the following query

    with t1 as
    (
    select to_char(sysdate-level+1,'dd-mm-yyyy') as date_range from dual where level<16 connect by sysdate-16
    

    Cannot test because I did not create, insert commands...

Maybe you are looking for