Calculation of measurement using the division and the instruction box

Hello Experts

I have a measure that calculates the percent of sales by State - "sale by States" / "Total sales" * 100 and the requirement is when the numerator of the measure is < 11 then it should be set to 0. I tried to write a next case statement case when sales by State < 11 THEN 0 ELSE sales by State / "Total sales" * 100. I get an error of syntax ideas how I can make it work.

Thank you
RC

RC,

It is always useful in the forum when you post your code and the associated error. Of what you provided; It seems that your case statement is missing from the end clause and it should look like this:

SELECT CASE
          WHEN sales_per_state < 11 THEN 0
          ELSE sales_per_state / "Total Sales" * 100
       END
  FROM your_table

Jeff

Tags: Business Intelligence

Similar Questions

  • How to use the instruction box in where clause

    Hi all


    I need to use cases where clause guide me please how I can do it.


    AND WHEN BOX: KAPCO = "KAPCO" THEN cla. CLASS_NAME LIKE '% KAPCO % '.
    WHEN: KAPCO = "NON_KAPCO" THEN SUPERIOR (cla. CLASS_NAME) NOT LIKE '% KAPCO % '.
    WHEN: KAPCO = 'ALL' GOLD: KAPCO IS NULL SO SUPERIOR (cla. CLASS_NAME) LIKE '% '.
    END



    Concerning

    Published by: user10941925 on March 4, 2012 22:31

    Hello

    CASE expressions return a single value, for example a VARCHAR2. They do refer to code fragments.

    You usually don't need (or want) an expression BOX in a WHERE clause, or any other condition. I think that you were trying to do the equivalent of:

    AND     (     (:KAPCO = 'KAPCO'          AND cla.CLASS_NAME       LIKE '%KAPCO%')     -- Don't you want UPPER on this line?
         OR     (:KAPCO = 'NON_KAPCO'           AND UPPER(cla.CLASS_NAME) NOT LIKE '%KAPCO%')
         OR     (NVL (:KAPCO, 'ALL') = 'ALL'       AND cla.CLASS_NAME IS NOT NULL)
         )
    

    If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from this data, I was able to test this.

  • I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    Yes. You may be victim of a scam, except if you are connected to your business with this requirement.

    Change your password immediately below:

    https://appleid.apple.com.

  • Use the Click Box several times

    Hi all

    I have seen several posts on very similar topics but I'm looking for advice on my particular problem. I have a slide that contains multiple images. I would like to have the learner click images and an explanation of the image both written and spoken. I finished this ok using the standard box click a speech of fixation to the legend of success on. I would like to provide several opportunities to see the content of the learner. Out of the box, click boxes seem to work only once. I saw a few other messages that refer to advanced actions and the ability to reset the time that the object was used. Can you please direct me to either a lesson on this particular issue, or post a solution here...? I discussed intensively on the internet and found nothing so far. I use 6 Captivate.  Thank you!

    Daniel

    Very well, if you think that this question is answered, could mark you like that?

    Lilybiri

  • Try to build the form using the check boxes - need help

    I am creating features using a region on the left to contain what I want (and it is stopped), an area on the right that contains all the rest I might add, with buttons in the middle to get things back (Add/Remove). I try to use the collections and APEX_ITEM. CHECKBOX and everything just do not have luck using the check boxes at all. Can someone tell me please a tutorial or an example that works in the way to read a collection by using the checkboxes and manipulate? Normally, I uses a FRONT of Validations process to update the collection with the changes that the user has provided, then follow up with any validations, then run any what DB written/modifications/deletions in a page AFTER VALIDATION process.

    Here's what I have so far:

    Area to the left (list of items already included in the package)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_CHKLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select a.ID, a.DOC_ORDER, a.DOC_PKG_ID, a.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_ASSIGN a, DOC_TYPE t
         where a.DOC_TYPE_ID = t.DOC_TYPE_ID
           and a.DOC_PKG_ID = :P182_PKG_ID
         order by a.DOC_ORDER;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_CHKLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_CHKLST'
    Area to the right (complete list of topics already in the package possibilities)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    --Prep collection
    ---------------------------------------------
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_TYPLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select 0, 0, :P182_PKG_ID, t.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_TYPE t
         where t.DOC_TYPE_ID not in (select DOC_TYPE_ID from DOC_ASSIGN
                where DOC_PKG_ID = :P182_PKG_ID)
           and t.DOC_TYPE_ID > 0;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_TYPLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_TYPLST';
    Process - before validation page:
     Update Collection
    ---------------------------------------------
    declare
      i pls_integer := 0;
    begin
      for c1 in (
        select seq_id from apex_collections
         where collection_name = 'DOCWIZ_CHKLST'
         order by seq_id) loop
        i := i+1;
        --CHKBX
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>1,p_attr_value=>wwv_flow.g_f02(i));
        --DOC_ORDER
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f04(i));
      end loop;
    end;
    If anyone has a better way of doing things, I'm ready for it. The standard tabular forms appear not to be the right thing, because there will be TWO shapes on the page, that's why I went with a collection.

    Hello

    I just have a quick look and see what you're trying to do.

    One thing, you might want to consider, is that you use to identify each item (those who become G_F01, G_F02 etc.), index numbers can be any number you like up to a maximum of 50. So, your region on the left could use numbers from 1 to 25 and those rights could use 26 to 50 - little matter if there are gaps in the numbers.

    I'm actually about to close for the day because he went from 19:00 here now, so can't not consider this news right now - but if the above does not do, just update the thread and I'll have another look tomorrow.

    Andy

  • WIN 7 cannot find cmd or command prompt on WIN 7. Using the search box

    Cannot find cmd or command prompt on WIN 7. Using the search box

    Shirley

    You do not search to access the command prompt. Select Start, all programs, accessories, right-click right-click command promptand click run as administrator on the menu drop down.

  • Problem with variable referencing of presentation (KEY Date) in the instruction box

    Hello

    I'm trying to reference variables of presentation created on a Date column in the instruction box to one of the columns in the query, as shown below:

    -case when '-citation details. "" "Created" between ' @{of} {1999-1-1}' and ' @{until} {2999-1-1} "then"-quote Metrics. " "" end of number of citations.

    I m getting a view displays error message with the following error message:

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 1861, message: ORA-01861: literal does not match the format string to the call of the OIC OCIStmtExecute

    SQL issued: SELECT "-quote Types '." Name of level 2 Saw_0', case when '-citation details. "" Created "between" 01/04/2009 ' and ' 15 / 04/2009 ' then '-quote Metrics ' "." number of citations"end saw_1"(unit) - CATALOGUE of quotes"WHERE"-citation details "". "" Date of creation"BETWEEN timestamp ' 2009-04-01 00:00:00 ' timestamp AND ' 2009-04-15 00:00:00 ' ORDER BY saw_0


    When I created the prompt on the date field, I put the following in the command prompt:
    Cast ("-time".) Day)

    When I apply a filter on the query using these variables, it works fine.

    If anyone has faced this kind of question earlier and have a resolution, please help me.

    Thank you
    Kitenge

    Hello.

    Select the double - A NON-VALIDE MONTHS TO_DATE('1999-1-1','mm/dd/yyyy')

    Try this:

    OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1999-1-1} ", mm/dd/yyyy)
    NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {01/01/1999} ", mm/dd/yyyy)

    and

    OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {2999-1-1} ", mm/dd/yyyy)
    NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1, 1, 2999} ", mm/dd/yyyy)

    and if not ok after that, after an error in query SQL of NQQuery.log.

    Kind regards

    Goran Ocko

    http://108obiee.blogspot.com/

  • Distinct count in the instruction box

    -------------------------------------------------------------------------------------------------
    SELECT A.P_ID,
    B.P_NAME,
    C.P_DESC,

    SUM (CASE
    WHEN A.DATE BETWEEN TRUNC (ADD_MONTHS (LAST_DAY (SYSDATE),-4) + 1) AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)),-1)
    AND A.M_ID IS NOT NULL
    THEN 1
    0 OTHERWISE
    END) AS COUNT,
    SUM (CASE
    WHEN A.DATE BETWEEN TRUNC (ADD_MONTHS (LAST_DAY (SYSDATE),-4) + 1) AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)),-1)
    AND A.M_ID IS NOT NULL
    THEN COUNT (DISTINCT A.M_ID)
    0 OTHERWISE
    END) AS UNIQUE_COUNT, / * is not possible * /.
    SUM (CASE
    WHEN A.DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)), - 1).
    THEN A.AMT_1
    0 OTHERWISE
    END) AS TOTAL_AMT_1,
    SUM (CASE
    WHEN A.DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)), - 1).
    THEN A.AMT_2
    0 OTHERWISE
    END) AS TOTAL_AMT_2

    FROM TABLE_A A,.
    TABLE_B B,.
    C TABLE_C


    WHERE A.P_ID = B.P_ID
    AND B.PT_ID = C.PT_ID
    A.P_ID GROUP,
    B.P_NAME,
    C.P_DESC

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

    Hello

    It is a simplified version of my request.
    I'm doing 4 things here,
    1. the County A.M_ID
    2 County has separate .M_ID, is where I have a problem.
    3 and 4. It is just the sum of 2 diff columns.

    Note that the dates for the County and the amt are different and I can't hard-code the.
    Can someone help me step of distinct count?
    This query runs also a bit slow.
    So all suggestions, comments are welcome.
    Note: TABLE_A REB 700 million, TABLE_B 4 million and TABLE_c is located only 500 RECS
    Thank you!

    Advantage of the fact that aggregate functions more ignore nulls, you could do something like:

    SELECT a.p_id, b.p_name, c.p_desc,
           COUNT(CASE WHEN a.date BETWEEN TRUNC(ADD_MONTHS(LAST_DAY(sysdate),-4) + 1) AND
                                          ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) AND
                           a.m_id IS NOT NULL THEN m_id END) AS countall,
           COUNT(DISTINCT CASE WHEN a.date BETWEEN TRUNC(ADD_MONTHS(LAST_DAY(sysdate),-4) + 1) AND
                                        ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) AND
                         a.m_id IS NOT NULL THEN a.m_id END) AS unique_count, /* entirely possible */
           SUM(CASE WHEN a.date BETWEEN TRUNC(sysdate,'YEAR') AND
                                        ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) THEN a.amt_1
                    ELSE 0 END) AS total_amt_1,
           SUM(CASE WHEN A.DATE BETWEEN TRUNC(sysdate,'YEAR') AND
                                        ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) THEN A.AMT_2
                    ELSE 0 END) AS TOTAL_AMT_2
    FROM table_a a, table_b b, table_c c
    WHERE a.p_id = b.p_id and
          b.pt_id = c.pt_id
    GROUP BY a.p_id, b.p_name, c.p_desc
    

    The two statements inside the COUNTY box return a.m_id or NULL. A simplified test case is:

    SQL> WITH t as (
      2     SELECT 1 m_id, 9 dt FROM dual UNION ALL
      3     SELECT 1 m_id, 6 dt FROM dual UNION ALL
      4     SELECT 2 m_id, 9 dt FROM dual UNION ALL
      5     SELECT 2 m_id, 6 dt FROM dual UNION ALL
      6     SELECT 1 m_id, 5 dt FROM dual UNION ALL
      7     SELECT 2 m_id, 5 dt FROM dual UNION ALL
      8     SELECT null m_id, 9 dt FROM dual)
      9  SELECT count(CASE WHEN dt BETWEEN 6 and 9 THEN m_id end) cid,
     10         count(distinct CASE WHEN dt BETWEEN 6 and 9 THEN m_id end) cdid
     11  FROM t;
    
           CID       CDID
    ---------- ----------
             4          2
    

    I'm not entirely sure that you really need the IS NOT NULL predicate a.m_id in the instructions BOX, but I left it for more security.
    John

  • Using InDesign CC 2015, how can I change the units of measure in the dialog box new document? I want inches and metrics.

    How can I change the units of measure in the area of implementation of the new Document? I want inches and metrics.

    Preferences / units and increments.

    If you set this with no documents open, it will be the default for all new documents (new, not existing).

    The next time you create a new document, you can also see this change in the new document set up.

  • Capture TV programs via the cable using the cable box and card Hauppauge

    I was doing fine record TV unencripted signal until comcast sent me a box of small encriptación. I have no problem with the help of the box to see the TV programs on a TV, but I can't get the Huappauge card to recognize the signal from the comcast box. I recognize the signal (without going through the box) an antenna that I decked out, but I can't work with the IR signal from the box that changes channels.  I have the cable extension IR remote with comcast box and also have an extension remote IR provided with the computer/hauppauge card.  It doesn't seem to be an outlet on the map, but there are three locations on the computer that are identified as IR Device Manager lists a Hauppauge Comsumer s infrared receiver and an infrared transceiver Microsoft e-Home installed without any indication of error.

    How can I get all those guys to play as a team, so I can schedule recording of TV programs again?

    CheckSix

    Photoray002;

    The Hauppauge WinTV HVR-1290 sends finally channel change commands TV Comcast decoder box and it is now possible to program the recorder.  I think that the main problems were a failure remote control Hauppauge and a very low external receiver.  It could also have been a few taken IR on the computer that could have internal corrosion of three years of inactivity.

    I found two sites that have helped significantly:

    http://support.HP.com/us-en/document/c01744910

    This site showed that the jury of IR extension on the back of the computer could be one of two different configurations - with and without electronics on the expansion card.  He had to open the case to determine where the design has been installed.  Mine was no electronics, but the indications I had followed guess an electronic sign.

    http://www.Hauppauge.com/site/support/support_faq_irblaster.html

    This site goes into detail about the implementation of the system using a set-top box.  I couldn't always installation to work because the statement strongly relied on the Hauppauge remote control.  But I noticed in the comments to the screen, another way to use the keyboard rather than the Hauppauge remote control.  Better easier to identify the box system is the first option.  The program will redirect you to point the remote very close to Comcast (touch) to the external IR receiver and press a particular key.  If the receiver receives the signal, it will be a very small red light flashes in the receiver. You may need to move the remote to the receiver to get this light. Once the box is identified the process of implementation of the signal is simple although there will be a lot of channels identified.  You can uncheck the channels that you don't want or you can deselect all channels and the select only the channels you want.

    Thank you for your help. He made me go in the right direction.

    CheckSix

  • Buttons and version 5.5 using the Click Box

    Using Captivate 5.5, in the same blade I try to use a box click to access a URL, but also to pause the slide with a button continue. When the click is selected, the URL is displayed, but the Captivate project moves to the next slide. My goal is to have the project on hold and require the participant to click continue to go to the next slide.

    With the above said, if I deselect the option to continue playing the project on the click box, continue it button does not appear.

    Can anyone help?

    Hello again

    With my suggestion, the script might look like this:

    Click on the image to enlarge

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Calculation of income using the income opportunity

    Hi all

    I created a field cusotom on the opportunity, I want to populated the value as the result of the period possibility back / # (it is the sum of all the detail page opportunitied product opportunity). Now, my question is how to get the value of the period of income page product opportunity. Please could you suggest on this.

    Thanks and greetings
    Olivier

    Hello

    According to the suggestion try using the function julian, hope works.
    See you soon
    Olivier

  • Problem with calculation of measurement using instruction box

    Hello Experts

    I have a measure that calculates the percent of sales by State - "sale by States" / "Total sales" * 100 and the requirement is when the numerator of the measure is < 11 then it should be ' *'. I tried to write a next case statement case when sales by State < 11 THEN ' *' ELSE sales by State END / "Total sales" * 100. I get an error saying incompatibility of data type of ideas how I can make it work.

    Thank you
    RC

    Published by: user1146711 on July 12, 2012 07:39

    Published by: user1146711 on July 12, 2012 09:17

    Hi RC,.

    I used to have the same than the one that I solved it using the following statement hope, that it will aid.

    BOX WHEN ((ARRAY. NUMERATORCOLUMN< 11))="" then="" '*'="" else="" concat(cast(round((((numerator="" column)/(denominator="" column))*100),1)="" as="" char(50)),'%')="">

    Here the results of instruction box in the two values is * Alternatively, value (which is stored as varchar instead of the number data type).
    Have, so the results are varchar. you get no data type mismatch error.

    That, by your statement the case... A case get varchar and another survey number which is the offset. (Logic)

    I have concatenated with the '%' sign to show results under 15%, 16% and stores the same results (Varchar).

    I hope that this solves your problem. Please, attribute points. :) :)

    Let me know, if you still find problems.

  • using the function min() inside the instruction box

    I have a problem with the following select statement

    Select
    patient_id
    , sum (case when ch.cancer_site_id in ('3', ' 39 ', ' 12') and min (ch.diagnosis_age) < 40 0' then '1' other ' end) in breast cancer
    Of...
    Patient_id group

    I get an error "not a single group group function.


    The main table, that I work with is so implemented.

    PatientID | diagnosis_age | cancer_site_id

    12345678 | 35. 4
    12345678 | 40. 4
    12345678 | 42. 12
    12345678 | 34. 31
    87654321 | 50. 12

    cancer_site_ids 4 and 31 must get grouped together and called breast cancer. cancer_site_id 12 (and others) is cancer of the colon.

    Finally I need the output to look like this

    PatientID | min (breast_diagnosis_age) < 40 | min (breast_diagnosis_age) > 40 | min (colon_diagnosis_age) > 40
    -------------------------------------------------------------------------------
    12345678 | 1. 0 | 1
    87654321 | 0 | 0 | 1

    My final request is much more complicated than that, but it's the last part that I can't understand.

    Hello

    Welcome to the forum!

    You can use the analytic MIN function to get the earlier diagnosis_age.
    Analytical functions are calculated after aggregation functions. If you use the aggregate functions to rotate the data, this means that you need to calculate the minimum age in a subquery and do all aggregates in the main query.
    I mean, it is something like this:

    WITH     got_min_diagnosis_age     AS
    (
         SELECT     patiendid
         ,     MIN (diagnosis_age) OVER ( PARTITION BY CASE
                                            WHEN  cancer_site  IN (4, 31)
                                            THEN  'breast'
                                                WHEN  cancer_site  IN (3, 12, 39)
                                            THEN  'colon'
                                                       END
                              )     AS diagnosis_age
         ,     CASE
                  WHEN  cancer_site  IN (4, 31)     THEN  'breast'
                  WHEN  cancer_site  IN (3, 12, 39)     THEN  'colon'
              END     AS type
         FROM    table_x
    )
    SELECT       patientid
    ,       COUNT ( CASE
                   WHEN  type = 'breast'
                   AND   min_diagnosis_age <= 40
                   THEN  1
                  END
                )     AS breast_up_to_40_cnt
    ,       COUNT ( CASE
                   WHEN  type = 'breast'
                   AND   min_diagnosis_age >  40
                   THEN  1
                  END
                )     AS breast_over_40_cnt
    ,       COUNT ( CASE
                   WHEN  type = 'colon'
                   AND   min_diagnosis_age >  40
                   THEN  1
                  END
                )     AS colon_over_40_cnt
    FROM      got_min_diagnosis_age
    GROUP BY  patientid
    ORDER BY  patientid
    ;
    

    You can also calculate type in a subquery, then use it to calculate the min_diagnosis_age for the type in a second subquery. If the expression to get type is much more complicated in reality that it is in this small sample, which can be better.

    Published by: Frank Kulash, November 3, 2010 15:00

    You have a cancer_site table, that is, a table that has one line for each valid value of cancer_site (3, 4, 12,...)?
    If so, you need to add a column to this table to indicate what kind of cancer, each site is associated. You could join this table in the subquery, rather than using CASE expressions. The fact that 4 of the site is associated with breast cancer is the type of information that belongs to a table, not hardcoded in a query.
    If you do not have a cancer_siote table, thus creating one can be a good idea.

  • The DV6 DV6-6131us-6150us using the same box?

    I recently purchased a DV6-6131us to Fry. I am very happy with it and have decided to make a few adaptations. I intend to buy a sticker for her to skinit.com, but I can't find the 6131 on their list. I is however listed 6150 and looks like he's using the same 'case' as the 6131. I wonder if they do not have the same dimensions. If they do, I can simply use the 6150 to buy my sticker. any help with this would be greatly appreciated.

    Hello
    Welcome to the HP Forum!

    Tithe wrote:

    I recently purchased a DV6-6131us to Fry. I am very happy with it and have decided to make a few adaptations. I intend to buy a sticker for her to skinit.com, but I can't find the 6131 on their list. I is however listed 6150 and looks like he's using the same 'case' as the 6131. I wonder if they do not have the same dimensions. If they do, I can simply use the 6150 to buy my sticker. any help with this would be greatly appreciated.

    They are the same with only minor variations. The differences are the color and material (plastic/aluminium) to the lower part and external coating outside LCD display.  The specifications of your laptop show that your notebook has an AMD processor with an aluminum housing, there is a special part for that one number. I contact skinit.com before ordering and ask them. There is a entry form at skinit.com where you can suggest to your laptop must be cut to order.

    Kind regards
    ERICO

