Details on the order of columns in a Where Clause

Hi All
My both Quarries  are giving same record count .
so  can  i say that the order of the columns("msib.inventory_item_id=pol.item_id" AND" pol.item_id=msib.inventory_item_id ") 
in the where  clause doesn't effect the query result in any situation 
{code
}
select count(*)
from po_headers_all poh
   ,po_vendors pv
   ,po_lines_all pol
   ,po_line_locations_all pll
   ,mtl_system_items_b msib
where poh.vendor_id = pv.vendor_id
and poh.po_header_id = pol.po_header_id
and pol.po_line_id = pll.po_line_id
and pll.ship_to_organization_id = msib.organization_id ----------------1
and msib.inventory_item_id=pol.item_id --------------------------2
and poh.type_lookup_code = 'STANDARD'
and pv.vendor_name = 'Star Gate Ltd'  
group by 1

select count(*)
from po_headers_all poh
   ,po_vendors pv
   ,po_lines_all pol
   ,po_line_locations_all pll
   ,mtl_system_items_b msib
where poh.vendor_id = pv.vendor_id
and poh.po_header_id = pol.po_header_id
and pol.po_line_id = pll.po_line_id
and pol.item_id = msib.inventory_item_id  ----------------------------------2 
and pll.ship_to_organization_id = msib.organization_id -----------------------------1 
and poh.type_lookup_code = 'STANDARD'
and pv.vendor_name = 'Star Gate Ltd'  
Thank you

Published by: vijay539 on November 20, 2009 09:17

Published by: vijay539 on November 20, 2009 09:18

Published by: vijay539 on November 20, 2009 09:19

Published by: vijay539 on November 20, 2009 09:19

Hello

Right; the order in which the columns appear in the SELECT clause has nothing to do with the lines that are in the result set.

In fact, unless you say SELECT DISTINCT , I don't think there's anything (except to trigger an error) you can do in the SELECT clause, which would change the lines are selected.

Published by: Frank Kulash, November 20, 2009 12:45

Sorry, I misread the question. You may have about the order of the conditions in the WHERE clause, not the SELECT clause.

The answer in short is the same:
Right.

Unless you mix ANDS and ORs (no one should ever do and that you are not), the order of the conditions will make no difference in the results.

Tags: Database

