Netting logic for BI Query

Hi,
Presently my Query output is as follows :
CurrPair     Buy Curr     Sale Curr     Amount(USD)
USD/INR       USD       INR       100
USD/INR       INR       USD       125
We have to take the Absolute value of the difference of both the Amounts and show the Buy Curr and Sale Curr of the Line Item for which the Amount value is greater and show the query output as follows:
CurrPair     Buy Curr     Sale Curr     Amount(USD)
USD/INR        INR        USD        25
can anyone help in this direction ?

Hi,
I can think of two things you can try.
One would be if you try to just put it all on one line. Then the calculation will be more straightforeward since you don't have to deal with aggregation.
If not, if the data has a base currency from which you always convert currencies from/to (such as USD in my example) and an applicable result row for each pair of currencies then something like this might work:
Make a restricted key figure which takes the Amount when the Sale Curr = USD.
Make another restricted keyf which gets Amount when the Sale Curr <> USD (alternatively if Buy Curr = USD).
Make a formula which subtracts these two restricted key figures.
This will look a little strange, so you can clean it up a little:
There's a setting (I don't remember what it's called exactly) to not display the details. You should check it for the formula. Then you can also set the visibility of the two RKF to hidden.

Similar Messages

  • Logic for this query

    Hi friends,
    I have a requirement like I have the organizationid which changes for the employee over a period of time
    its like org_id
    CREATE TABLE ASSIGNMENTS
    ASSIGNMENT_ID NUMBER(10) NOT NULL,
    EFFECTIVE_START_DATE DATE NOT NULL,
    EFFECTIVE_END_DATE DATE NOT NULL,
    BUSINESS_GROUP_ID NUMBER(15) NOT NULL,
    PERSON_ID NUMBER(15),
    JOB_ID NUMBER(15),
    ASSIGNMENT_STATUS_TYPE_ID NUMBER(9) NOT NULL,
    SUPERVISOR_ID NUMBER(10),
    ORGANIZATION_ID NUMBER(15) NOT NULL,
    this is the table structure now if
    for the same employee the organization id changes I need to caputre those emp
    whose organization is chaged....using organization_id and the person_id
    how to do that?

    Audit the table, use a trigger and a history/journaling table, for example:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ABC1032282
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:59412348055

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Any room for improvement for this query? Explain Plan attached.

    Is there any room for improvement for this query? Table stats are up-to-date. Any suggestions Query rewrite, addition of indexes,...etc ??
    select sum(CONF
                 when (cd.actl_qty - cd.total_alloc_qty - lsd.Q < 0) then
                  0
                 else
                  cd.actl_qty - cd.total_alloc_qty - lsd.Q
               end)
      from (select sum(reqd_qty) as Q, ITEM_ID as ITEM
              from SHIP_DTL SD
             where exists (select 1
                      from CONF_dtl
                     where CONF_nbr = '1'
                       and ITEM_id = SD.ITEM_id)
             group by ITEM_id) lsd,
           CONF_dtl cd
    where lsd.ITEM = cd.ITEM_id
       and cd.CONF_nbr = '1'Total number of rows in the tables involved
    select count(*) from CONF_DTL;
      COUNT(*)
       1785889
    select count(*) from shp_dtl;
      COUNT(*)
        286675
      Explain Plan
    PLAN_TABLE_OUTPUT
    Plan hash value: 2325658044
    | Id  | Operation                           | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                    |                    |     1 |    39 |     4  (25)| 00:00:01 |
    |   1 |  SORT AGGREGATE                     |                    |     1 |    39 |            |          |
    |   2 |   VIEW                              |                    |     1 |    39 |     4  (25)| 00:00:01 |
    |   3 |    HASH GROUP BY                    |                    |     1 |   117 |     4  (25)| 00:00:01 |
    |   4 |     TABLE ACCESS BY INDEX ROWID     | SHIP_DTL           |     1 |    15 |     1   (0)| 00:00:01
    |   5 |      NESTED LOOPS                   |                    |     1 |   117 |     3   (0)| 00:00:01 |
    |   6 |       MERGE JOIN CARTESIAN          |                    |     1 |   102 |     2   (0)| 00:00:01 |
    |   7 |        TABLE ACCESS BY INDEX ROWID  | CONF_DTL           |     1 |    70 |     1   (0)| 00:00:01 |
    |*  8 |         INDEX RANGE SCAN            | PK_CONF_DTL        |     1 |       |     1   (0)| 00:00:01 |
    |   9 |        BUFFER SORT                  |                    |     1 |    32 |     1   (0)| 00:00:01 |
    |  10 |         SORT UNIQUE                 |                    |     1 |    32 |     1   (0)| 00:00:01 |
    |  11 |          TABLE ACCESS BY INDEX ROWID| CONF_DTL           |     1 |    32 |     1   (0)| 00:00:01 |
    |* 12 |           INDEX RANGE SCAN          | PK_CONF_DTL        |     1 |       |     1   (0)| 00:00:01 |
    |* 13 |       INDEX RANGE SCAN              | SHIP_DTL_IND_6 |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       8 - access("CD"."CONF_NBR"='1')
      12 - access("CONF_NBR"='1')
      13 - access("ITEM_ID"="SD"."ITEM_ID")
           filter("ITEM_ID"="CD"."ITEM_ID")

    Citizen_2 wrote:
    Is there any room for improvement for this query? Table stats are up-to-date. Any suggestions Query rewrite, addition of indexes,...etc ??You say that the table stats are up-to-date, but is the following assumption of the optimizer correct:
    select count(*)
    from CONF_dtl
    where CONF_nbr = '1';Does this query return a count of 1? I doubt that, but that's what Oracle estimates in the EXPLAIN PLAN output. Based on that assumption you get a cartesian join between the two CONF_DTL table instances, and the result - which is still expected to be one row at most - is then joined to the SHIP_DTL table using a NESTED LOOP.
    If above assumption is incorrect, the number of rows generated by the cartesian join can be tremendous rendering the NESTED LOOP operation quite inefficient.
    You can verify this by using the DBMS_XPLAN.DISPLAY_CURSOR function together with the GATHER_PLAN_STATISTICS hint, if you're already on 10g or later.
    For more information regarding the DISPLAY_CURSOR function, see e.g. here: http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/
    It will show you the actual cardinalities compared to the estimated cardinalities.
    If the estimate of the optimizer is incorrect, you should find out why. There still might be some issues with the statistics, since this is most obvious reason for incorrect estimates.
    Are your index statistics up-to-date?
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Can Any one helpme with logic for fortnight

    Hi All,
              I need the logic for Fortnight of the year for drill in reports . Can any one help me regarding this.
    Thanks in Advance

    Hi,
    I have built this logic to display the fortnights of current month plz modify this according to you requirmenet.
    Here is the query....
    SELECT case when getdate() between  DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
                     and
                     dateadd(dd,14,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0) ) then 'Fnight-1' else 'Fnight-2' end
    Cheers,
    Ravichandra K

  • Need of ABAP logic for 0CDFY variable

    Hi Everyone,
    Iam trying to use the Current Fiscal Year--0CDFY variable in one of query.
    I want to know the ABAP logic for that variable.
    anyone please help me out
    Thankyou
    ARUN

    This variable brings in the current fiscal year.
    If you want to see code behind it than go to Tcode SE37
    type in RSVAREXIT_0CDFY and click on disply

  • Suggetion For below query tuning...

    Can any one suggest what to tune for following query...
    Query:
    SQL> SELECT count(1)
    2 FROM SCOTT.IVR_CALL_MASTER
    3 WHERE STARTDATETIME BETWEEN '01-Dec-2007' AND '31-Dec-2007'
    4 AND SUBSTR(TRANVERSEPATH1,INSTR(TRANVERSEPATH1,';',-1,1),LENGTH(TRANVERSEPATH1)-INSTR(TRANVERSEPATH1,';',-1,1)+1)
    5 LIKE ';2%'
    6 AND CALLENDREASON < '6'
    7 AND ACCOUNTNUMBER IS NOT NULL
    8 AND SUBSTR(TRANVERSEPATH1,INSTR(TRANVERSEPATH1,';',-1,1), LENGTH(TRANVERSEPATH1)-INSTR(TRANVERSEPATH1,';',-1,1)+1)
    9 NOT IN (';2',';21',';113')
    10 /
    COUNT(1)
    687156
    Elapsed: 00:10:02.06
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=91867 Card=1 Bytes=2
    6)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'IVR_CALL_MASTER' (Cost
    =91867 Card=1 Bytes=26)
    3 2 INDEX (RANGE SCAN) OF 'IND_MAS_DAT' (NON-UNIQUE) (Cost
    =311 Card=116534)
    Statistics
    0 recursive calls
    0 db block gets
    8392293 consistent gets
    216218 physical reads
    0 redo size
    381 bytes sent via SQL*Net to client
    504 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    Table_statistics:
    ♀OWNER EMPTY_BLOCKS BLOCKS NUM_ROWS LAST_ANAL INI_TRANS FREELISTS PCT_FREE AVG_SPACE
    SCOTT 0 605599 32713980 01-JUL-07 1 1 10 0
    Column_Stats:
    ♀COLUMN_NAME NUM_DISTINCT
    ACCOUNTNUMBER 1932852
    AUTHFAILREASON 3
    AUTHFLAG 3
    CALLENDREASON 7
    CALLID 0
    CLI 2672332
    CRN 1130007
    DESTVDN 64
    DURATIONOFCALL 1063
    ENDDATETIME 6518689
    ENDTIME 85257
    FIRSTTIMEFLAG 7
    LANGUAGE 2
    LINENO 240
    ORIGINVDN 320
    PRU_AGENTMENU 1
    PRU_FOLIO 1
    PRU_VM 1
    STARTDATETIME 6447794
    STARTTIME 85277
    TRANVERSEPATH1 22338
    TRANVERSEPATH2 15138
    VPS_NO 7
    Index_columns:
    ♀INDEX_NAME COLUMN_NAME COLUMN_POSITION
    INDX3 CRN 1
    IND_MAS_ACCNO ACCOUNTNUMBER 1
    IND_MAS_CLI CLI 1
    IND_MAS_DAT STARTDATETIME 1
    [post]
    Thanks in Advance.

    I'm not sure if that will help, you'll need to test it out.
    When I mean is that
    SUBSTR(TRANVERSEPATH1,INSTR(TRANVERSEPATH1,';',-1,1),
    LENGTH(TRANVERSEPATH1)-INSTR(TRANVERSEPATH1,';',-1,1)+1) LIKE ';2%'
    includes everything that being with ";2", but then you exclude three cases with this:
    SUBSTR(TRANVERSEPATH1,INSTR(TRANVERSEPATH1,';',-1,1), LENGTH(TRANVERSEPATH1)-INSTR(TRANVERSEPATH1,';',-1,1)+1) NOT IN (';2',';21',';113')
    ';113' isn't like ';2%' so it isn't included to begin with.
    depending on how many "like ';2%'" values you have, it may be quicker to use an "IN" clause with just the ones you want, for example:
    substr(tranversepath1,instr(tranversepath1,';',-1,1), length(tranversepath1)-instr(tranversepath1,';',-1,1)+1) in (';22',';20',';213')

  • How to create custom folder for parameterized query

    Hi Gurus,
    I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
    SELECT
    lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
    mgr_last_name, mgr_first_name, empid,
    emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    I agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
    The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
    The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
    But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
    Russ

  • Multiple Queries in Workbook - Refresh Screen Shows Up for Every Query

    We have multiple queries in a workbook.  All of these queries have the exact same selections for the variable selection screen.  When all the queries are refreshed once, the selection screen used to show up once and all the queries are refreshed with the same selections.  
    We were on BI 7.0 and SP10.  We recently moved to SP12.  Since the SP12 installation, the multiple query refresh pops-up the selection screen for every query.  It is nothing like "multiple query refresh" at once since the user has to click "execute" button for every single query.  It is interesting to note that the selection screen only contains hierarchy variables and hierarchy node variables.  The other variables of selection screen do not show up.  I couldn't find any OSS note on this topic.  Please let me know if anyone has any comments on this issue.  I will assign points to useful posts.

    hi Sameer,
    try to update front end patch to latest version ?
    Using the BI 7.x Add-On for SAP GUI 7.10 - Requirements
    hope this helps.

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Contract net value for Header Statistics is not correct

    There is issue with value contract. The net value for Header Statistics is not showing correctly for some contracts. Especially, when we delete the PO line items or reverse all entries (GR and IR) for PO line item.
    Contract has one line with account category ‘U’. The target value is 300,000.00 and total quantity released to date is 160,000. The net value for Header Statistics should be 140,000 but it is showing 600,000 which is over (double) the target value and user cannot release any further PO reference to this contract.
    Earlier I defined net price for line item 300,000 and I changed net price to zero and execute report RM06ENP0 but it doesn’t work.
    Please share your experience and thoughts.
    Thanks,
    Shah.

    Hi Jurgen,
    There are few Purchace orders with multiple line items and each line item for Purchase orders referencing the same line and same contract.
    There is only one Purchase order has two deleted lines against this contract.
    Theses deleted line's net price has changed to zero and there is no PO history.
    Contract released order value is correct as there is only one line, but net price is wrong. and user is getting error for target value is excedeed by $nnn when trying to create purchase order.
    Thanks,
    Shah.

  • Logic for carry forward of previous stock to current period stock.

    Hi Experts,
    Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing  difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
    Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing  stock to current period stock quantity in report.
    As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
    have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
    Header 1
    Header 2
    Header 3
    Header 4
    LFGJA/LFMON
    ROH (MT)
    HALB (MT)
    FERT (MT)
    11.2013
    100.000
    121.000
    121.00
    12.2013
    50.000
    12.000
    123.00
    01.2014
    23.231
    .23.234
    45.342
    02.2014
    23.231
    34.094
    45.098
    03.2014
    34.098
    98.983
    00.000
    04.2014
    00.000
    69.093
    98.098
    05.2014
    00.000
    89.098
    00.000
    For Example Break up of ROH material plant wise in below mention format.
    LFGJA/LFMON
    WERKS
    MENGE (MT)
    11.2013
    P001
    30.000
    11.2013
    P002
    50.000
    11.2013
    P003
    20.00
    Thanks in advance,
    SKN

    Hi,
       The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
    Regards,
    AKPT

  • Short dump in report generation for bex query

    Hi,
    I have e newly installed SAP NetWeaver 7.3 and I'm not able to run BEx-Queries. When I start transaction RSRT and try to generate the report for the selected bex query, I get the following short dump:
    Category               ABAP Programming Error
    Runtime Errors         RAISE_EXCEPTION
    ABAP Program           SAPLRRSI
    Application Component  BW-BEX-OT
    If I start the test in RSRV for that query I get:
    Generation limits for the generated report
    Unable to load report GPEM3XZBL2Y9VX9H6SN
    Am I missing a profile parameter for that generartion limits or something else?
    Thanks in advance!

    Hi,
    Check whether your SAP GUI is activated and installed correctly.
    check following threads
    Runtime error RAISE_EXCEPTION has occurred
    Dump when activating Business Content 7.35
    Thanks and regards
    Kiran

  • How to find the original net value for a cancelled sales order

    Hi experts,
    From VA03 or table VBAP, net value for those cancelled items is always zero. Where to find those cancelled items' original net value?
    Thanks a lot.
    Yu

    Thanks Seshu,
    I just tried it as per your suggestion but I found for non-cancelled items konv-kbert is not equal to the net value taken from vbap-netwr.  So I wonder if knov-kbert is the right original net value for those cancelled items.
    Yu

  • How can i check the authorizations for a query in sap bw 3.1c

    Hi,
    While running one query i am getting warning message is  : you do not have authorization to read object ZVERSION  and few column results also not displaying.
    I would like to check is there any authorization check for this query and could you explain how we use the authorizations in our BW.
    Thanks in advance....

    if you execute su53, the authorization check failed cannot be displayed for reports. because you are executing query in BEx is it?
    for this you can trace the userid that executing query to check the authorization check failed. Go to st01 and find out the authorization check failed there.
    And you can find in RSRT too. i am not sure that.
    One more option is there to check the authorization with help of matrix that you prepared for assigning access/authorization to the users.
    Hope this would help you.