Maybe you are looking for

  • Upgrading CPU for Satellite L500-128

    I have a 4-5 year old Toshiba L500-128 and I would like to upgrade the processor. ATM I have a Core 2 Duo T6500. I know that I can put a T9500 inside, but if possible I would ask a better. So I have a few questions: (1) can I put a CPU with front sid

  • Blue screen Vista sp2

      Signature of the problem: Problem event name: BlueScreen The system version: 6.0.6002.2.2.0.768.3 Locale ID: 2057 More information about the problem: BCCode: 7f BCP1: 00000000 BCP2: 00000000 BCP3: 00000000 BCP4: 00000000 OS version: 6_0_6002 Servic

  • Windows error host process (rundll32)

    in my pc this error on windows host process (rundll32) comes when I start my computer and internet explore. Please help me how to solve this problem.

  • Desktop OptiPlex 9020 8.1 of Windows x 64

    I just installed Windows 8.1 x 64 on an OptiPlex 9020 and had graphics using IE11 display problems using the latest drivers from Dell.  The problem was that graphics had a large "X" on the whole of the image. I was using these drivers: Intel 9.18.10.

  • Laserject 1606dn error, "connection error. Check the internet connection. "during activation ePrint

    I try to turn on my LJ 1606dn ePrint. I downloaded and installed the firmware and that is okay. I went to the Web Services tab to get the code to register the printer. When I click on 'Activate' in the ePrint section, I get the error, "connection err