Can any body explain me this query?   select 'alter index '||index_name||' monitoring usage' as index_monitor from user_indexes where index_name='EMP';

Initially i've a put an index of emp table in monitoring state..
later i've got this query
select 'alter index '||index_name||' monitoring usage' as index_monitor from user_indexes where index_name='EMP';
can any body explain me what is the meaning of this query...
and how do that query in the strings of projection area works....
i'm totally confused
thank you in advance.

This is referred to as SQL generating SQL.  It is most useful when you  need to generate SQL statements for all indexes or indexes for one user.  After generating the text you then would execute it in SQLPlus or the tool of your choice.  If you combine this with a spool statement, SPOOL MyGeneratedScript.SQL you can run it with @MyGeneratedScript in SQLPlus.  I combine this into a script which generates the file, calls the editor so you can look it over and then executes it.  Here is an example of moving indexes to a different tablespace.
-- UTL_Move_Indexs_To_New_TableSpace_Script.SQL
/* This script will grab all the tables out of the specified source tablespace
** and move them into the specified target tablespace.  Ensure the the target
** exists and has sufficient room.  You must be logged in as the table owner.
ACCEPT v_source_tablespace_name PROMPT 'Enter source tablespace name: '
ACCEPT v_target_tablespace_name PROMPT 'Enter target tablespace name: '
SET HEADING OFF
SET FEEDBACK OFF
SET TERMOUT OFF
SET ECHO OFF
SPOOL _move_index.SQL
SELECT    'ALTER INDEX '
       || ndx.owner
       || '.'
       || ndx.index_name
       || CHR (10)
       || 'REBUILD '
       || CHR (10)
       || 'TABLESPACE '
       || UPPER ('&v_target_tablespace_name')
       || ';'
         sql_statement
FROM   dba_indexes ndx
WHERE      ndx.tablespace_name = UPPER ('&v_source_tablespace_name')
       AND ndx.index_type <> 'LOB'
ORDER BY ndx.owner,
         ndx.index_name;
SPOOL OFF
--Edit the move script
EDIT _move_index
--Reset parameters.
SET TERMOUT ON
PAUSE Hit Ctrl+C to ABORT, any key to CONTINUE,
-- Run the move script
SPOOL  Move_Indexs_To_New_TableSpace.LOG
@_move_index
SPOOL OFF
--Reset parameters.
SET TERMOUT on
SET FEEDBACK on
SET HEADING on
Marcus Baocn

Similar Messages

  • CAN ANY BODY EXPLAIN THESE QUESTIONS, VERY URGENT

    WHAT IS THE USE OF CHAPTER ID, IN CHAPTER ID RATES    WILL  BE   DETERMINES.
    HOW MANY TAX CODES NEED CST, LST.
    WHERE CAN I SEE EXCISE REGISTER
    WHAT IS MEANT BY RG1 CAN ANY BODY EXPLAIN BRIEFLY, WHAT IS THE USE OF RG1
    HOW DO I GET OPENING BALANCE FOR EVERY MONTH.
    IN DEPOT SALES, IF CREATING  EXCISE INVOICE A CERTIFICATED WILL ISSUE, IN A CERTIFICATE WHICH FIELDS WILL BE THERE.
    WHAT IS MEANT BY JURISDICTION CODE & COUNTY CODE.
    IN SD FACTORY SALES WHICH A/C ENTERIES GENERATED.
    CAN ANY BODY EXPLAIN THESE FORMS, WHICH SITUATION THESE FORMS WE ARE USING.  I NEED VERY URGENT.
    a) A form
    b) D form
    c) C form
    d) H form
    e) DDP form
    f) TR6 form
    g) D3 form.
    H) ARE.
    I) ARE 1
    j) ARE 2
    IN DEPOT SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES  WILL COME,
    IN FACTORY SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES WILL COME
    NOW WHAT IS THE VAT TAX.
    what is the use of common distribution channel and common divisions
    PLS FORWARD ANSWERS TO THIS MAIL ID.
    i hope that definitely people will help
    thanks every body.

    Dear vara prasad
    You can take it for granted if you post so much questions in one thread like this, nobody will answer / clarify you.
    So please make one thread per question.
    Meanwhile, just I would like to clarify for few questions
    1)  The most important feature of chapter id is that based on this chapter id which you maintain in "Excise Tax Rate",  all your excise tax rates will be flowing into your sale order / billing
    2) If the rate of tax differs, then you need to maintain a separate tax code.  For example, the LST / VAT in some state is 4%, and in some state it is 12%.  So in this case, you need to maintain two tax codes
    thanks
    G. Lakshmipathi

  • Hi,  can any body explain the concept of UTILIZATION IN EXCISE

    hi,
    sap gurus,
    can any body explain the concept of Utilization in excise,  if possible send me the documentation
    part of that please.
    please explain me on this also
    in direct factory sales from direct factory to customer how utilisation works
    in depot sales: first material has to reach from factory to depot and then it has to be passed to
    customer then in this situation  how utilisation works in SAP.
    regards,
    balaji.t

    Dear balaji
    Export under Rebate is the procedure in which the exporters first pay the central excise duty before clearing the goods from the factory and subsequently get it back by applying for rebate after the goods are exported.  They have to apply to the Division or to the Maritime Commissioner (designated exclusively to look after all Export related issues) as the case may be, along with the required documents (usually the Export Promotion copy of the Shipping Bill and Bill of Lading) to prove that their goods had actually been exported.  
    Rebate can be claimed for both the inputs (purchased from indigenous markets and used in the manufacture of exported goods) as well as for the final products.  Normally, rebate is being widely opted by non-excise assessees (for example garment exporters) who procure raw materials locally, manufacture their final products and export them.   It is similar to Drawback of Customs duties in respect of Imported raw materials. 
    From SD side, you have to make settings in Logistics-General --> Tax on Goods Movements --> India --> Business Transactions --> Outgoing Excise Invoices --> Maintain Default Excise Groups and Series Groups.
    Here for the combination of sales area, shipping point, plant, excise group and series group, you have to maintain Export type [N under the tab Export]
    thanks
    G. Lakshmipathi

  • Can any body explain the STO Process

    hi,
    sap gurus,
    good morning to all,
    can any body explain the PLANT to STORAGE LOCATION stock transfer single and two
    stepProcess in detail.
    regards,
    balaji.t
    09990019711.

    Hi,
    Stock Transfer Between Plants in One Step
    Use
    This type of stock transfer can only be carried out in Inventory Management. Neither Shipping in the issuing plant nor Purchasing in the receiving plant is involved in the process.
    Transferring stock in one step has the following characteristics:
    The stock transfer is entered as a transfer posting in Inventory Management.
    The transfer posting can be planned by creating a reservation.
    The quantity of the stock transferred is posted immediately from the unrestricted-use stock of the issuing plant to the unrestricted-use stock of the receiving plant
    The transfer posting is valuated at the valuation price of the material in the issuing plant.
    If the plants involved belong to different company codes, the transfer between plants is also a transfer between company codes. In this case, the system creates two accounting documents for the transfer posting. The stock posting is offset against a company code clearing account.
    Stock Transfer Between Plants in Two Steps
    Use
    This type of stock transfer can only be carried out in Inventory Management. Neither Shipping in the issuing plant nor Purchasing in the receiving plant is involved in the process.
    The stock transfer includes the following processes:
    A goods issue in the issuing plant
    A goods receipt in the receiving plant
    Transferring stock in two steps has the following characteristics:
    The transfer posting cannot be planned by creating a reservation.
    The quantity posted from stock is first of all managed as stock in transfer in the receiving plant. Only once the goods receipt has been posted is the quantity posted to the unrestricted-use stock of the receiving plant.
    This enables the quantity "on the road" to be monitored.
    The transfer posting is valuated at the valuation price of the material
    pl check for more info [STO|http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b90dc43ad11d189410000e829fbbd/content.htm]
    regards
    sadhu kishore

  • Can any body explain real time confiruration in sd,mm module plssssssss

    can any body explain real time confiruration in sd,mm module plssssssss

    SD MM
    Flow of SD & MM
    SD and MM Flow with diagrams
    bussiness flow of sd and mm
    sd and mm flow
    SD FLOW AND MM FLOW
    Re: reg : document flow for SD and MM ?
    http://www.sapgenie.com/abap/tables_sd.htm
    Please check this SD online documents.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCSD/CAARCSD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_SD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSD/BCBMTWFMSD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLISPLN/LOLISPLN.pdf
    Also please check this SD links as well.
    Rewards if useful.........
    Minal
    http://help.sap.com/saphelp_47x200/helpdata/en/92/df293581dc1f79e10000009b38f889/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/dd/55f33e545a11d1a7020000e829fd11/frameset.htm
    http://www.sap-basis-abap.com/sapsd.htm
    http://www.sap-img.com/sap-sd.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    http://searchsap.techtarget.com/featuredTopic/0,290042,sid21_gci961718,00.html
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/SD_tutorial.html
    All help ebooks are in PDF format here
    http://www.easymarketplace.de/online-pdfs.php
    for mm
    http://www.sapgenie.com/abap/tables_mm.htm
    http://www.sap-img.com/sap-download/sap-tables.zip
    http://www.allsaplinks.com/material_management.html
    http://www.training-classes.com/course_hierarchy/courses/2614_SAP_R_3_MM_Invoice_Verification_-_Rel_4_x.php
    http://www.sapfriends.com/sapstuff.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSMAT/PSMAT.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCMM/CAARCMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_MM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOMDMM/LOMDMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMMM/BCBMTWFMMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMIVMVAL/MMIVMVAL.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMWMLVS/MMWMLVS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMISVE/MMISVE.pdf

  • Can any body explain me JSF Page Life Cycle?

    Hello All
    Can any body explain me JSF Page Life Cycle?
    I wanted to know basically following few things
    1. how the JSF component will be rendered to html
    2. How the ValueBinding and MethodBinding mechanish works
    3. On conditional situation, if we need to generate the page dynamically with the various components, then what is the role of ValueBinding mechanism?
    4. What happens once the page is rendered?? In other words, does the FacesContext instance holds the object information in cache or sends it to garbage collector??
    5. Other than ValueBinding mechanism does we have any other procedures to bind the beans to components , when dynamic controls generation situation arises??
    Thanks
    Sudhakar Chavali

    Thanks Giri, for your continuous support
    Basically I get these doubts because I am not able to get right response from Java Server Faces when I communicate between Non_JSF and Jsf Pages
    please have a look on following links. Where I need your support
    http://swforum.sun.com/jive/thread.jspa?threadID=54347&messageID=208120#208120
    http://swforum.sun.com/jive/thread.jspa?threadID=54379&messageID=208222#208222
    Thanks
    Sudhakar

  • Can any body explain the process of "how to sell the goods under loan"

    hi,
    sap gurus,
    can any body explain the process of "how to sell the goods under loan"
    and its further process.
    regards,
    balaji.t
    09990019711

    Hi,
    I didnt get your question fully, but
    Please refer the folowing link
    http://help.sap.com/saphelp_banking463/helpdata/en/09/7cba34e465b73ee10000009b38f83b/frameset.htm
    Thanks,
    Raja

  • Can any body explain me what is " silos"

    hi
    can any body explain me what is " silos"
    akhil

    Hi Akhil,
    Please go through these links:
    1. An information silo is a management system incapable of reciprocal operation with other, related management systems. A bank's management system, for example, is considered a silo if it cannot exchange information with other related systems within its own organization, or with the management systems of its customers, vendors or business partners. "Information silo" is a pejorative expression that is useful for describing the absence of operational reciprocity. Derived variants are "silo thinking", "silo vision", and "silo mentality".
    http://en.wikipedia.org/wiki/Information_silo
    2. Storage silos are structures for storing bulk materials. Silos are used in agriculture to store grain (see grain elevators) or fermented feed known as silage. Silos are more commonly used for bulk storage of grain, coal, cement, carbon black, wood chips and sawdust.
    Three types of silos are in widespread use today:
    1.Tower silos
    2. Bunker silos
    3. Bag silos
    http://en.wikipedia.org/wiki/Storage_silo
    3. http://blogs.ittoolbox.com/crm/cdi/archives/master-data-silos-and-rocknroll-7686
    4. Get in-depth insights into Application Silos!
        View as PDF
    http://manageengine.adventnet.com/products/applications_manager/application-silos.html
    Please rewards if found helpful.
    Regards,
    Alok Sharma

  • Can any body please read this and ans me

    hi all,
    can any body please read this and tell is there any function module or some other thing is available.
    Material masters are location specific, and Progistix maintains part details in Canadian $, now we need to get the logic how SAP converts the standard cost of the material from Canadian $ to US $
       The plant number of Canada is 3002.

    Hi
    you would have to use the following function modules
    CONVERT_TO_LOCAL_CURRENCY
    CONVERT_TO_FOREIGN_CURRENCY
    regards
    Dinesh

  • Can any body explain about financial accounting (FI) and ...........

    hi,
    sap gurus,
    can any body send config steps from where we have to start in FI CO module.
    id is timmampalliatgmaildotcom
    regards,
    balaji.t
    09990019711.

    hi Balaji,
    You can find very helpful information at the following address
    http://www.sapdb.info/category/finance/
    thanx
    vijay

  • Can you please explain how this query is fetching the rows?

    here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
    SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
    WHERE P1.SAL >= P2.SAL
    GROUP BY P2.SAL
    HAVING COUNT (DISTINCT P1.SAL) <=3 ;
    here is the data i used :
    SQL> select * from psal;
    NAME SAL
    able 1000
    baker 900
    charles 900
    delta 800
    eddy 700
    fred 700
    george 700
    george 700
    Regards,
    Renu

    ... Please help me in understanding the query.
    Your query looks like anything but a Top-N query.
    If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
    Given below is some brief information on the same:
    test@ora>
    test@ora> --
    test@ora> -- Query 1 - using the non-equi (theta) join
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
    12         p2.NAME AS p2_name
    13    FROM psal p1, psal p2
    14   WHERE p1.sal >= p2.sal;
        P1_SAL P1_NAME     P2_SAL P2_NAME
          1000 able          1000 able
          1000 able           900 baker
          1000 able           900 charles
          1000 able           800 delta
          1000 able           700 eddy
          1000 able           700 fred
          1000 able           700 george
          1000 able           700 george
           900 baker          900 baker
           900 baker          900 charles
           900 baker          800 delta
           900 baker          700 eddy
           900 baker          700 fred
           900 baker          700 george
           900 baker          700 george
           900 charles        900 baker
           900 charles        900 charles
           900 charles        800 delta
           900 charles        700 eddy
           900 charles        700 fred
           900 charles        700 george
           900 charles        700 george
           800 delta          800 delta
           800 delta          700 eddy
           800 delta          700 fred
           800 delta          700 george
           800 delta          700 george
           700 eddy           700 eddy
           700 eddy           700 fred
           700 eddy           700 george
           700 eddy           700 george
           700 fred           700 eddy
           700 fred           700 fred
           700 fred           700 george
           700 fred           700 george
           700 george         700 eddy
           700 george         700 fred
           700 george         700 george
           700 george         700 george
           700 george         700 eddy
           700 george         700 fred
           700 george         700 george
           700 george         700 george
    43 rows selected.
    test@ora>
    test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
    - Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
    - Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
    - Row 3: 7 times again... and so on.
    - So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
    test@ora>
    test@ora> --
    test@ora> -- Query 2 - add the GROUP BY
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p2.sal AS p2_sal,
    12         COUNT(*) as cnt,
    13         COUNT(p1.sal) as cnt_p1_sal,
    14         COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
    15         MIN(p1.sal) as min_p1_sal,
    16         MAX(p1.sal) as max_p1_sal
    17    FROM psal p1, psal p2
    18   WHERE p1.sal >= p2.sal
    19  GROUP BY p2.sal;
        P2_SAL        CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
           700         32         32               4        700       1000
           800          4          4               3        800       1000
           900          6          6               2        900       1000
          1000          1          1               1       1000       1000
    test@ora>
    test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
    So, the last 3 rows are the ones you are interested in, essentially. As follows:
    test@ora>
    test@ora> --
    test@ora> -- Query 3 - GROUP BY and HAVING
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p2.sal AS p2_sal,
    12         COUNT(*) as cnt,
    13         COUNT(p1.sal) as cnt_p1_sal,
    14         COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
    15         MIN(p1.sal) as min_p1_sal,
    16         MAX(p1.sal) as max_p1_sal
    17    FROM psal p1, psal p2
    18   WHERE p1.sal >= p2.sal
    19  GROUP BY p2.sal
    20  HAVING COUNT(DISTINCT p1.sal) <= 3;
        P2_SAL        CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
           800          4          4               3        800       1000
           900          6          6               2        900       1000
          1000          1          1               1       1000       1000
    test@ora>
    test@ora>
    test@ora>That's what you are doing in that query.
    The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
    A much simpler query is as follows:
    test@ora>
    test@ora>
    test@ora> --
    test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT sal
    12  FROM (
    13    SELECT sal
    14      FROM psal
    15    ORDER BY sal DESC
    16  )
    17  WHERE rownum <= 3;
           SAL
          1000
           900
           900
    test@ora>
    test@ora>
    test@ora>And for Top-3 distinct salaries:
    test@ora>
    test@ora> --
    test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT sal
    12  FROM (
    13    SELECT DISTINCT sal
    14      FROM psal
    15    ORDER BY sal DESC
    16  )
    17  WHERE rownum <= 3;
           SAL
          1000
           900
           800
    test@ora>
    test@ora>
    test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
    RANK:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
    DENSE_RANK:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
    HTH
    isotope

  • Can any one help with this query please

    I have a table something as below
    Things_t
    Things Characteristic Char Value
    Item 1 Colour Red
    Item 1 Packaging
    Item 2 Shape Square
    Item 2 Brand Spunk
    Now i want to reterive an item with none of its char values as Null. Using the query “ select distinct things from things_t where char value is Null ” will fetch the item 1 also together with item 2. i want to fetch a record from thing for which none of the char values are Null such as Item 2. Can you please help me with this query.

    Try this:
    WITH t AS
    (SELECT 1 item_id, 17436 chr_id, 14225034 chr_val_id FROM dual UNION
    SELECT 1 item_id, 39 chr_id, 14276173 chr_val_id FROM dual UNION
    SELECT 1 item_id, 17774 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 1 item_id, 265 chr_id, 20502978 chr_val_id FROM dual UNION
    SELECT 1 item_id, 16978 chr_id, 797233 chr_val_id FROM dual UNION
    SELECT 1 item_id, 13092 chr_id, 5666917 chr_val_id FROM dual UNION
    SELECT 1 item_id, 15228 chr_id, 1209758 chr_val_id FROM dual UNION
    SELECT 2 item_id, 112 chr_id,  12705342 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6945 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 70 chr_id, 12597376 chr_val_id FROM dual UNION
    SELECT 2 item_id, 16832 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 7886 chr_id, 9588619 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6986 chr_id, 2659351 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9531 chr_id, 8910943 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9798 chr_id, 8717531 chr_val_id FROM dual UNION
    SELECT 3 item_id, 17446 chr_id, 12266441 chr_val_id FROM dual UNION
    SELECT 3 item_id, 4830 chr_id, 13683090 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9518 chr_id, 834772 chr_val_id FROM dual UNION
    SELECT 3 item_id, 11031 chr_id, 20233753 chr_val_id FROM dual UNION
    SELECT 3 item_id, 12564 chr_id, 2282478 chr_val_id FROM dual)
    SELECT DISTINCT item_id
    FROM   t
    MINUS
    SELECT DISTINCT item_id
    FROM   t
    WHERE  chr_val_id IS NULLOr this:
    SELECT item_id
    FROM  (SELECT   item_id,
                    MIN(NVL(chr_val_id, -1)) min_chr_val_id
           FROM     t
           GROUP BY item_id)
    WHERE  min_chr_val_id != -1Edited by: lee200 on Oct 15, 2012 9:22 AM

  • Can any body explain this for loop

    public void trymethod(){
    int i =0;
    for ( foo('A'); foo('B')&&(i<2); foo('C')){
    i++ ;
    foo('D');
    static boolean foo(char c) {
    System.out.print(c);
    return true;
    }The program runs fine but If I return a char from 'foo()' it does not compile.

    The second clause in your for loop declaration uses boolean logic (if this do that, etc). Once foo is returning a character, it's no longer returning a boolean so the result can't have boolean logic applied to it
    Don't ask me how to fix it, I have no idea what you're trying to do!

  • CAN ANY BODY EXPLAIN ABOUT "PROCESS DEFAULT" IN SSAS PROCESSING OPTIONS

    Hi, i am working with SQL Server 2008R2.
    working for SSAS Tuning. 
    I want to Know about "PROCESS DEFAULT" option, whether it calculates the aggregations on Measure groups and Dimensions for both or not.
    Please explain me about this Option in detail..
    SUPRAJA'S

    "Default" processing is mainly useful during development, when you tend to change structures of objects of the cube, but the data content does not change. Then it optimizes processing, only processing the parts of the cube affected by the structural
    change.
    Default processing detects the state of all objects like dimensions, cubes, measure groups, partitions, aggregations. The state can be any of processed, unprocessed, or partly processed. Process default brings the partly or unprocessed objects to processed
    state. It does not check if any data has changed on the relational data source, it just checks the state of the objects in the database.
    An object can get to unprocessed state in one of the following ways:
    If you newly create it.
    If you change the objects structure. making sub objects just visible or invisible does not change the structure, nor does renaming sub objects in most cases, but adding or removing sub objects does.
    If you explicitly unprocess it (using the Unprocess or Clear process options of the process command).
    If you process an object on which the current object depends, and do that in a way that does not keep relations. E. g. if you do a full process of a dimension, all measure groups related to the dimension will get unprocessed. If you do a "Process Update"
    of the dimensions, the measure groups stay processed.
    Please mark as Answer if this helps!

  • Can any body explain me about R/3 delta in to a infocube directly?

    Hi Experts,
    I think it is not possible to do a delta load from R/3 in to a infocube right? Because Infocube is addition and it will not overwrite the changes like ODS. So if I am doing a delta load from R/3 in to infocube directly; I can only able to do a full load not a delta load right?
    Thanks in advance.
    Aslam.

    I am just trying to understand how the cube works with delta laod. For example:
    Record 1 in the infocube is $15 for infoobject say expense and this infoobject is mapped to the field expense in r/3.
    - now for this same record user changed the value to $20 for the field expense.
    - when i do delta to the infocube in bw what happens?
    Does the infocube overwrite the value from $15 to $20?
    or Does the infocube add $15 to $20 and make it $35?
    If it make it to $35 than it is wrong; it should be $20 right?
    How it works as it don't have any overwrite functionality?
    I think the 0RECORDMODE will take care of the delta load.
    Thanks in advance.
    Aslam.
    Edited by: Asif Aslam on Jan 23, 2008 10:55 PM

Maybe you are looking for

  • In which table invoices related to a purchase order are stored ?

    Hi all, We need to make an ABAP program and I need to know in which table the invoices made by MIRO related to a purchase order are stored. I can see them in the purchase order history tab in the transaccion ME23N but giving F1 and getting the table

  • HT1420 where is the itunes menu i cant figure out how to authorize my laptop to use my itunes

    i wont to listen to my music on my laptop but i have to authorize it 1st and it says to use the menu i cant figue it out

  • Cash Flow Statement problem

    hi, during executing cash flow statement in s_alr_87012271 i am getting ABAP dump. even when i run Indirect Method i get an error i have even tried running it on standard Company codes but the error still persists.. .. Does any one have any suggestio

  • Missing "System Volume Information" from a Drive

    Hi, I am trying to setup FSRM in Windows 2012 and while adding G:\ for file screen, I get the following error. Upon investigating the issue, I found that "System Volume Information" is missing under G:\ and same folder very much exists in C: and othe

  • IMovie or QuickTime to view on iPod w/ video?

    My father-in-law just got an iPod w/ video. Can I create iMovie or QuickTime projects that he can view on his iPod? I want to create a short video project, post it to my .mac page for file-sharing and have him download it and post it on his iPod. I h