Similar Questions

  • Manager disc Snap-in for the MMC. Is it possible to change the order of columns. Or remove columns completely?

    Manager disc Snap-in for the MMC. Is it possible to change the order of columns.  Or remove columns completely?

    I would like to move the capacity;  Space free; Status; to be fair, Volume.  The page layout;  Type; File system; seems to me

    useless in this form.  If there is no way to change maybe someone at Microsoft may include this option in Windows 9.

    Hello

    I would like to inform that you can not change the order of columns or remove columns completely as it is by design. However, you can display or hide items in the console window.

    Hide columns in Diskmanagement:

    a. Click Start, type diskmgmt.msc and press to enter.

    b. click view and select Customize.

    c. you can select or clear the check boxes to show or hide items in the console window.

    I hope that helps!

  • 'create columns with a where clause' in MDB

    Hi all

    I have a question on the OBI EE meta data layer.

    We have OBIEE sitting on a with a star schema data warehouse.

    Our fact table contains the following fields...

    EmployeeID
    CompanyID
    ID of the measure
    The measure name
    MEASURE

    That's what we have in the physical layer, layer MDB and the presentation layer, but I want to be able to "create columns with a where clause.

    So my table of facts in the presentation layer would look like this

    Quantity sold
    Unit cost
    Amount of the company



    I thought I could just create a logical with column

    Quantity = measurement
    where as name = "quantity".

    But I can't find any to do so.

    Any ideas?


    Thank you

    Hello

    I think that what you want to achieve must be done in the physical layer and not the business layer.
    Instead of using your physical table directly from the DB, you must create a physical table based on an SQL statement.
    GO to the physical layer you / create the new object table in Table type choose "Select" and then you write your select statement as you want.
    Once this is done to create your physical joins and import your table into your business layer and create your complex joins
    This should do the trick.
    It may be useful

    Concerning

  • Order columns (which make up the primary key constraint) matter in where clause of DML query for use of indexing mechanism to operate.

    Version of DB: database Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production


    I have a table my_table as below:
    create table my_table
    (
    my_code varchar2 (6).
    my_id varchar2 (24).
    forced pk_1 primary key (my_code, my_id)
    );


    Primary_key here's a composite key that contains columns 1 (my_code) and 2 (my_id).
    Is there that a difference in the way below queries is executed in terms of performance (use of indexing in the extraction).

    (a) select * from my_table where my_code = '123' and my_id = "456";
    (b) select * from my_table where my_id = '456' and my_code = '123';


    The understanding I have the order of the column in the where clause should be identical to the sequence in
    What primary key draws for indexing to be used by oracle in oracle other DML queries ignores indexing
    However when I used explain plain both show the same query cost with single scan with index rowid.
    so I don't know if I'm wrong in the concept that I have. Kindly help.

    Thanks in advance,
    Gerard

    Your question is answered in the Performance Tuning Guide

    Using indexes and clusters

    14.1.4 choosing composite indexes

    A composite index contains several key columns. Composite indexes can provide additional benefits compared to the index to single column:

    • Improved selectivity

      Sometimes the two or more columns or expressions, each with a low selectivity can be combined to form a composite with a high selectivity.

    • Reduced IO

      If all columns selected by a query are a composite index, then Oracle may return these values in the index without access to the table.

    A SQL statement can use a path on a composite index if the statement contains constructions that use a main part of the index.

    Note:

    This is no longer the case with the skip index scans. See "Index Skip Scans".

    A main part of an index is a set of one or more columns that have been specified first and consecutively in the list of columns in the CREATE INDEX statement that created the index.

  • Interactive reports will change the order of columns

    Hi all

    Have experienced this for the 3rd time now. The other times I just create a new report with the request in the order you wish to fix. But it starts to become annoying now...

    When I use the arrows to change the column order on my reports interactive nothing happens when running. The new order is saved and appears that way in design mode, but does not change the order on the report.

    Please let me know if you know how to solve this problem, or if Miss me just something really obvious.

    Thank you!
    K

    Hey,.

    Changing the order in the attributes report is more an effect, since the default report parameters overwrite it.

    If you want to change the order of the columns, you must go through the menu actions of the interactive report, then choose the column selection menu item, change the order and press ok.

    Then save this order order by default, you go to the action menu again and choose save report option this time, select "primary" or "Save as default" depending on your version of apex (this option is available only if you are connected as a developer in the generator of the apex). Then press the ok button again.

    Other users will only see the changes if they press the reset button on their version of empathy.

    I hope this helps.

  • How to set a null column in a where clause clause involving a statement box

    In oracle APEX, I a (selection list) element called: P32_STATUS. It contains two values of interest (for this discussion): 'Available' and 'checked '. In my report, I have a column called vc_status that contains two values: "Checkbox" and NULL. In my application I want to use a case statement in my where clause similar to the lines of

    where

    .

    .

    .

    AND (vc_status = CASE WHEN: P32_STATUS = "Checkbox" THEN : P32_STATUS )

    WHEN : P32_STATUS = 'Available' THEN NULL END)

    The 'box' filtering works but the filtering to try to vc_status the NULL value does not work. Can someone help me? Thank you!

    (P.S. My intuition says that there because I can not put vc_status = NULL, but I must say that vc_status IS NULL... However, I don't know how to do execution IS ZERO inside a CASE statement)

    Hello

    Your intuition is right...

    In Oracle NULL is a bit special:

    NULL = NULL is false

    NULL <> NULL is false

    Thus, instead of the parameter a NULL value in the CASE WHERE there is just set a value on the other side:

    NVL (vc_statut, 'Available') =: P32_STATUS

    That's all! Simple, clean and functional

  • Calculate the sum of values of 2 where Clauses

    Hi, sorry to trouble, I have all the data in a database or anything like that, just to think about some of the work I have to do, trying to get ahead. I was wondering how i would be the sum of the values in a column, but with 2 where clauses. By example, if I wanted to the sum of all the values until 18:00 in 1 column and all the after 18:00 for 1 day how I would write this out.

    I don't know how to write separately, i.e.

    select name, sum(values) as after6
    from table
    where time > '18:00'
    group by name;
    

    select name, sum(values) as upto6
    from table
    where time < '18:00'
    group by name;
    

    How can I combine these columns after6 and upto6 next to each other.

    If someone could please advise.

    Thanks in advance

    Select the name,

    sum (case when time > 18:00 ' then 0 otherwise end of values) as after6,.

    sum (case when time< '18:00'="" then="" values="" else="" 0="" end)="" as="">

    table

    Group by name;

    ----

    Ramin Hashimzade

  • Small design on the points of view and a Where Clause Board...

    Hi all...  I just want to check Im doing things right, and he is not a better way to do this...

    Running APEX 4.2.5 and XE 11.2

    Ive built my application around a community of users who have access to certain groups of data...  Ive designed so that there are views and then transparent filter the data of a given user. for example, the view below seamlessly that users can see the filters depending on which application they use, they can see more specifically, what are the features and finally, what group they are actually in.

    Create view ENTITIES like)

    Select * from t_entities t

    where exists (select 1

    of application_groups ag

    where ag.object_name = 'ENTITIES '.

    and ag.object_id = t.entity_id

    and ag.group_name = 'CASH FLOW')

    and exists (select 1 from entity_users EU

    where eu.username = nvl (v ('APP_USER'), USER) / * APEX APPLICATION USER * /.

    and eu.entity_id = t.entity_id)

    and it exists (select 1 from entity_group_members for example

    where eg.entity_group = v('G_ENTITY_GRP_ID') / * ENTITY_GROUP * /.

    and eg.entity_id = t.entity_id)

    )

    The overall costs when I run the explain command is very low (23 or almost), so I think that its an effective way of filtering... However, out of 300 entities or greater, the vast majority of users (75%) can see 75% of data...  Also, I need to create another view to filter another set of data with 2000 records. one with the view in place, 95% of the staff will see 95% of the data and only 10% of the staff see the other 10%...

    I note that its faster when a member of a group brings back only a tiny part of the data compared to the other way around... This is why Im asking before implementing another view of the same type.

    So, on my question. Is there a better way to do this, or the query should be on there head with a WHERE clause does NOT EXIST (xxxxx! = yyyyy)) or soemthing else ther is quite that Ive missed...

    The only other comment is that Im using the upper table "APPLICATION_GROUPS" for more than one type of object (i.e. entities and entity accounts banking..) y at - it no merit in separaitng the two into two tables?

    Thank you very much

    Richard

    Hi Richard,

    Miss me a lot of information but:

    I think that your design could be allowed. It seems a little too mat, maybe, but I think this could work.

    It is important to have the good indexing and use compression of index:

    On application_groups (object_name, the GroupName, groupname) compresses

    IT compresses to entity_users (username, entity_id)

    On the entity_group_members (entity_group, entity_id) compress

    I think v as v ('G_ENTITY_GRP_ID') is a user-defined function? If so, if possible, set the deterministic and uses result_cache.

    Consider partitioning application_groups type (= object_name?)

  • Change the order of columns in the report

    Hello

    I am reorganizing the column in my report to read 'Path of the virtual machine', 'Name', 'Property DL'. I tried moved the code in the 'name', 'property DL"empty columns but proper order came.

    Is there a way to make the 'VM' way a function?

    See attachment.

    Thank you

    Cut & paste garbage. My fault.

  • A question about the order of COLUMN sqlplus and PL/SQL

    Hello everyone.



    I would like to ask a question about sqlplus command COLUMN that I use in order to define the length of my queries of output columns. So, for example, I run something like:
    COLUMN market FORMAT a20
    That is why any column with the name 'the market' will be composed by sqlplus as 20 characters.

    Currently I'm working on a PL/SQL script that makes this automatic procedure, in other words, instead of manually write for each column in the above COLUMN order, it uses the DBMS_SQL. He read first as input the name of the table and then inside a loop, it detects the maximum length.

    For those interested, here is the Oracle documentation page that I found (example 8)
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_sql.htm

    If everything worked well enough I managed to recover the maximum of each column in my table length, except that I don't know how to use the COLUMN sqlplus command in my PL/SQL block. I would like to do something like that (it's just a pseudo-code)
    FOR colIndex in 1 .. numberOfColumns LOOP
            currentColumnName = getColumnName(tableDescriptionObject, colIndex);
            currentColumnLength = getColumnLength(tableDescriptionObject, colIndex);
            
            COLUMN  currentColumnName FORMAT a -- and here after 'FORMAT a' I have to write currentColumnLenth but I don't know how to proceed.
    
    END LOOP;
    I would like to know is there a command in PL/SQL to define the appropriate column typeset in sqlplus length?


    Thanks in advance,
    Dariyoosh

    Hi, Dariyoosh,

    Sory, I don't think that there is a simple way to publish SQL * most orders fom PL/SQL.
    PL/SQL runs in the database (back-end); There isn't any direct contact with SQL * more at the front end.

    The best way I know is that PL/SQL script (myfile.sql) with orders of the COLUMN, and then have SQL * more run the script (@myfile).

  • Details of the order header

    Hello
    I need to create a high level of order header report; I wrote a query, but not able to find some of the field brand with?.
    I would be grateful if you can help me correct this query.

    SELECT oa.order_number,

    HCA.account_number SHIP_T_ACCT_NO, -? is this ship cust to account number

    order_value 0, -?

    OA.cust_po_number,

    order_despatch_date - 0?

    OF OE_ORDER_HEADERS_ALL oa.
    HZ_CUST_ACCOUNTS hca
    WHERE oa.sold_to_org_id = hca.cust_account_id


    Thanks and greetings

    You might be happier after this

    SELECT DISTINCT H.ORDER_NUMBER,
                    H.HEADER_ID,
                    L.LINE_ID,
                    H.CREATION_DATE,
                    WND.DELIVERY_ID,
                    RC_S.CUSTOMER_NAME SHIP_CUSTOMER_NAME,
                    RC_S.CUSTOMER_NUMBER CUST_NO_SHIP,
                    HL_S.ADDRESS4 || DECODE(HL_S.ADDRESS4, NULL, '', CHR(10)) ||
                    HL_S.ADDRESS1 || DECODE(HL_S.ADDRESS1, NULL, '', CHR(10)) ||
                    HL_S.ADDRESS2 || DECODE(HL_S.ADDRESS2, NULL, '', CHR(10)) ||
                    HL_S.ADDRESS3 || DECODE(HL_S.ADDRESS3, NULL, '', CHR(10)) ||
                    HL_S.POSTAL_CODE || DECODE(HL_S.POSTAL_CODE, NULL, '', ' ') ||
                    HL_S.CITY ||
                    DECODE(HL_S.CITY,
                           NULL,
                           DECODE(HL_S.POSTAL_CODE, NULL, '', CHR(10)),
                           CHR(10)) || UPPER(FTV_SHIP.TERRITORY_SHORT_NAME) "SHIP_TO_ADDRESS",
                    RC_B.CUSTOMER_NAME CUSTOMER_NAME,
                    RC_B.CUSTOMER_NUMBER CUST_NO_BILL,
                    HL_B.ADDRESS4 || DECODE(HL_B.ADDRESS4, NULL, '', CHR(10)) ||
                    HL_B.ADDRESS1 || DECODE(HL_B.ADDRESS1, NULL, '', CHR(10)) ||
                    HL_B.ADDRESS2 || DECODE(HL_B.ADDRESS2, NULL, '', CHR(10)) ||
                    HL_B.ADDRESS3 || DECODE(HL_B.ADDRESS3, NULL, '', CHR(10)) ||
                    HL_B.POSTAL_CODE || DECODE(HL_B.POSTAL_CODE, NULL, '', ' ') ||
                    HL_B.CITY ||
                    DECODE(HL_B.CITY,
                           NULL,
                           DECODE(HL_B.POSTAL_CODE, NULL, '', CHR(10)),
                           CHR(10)) || UPPER(FTV_INV.TERRITORY_SHORT_NAME) "INVOICE_TO_ADDRESS",
                    RCT.FIRST_NAME || DECODE(RCT.FIRST_NAME, NULL, '', ' ') ||
                    RCT.LAST_NAME "CUSTOMER_CONTACT",
                    HCSUA.TAX_REFERENCE "VAT/TAX REGISTARION NO",
                    H.TRANSACTIONAL_CURR_CODE,
                    H.CUST_PO_NUMBER "CUST PO NO",
                    H.ORDERED_DATE,
                    H.SHIPPING_METHOD_CODE "CARRIAGE",
                    RSA.EMAIL_ADDRESS "EMAIL",
                    WDD.ORGANIZATION_ID,
                    TRIM('.'
                         FROM(L.LINE_NUMBER || '.' || L.SHIPMENT_NUMBER || '.' ||
                              L.COMPONENT_NUMBER || '.' || L.SERVICE_NUMBER)) ITEM,
                    L.ORDERED_ITEM PRODUCT_NUMBER,
                    MSI.DESCRIPTION DESCRIPTION,
                    (SELECT SUM(OCLV.CHARGE_AMOUNT)
                       FROM OE_CHARGE_LINES_V OCLV
                      WHERE OCLV.HEADER_ID = H.HEADER_ID AND
                            OCLV.LINE_ID IS NULL) "CHARGE_H",
                    (SELECT SUM(OCLV.CHARGE_AMOUNT)
                       FROM OE_CHARGE_LINES_V OCLV
                      WHERE OCLV.HEADER_ID = H.HEADER_ID AND
                            OCLV.LINE_ID IS NOT NULL AND
                            OCLV.LINE_ID = L.LINE_ID) "CHARGE_L",
                    L.ITEM_TYPE_CODE,
                    L.LINE_NUMBER LINE_NUMBER,
                    L.SERVICE_NUMBER,
                    L.SHIPMENT_NUMBER SHIPMENT_NUMBER,
                    NVL(L.COMPONENT_NUMBER, 0) COMPONENT_NUMBER,
                    WDD.DELIVERY_DETAIL_ID,
                    OTTT.NAME ORDER_TYPE,
                    H.ORDER_TYPE_ID,
                    H.ORG_ID ORDER_ORG_ID
      FROM OE_TRANSACTION_TYPES_TL  OTTT,
           OE_TRANSACTION_TYPES_ALL OTTA,
           WSH_NEW_DELIVERIES       WND,
           RA_SALESREPS_ALL         RSA,
           RA_CONTACTS              RCT,
           AR_VAT_TAX_ALL_B         ARVT,
           FND_TERRITORIES_VL       FTV_SHIP,
           FND_TERRITORIES_VL       FTV_INV,
           RA_TERMS_TL              RTT,
           HZ_CUST_ACCT_SITES_ALL   HCASA_S,
           HZ_CUST_ACCT_SITES_ALL   HCASA_B,
           RA_CUSTOMERS             RC_B,
           RA_CUSTOMERS             RC_S,
           RA_CUSTOMERS             RC,
           HZ_LOCATIONS             HL_S,
           HZ_LOCATIONS             HL_B,
           OE_ORDER_HEADERS_ALL     H,
           WSH_DELIVERY_ASSIGNMENTS WDA,
           WSH_DELIVERY_DETAILS     WDD,
           HZ_PARTY_SITES           HPSS,
           HZ_PARTY_SITES           HPSB,
           HZ_CUST_SITE_USES_ALL    HCSUA,
           HZ_CUST_SITE_USES_ALL    HCSUA_S,
           HZ_CUST_SITE_USES_ALL    HCSUA_B,
           HZ_PARTIES               HP,
           OE_ORDER_LINES_ALL       L,
           MTL_SYSTEM_ITEMS_B       MSI
     WHERE
           L.ORDERED_ITEM = MSI.SEGMENT1(+) AND
           L.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID(+) AND
           L.SHIP_FROM_ORG_ID = MSI.ORGANIZATION_ID(+) AND
           L.HEADER_ID = H.HEADER_ID AND
           L.TAX_CODE = ARVT.TAX_CODE(+) AND L.ORG_ID = ARVT.ORG_ID(+) AND
           (ARVT.END_DATE is null or ARVT.END_DATE > trunc(sysdate))
           AND ARVT.Enabled_flag = 'Y' AND
           L.LINE_ID = WDD.SOURCE_LINE_ID(+) AND
           HCSUA.SITE_USE_ID = L.INVOICE_TO_ORG_ID AND
           HCSUA_S.SITE_USE_ID = H.SHIP_TO_ORG_ID AND
           HCSUA_S.SITE_USE_CODE = 'SHIP_TO' AND
           HCSUA_S.CUST_ACCT_SITE_ID = HCASA_S.CUST_ACCT_SITE_ID AND
           HCASA_S.CUST_ACCOUNT_ID = RC_S.CUSTOMER_ID AND
           HPSS.PARTY_SITE_ID = HCASA_S.PARTY_SITE_ID AND
           HL_S.LOCATION_ID = HPSS.LOCATION_ID AND
           HCSUA_B.SITE_USE_ID = H.INVOICE_TO_ORG_ID AND
           HCSUA_B.SITE_USE_CODE = 'BILL_TO' AND
           HCSUA_B.CUST_ACCT_SITE_ID = HCASA_B.CUST_ACCT_SITE_ID AND
           HCASA_B.CUST_ACCOUNT_ID = RC_B.CUSTOMER_ID AND
           HPSB.PARTY_SITE_ID = HCASA_B.PARTY_SITE_ID AND
           HL_B.LOCATION_ID = HPSB.LOCATION_ID AND
           WDD.DELIVERY_DETAIL_ID = WDA.DELIVERY_DETAIL_ID(+) AND
           WDA.DELIVERY_ID = WND.DELIVERY_ID(+) AND
           H.SOLD_TO_ORG_ID = RC.CUSTOMER_ID AND RC.PARTY_ID = HP.PARTY_ID AND
           RTT.TERM_ID = H.PAYMENT_TERM_ID AND RTT.LANGUAGE = USERENV('LANG') AND
           H.FLOW_STATUS_CODE <> 'CANCELLED' AND
           L.FLOW_STATUS_CODE <> 'CANCELLED' AND
           H.SALESREP_ID = RSA.SALESREP_ID AND
           H.ORG_ID = RSA.ORG_ID(+) AND
           RCT.CONTACT_ID(+) = H.INVOICE_TO_CONTACT_ID AND
           FTV_SHIP.TERRITORY_CODE = HL_S.COUNTRY AND
           FTV_INV.TERRITORY_CODE = HL_B.COUNTRY AND
           OTTT.TRANSACTION_TYPE_ID = H.ORDER_TYPE_ID AND
           OTTA.ORG_ID = H.ORG_ID AND OTTT.LANGUAGE = OTTT.SOURCE_LANG AND
           OTTA.TRANSACTION_TYPE_ID = OTTT.TRANSACTION_TYPE_ID AND
           OTTA.TRANSACTION_TYPE_ID = H.ORDER_TYPE_ID AND
           OTTT.LANGUAGE = USERENV('LANG') AND
           (H.ORDER_NUMBER = :P_ORDER_NUMBER OR WND.NAME = :P_DELIVERY_NAME) AND
           H.ORG_ID = FND_PROFILE.VALUE('ORG_ID')
     ORDER BY LINE_NUMBER, SHIPMENT_NUMBER, COMPONENT_NUMBER;
    

    Thank you
    Vishalaksha

  • When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.

    * Original title: Windows Media player

    When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.  This is the CD, or I do something wrong?  This isn't an ongoing problem... most of the time it's ok.  Can I change the order manually. If Yes, where and how.

    Thank you

    Lee

    Lee - there are a number of possibilities. First of all, it depends whether you burn audio disks or data - if they are audio discs, you can check and rearrange the order of songs in the burn list - if necessary - before you start burning. If you drag multiple files to the burn list quite often the last track you clicked on will go upward, so I wonder if it is what can happen. Back with a little more detail if I not quite correctly interpreted the problem. Best regards, Ric.

  • Third party payments - Details of the beneficiary

    Hello everyone, since the item entries > values entry screen, no one knows to what makes database table/column field "Details paid" attach to? I checked pay_element_entry_values_f, salary) input_values_f, pay_element_entries_f, but could not find a match. Any help is very appreciated!

    Thanks, Naveen.

    I downloaded the form values item stocked, and it seems that the details of the beneficiary comes from hr_all_organization_units table where the "ext" flag is set. The organization_id is related to the payee_id in the table pay_personal_payment_methods_f which flows in turn to pay_element_entries_f via personal_payment_method_id.

    I hope this helps!

    Thanks, Naveen.

  • changing the order of export format

    Hi all

    I want to change the order of the columns in the file exported in FDM according to my needs. How can I change the order of columns in the exported file? Please help me in this.

    Thank you!

    Take a look in the script Export Action of any adapter you are using. This is where the output format is defined.

    I forgot to mention if you use the Essbase adapter, you can do so via the definition of the sequence of calc for each dimension, which will determine the order that it appears in the output file. This can be set in the web client or workbench

    Published by: SH on October 18, 2011 09:43

  • How to set the size of column sqlplus.exe?

    SQL> select * from dba_cons_columns where user='USER1' and table_name='PARENT1';
    
    OWNER                          CONSTRAINT_NAME
    ------------------------------ ------------------------------
    TABLE_NAME
    ------------------------------
    COLUMN_NAME
    --------------------------------------------------------------------------------
      POSITION
    ----------
    USER1                          PARENT1_PK
    PARENT1
    COL2
             2
    
    
    OWNER                          CONSTRAINT_NAME
    ------------------------------ ------------------------------
    TABLE_NAME
    ------------------------------
    COLUMN_NAME
    --------------------------------------------------------------------------------
      POSITION
    ----------
    USER1                          PARENT1_PK
    PARENT1
    COL1
             1
    It seems little ugly to see these data. Why the length of the column is so long? Please tell how to set the length of columns and other settings so that the displayed data should come out in the form of a well managed and beautiful way.
    Like this:
    OWNER     CONSTRAINT_NAME     TABLE_NAME       COLUMN_NAME   POSITION
    -----------     ----------------------------     ------------------        ---------------------    --------------
    USER1        PARENT1_PK              PARENT1             COL2                  2
    USER1        PARENT1_PK              PARENT1             COL1                  1
    I wrote this by hand. How do I get the display to sqlplus.exe?

    Easiest would be to use the command column format and also the linesize option.

    sql>column column_name format a30
    sql>set linesize 300
    

    The order of column would make the display limited to 30 characters only. Also the linesize enlarge the display. Try it and see what it looks like?

    HTH
    Aman...

Maybe you are looking for