Maybe you are looking for

  • I have restored my iPhone 4 S but iTunes is still trying to restore it. What do I do?

    I have upgraded my iPhone 4 to a 4S and have all afternoon been trying to restore it with my old iPhone backup.   I connected it to my computer and it did it straight away - I have all my contacts and texts up until monday morning however I have none

  • Cant sync iphone or ipod

    When i try to sync my iphone in itunes, it recognizes the device and starts the registration process. The the computer says new hardware in a small bubble in the lower right hand corner.  It indicates that is it a digital still camera and then reboot

  • Firefox freezes when I switch tabs or write in a form.

    Every time I switch tab by clicking on them(and sometimes when using the short cut, ctrl+tab ctrl+2 etc) or when I start writing in the awesomebar/a form Firefox freezes. It just visual freeze so I can still go to a website, click on stuff and so on.

  • 2LIS_08TRFKZ datasource

    Hello gurus, I have a small question about 2LIS_08TRFKZ datasource. As we observed, it calculates NETWR, by GROSS WEIGHTs of the materials. But, we need to calculate by NET WEIGHT. I want to know, if there is an easy way for customizing the datasourc

  • Sql management studio sql 2012

    where can i install or download the sql management studio only for sql 2012? I downloaded sql 2012 but it does not give me the option to install just the management studio? where is it?