Case statement with multiple queries to the THEN clause

Y at - it a syntax something like:

Case

When A = 1
Then B: = 2 and C: = 3

When A = 2
Then B: = 4 and C: = 5

Else B: = 6 and C: = 7

End case;

where clause can then have multiple assignments?

Also, how to mark entries as code on this forum?

TIA,

Extreme Farley

You can simplify a bit:

SQL> declare
  2     a number := 0;
  3     b number := 0;
  4     c number := 0;
  5  begin
  6
  7     Case A
  8          WHEN 1 Then
  9            B := 2;
 10            C := 3;
 11          WHEN 2 Then
 12            B := 4;
 13            C := 5;
 14          Else
 15            B := 6;
 16            C := 7;
 17     End Case;
 18     dbms_output.put_line('A=' || a);
 19     dbms_output.put_line('B=' || b);
 20     dbms_output.put_line('C=' || c);
 21  end;
 22  /
A=0
B=6
C=7

PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • Case statement with a select & date in

    Hello everyone,

    This is my first discussion, so please bare with me.

    I am trying to write a case statement with a select statement that compares the dates.

    When I write an instruction box with a select statement in it compares everything but dates it works fine.  Once the date is there, he collapses.

    Here is a super simple example of what I'm trying to do, "b.in_serv_dt" is a date

    Select unit_no,

    case when ((sélectionnez b.in_serv_dt de b unit_dept_comp_main où a.unit_id = b.unit_id et b.in_serv_dt) > = 1 January 2012 "") then "everybody wins."

    When ((sélectionnez b.in_serv_dt dans l'unit_dept_comp_main b où a.unit_id = b.unit_id et b.in_serv_dt) < = 1 January 2012 "") then "Nobody wins".

    end

    of ottawa_unitmain_v one

    Any help would be greatly appreciated

    Thank you very much

    Hello

    your statement of formatting:

    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    and b.in_serv_dt
    ") > = JANUARY 1, 2012"
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    and b.in_serv_dt
    )<=>
    ) and then "no winner".
    end
    of ottawa_unitmain_v one

    I see "partial conditions": <... and="" b.in_serv_dt="">> that have no meaning.
    I guess it's a kind of "typo" and I ignore them.
    If the statement is:
    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    ") > = JANUARY 1, 2012"
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    )<=>
    ) and then "no winner".
    end
    of ottawa_unitmain_v one

    I guess that the "b select" retrieve one line, through the design of database (forced...)

    As already written: be careful with data types: avoid "implicit conversions" (when you compare different data types, Oracle has convert the data type of the other side, a side example: "mystring = mynumber" is transformed into 'TO_NUMBER (mystring) = mynumber', or 'mydate = mystring' translates mydate = TO_DATE (mystring, ) ")
    Even better: use explicit conversions, use explicit formats when necessary.
    Best: use no conversion on columns from the constants, but use the correct data type for the constant.

    With this in mind:
    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    ) > DATE = ' 2012-01-01'
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    )<= date="">
    ) and then "no winner".
    end
    of ottawa_unitmain_v one
    But note that b.in_serv_dt EQUAL to 1 January 2012 (at 00:00:00) is OK for both WHEN the conditions; then the a "win."

    Now: the subselect statement is identical in the 2 options of the case... You could work differently: (I add the "ELSE" in case one line as NULL in_serv_dt;) I guess that an INNER JOIN is OK, maybe you need a LEFT OUTER JOIN (if some lines of A have no corresponding row in B)

    SELECT a.unit_no
    , CASE WHEN b.in_serv_dt > = DATE '' 2012-01-01
    THEN "everyone wins"
    WHEN b.in_serv_dt< date="">
    While "Nobody wins".
    ELSE ' who knows... ". »
    END who_wins
    Of ottawa_unitmain_v one
    INNER JOIN unit_dept_comp_main b
    ON a.unit_id = b.unit_id
    ;

    Best regards

    Bruno Vroman

  • Break with multiple queries

    I built a relationship with the data model and two requests. I set up the break-up on it. The two queries contain the Department and select it. The Department is the key to the outbreak. The breakdown by item in the bursting may be alone. So if I specify, for the split by element the Department in the first query, only the first request is divided by Department, but the second query is not distributed. Breaking for queries longer divide? How to divide multiple queries in the logic of failure?

    Can you help me please?

    Hello Martini,

    Using concatenated sql and select the single lines or datatemplate

  • share 'Start' content and presentation of the tile with multiple users on the same Tablet Windows RT

    Hello

    Can someone tell me if it is possible to share/copy the content start and the tile layout with multiple users on the same shelf?

    Hello

    Welcome to the Microsoft community.

    Unfortunately, you will not be able to share or copy the content start and available to tile with multiple users. However, you can rearrange the tiles and select the content to be displayed manually on each of the user accounts.

    See these articles for more details:

    Customize the splash screen

    http://Windows.Microsoft.com/en-in/Windows-8/start-screen#1TC=T1

    Reorganization of the tiles start

    http://Windows.Microsoft.com/en-in/Windows-8/rearrange-tiles-start

    I hope this helps. Let us know if you need more assistance.

  • Select with case statement and a formula of the IIR

    Hi, I was looking to get help regarding a statement writing box with a statement select statement all. I tried to reproduce a formula IIf access well that just wanted to check that the query I wrote is correct, any advice would be appreciated.

    [code]

    Select *.

    Of

    (

    Select name, month, duration, volume, time_spent, date1, date2,.

    -case when 'date' > = 'date1' then '1' other '0' end as departure,.

    -case when 'date' < = "date2" then '1' other '0' as end ending

    Of

    (

    Select *.

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    )

    )

    ;

    [/ code]

    I want to know is where I have my ' select name, etc, I would change that to select * to make it easier instead of typing all the field_names outside, but I don't know how to do and also what follows is 2 IIF formulas from an access database for the start of the final case statements so I just wanted check I wrote it correctly.

    [code]

    departure: IIf ([date] > = [date1], 1, 0)

    [/ code]

    [code]

    ending: IIf ([date] < = [date2], 1, 0)

    [/ code]

    Any advice would be appreciated.

    Hello

    Whenever you have any questions, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Explain, using specific examples, how you get these results from these data.

    If the output depends on what anyone outside the application itself (for example, when it is run) and then include a few different examples and the results you want of each given the same sample data. For example, "if I run on November 19, 2013, while the results should be... because... but if I run between November 21 and November 27, then the results should be... because...". »
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    318f20b8-a3d0-4FB4-bb0f-73785250b7d4 wrote:

    Hi, I was looking to get help regarding a statement writing box with a statement select statement all. I tried to reproduce a formula IIf access well that just wanted to check that the query I wrote is correct, any advice would be appreciated.

    [code]

    Select *.

    Of

    (

    Select name, month, duration, volume, time_spent, date1, date2,.

    -case when 'date' > = 'date1' then '1' other '0' end as departure,.

    -case when "date."<= 'date2'="" then="" '1'="" else="" '0'="" end="" as="">

    Of

    (

    Select *.

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    )

    )

    ;

    [/ code]

    I want to know is where I have my ' select name, etc, I would change that to select * to make it easier instead of typing all the field_names outside, but I don't know how to do and also what follows is 2 IIF formulas from an access database for the start of the final case statements so I just wanted check I wrote it correctly.

    [code]

    departure: IIf([date]>=[date1],1,0)

    [/ code]

    [code]

    ending: IIf ([date]<>

    [/ code]

    Any advice would be appreciated.

    DATE is not a function of Oracle; in fact, it's a terrible name for a column or function, because it blends with the DATE data type.

    In Oracle, the function SYSDATE returns the date and time, according to the clock on the database server.  So, SYSDATE can return a value as November 19, 2013 06:33:15.   If you want to midnight the same day (i.e., November 19, 2013 00:00:00) and then use TRUNC (SYSDATE).

    String literals (for example the string which consists 5 characters d, a, t, e, and 1) go inside the single quotes. Numbers and the names of columns only.

    If you want to include all the columns, more some calculated values, in a SELECT clause, then you must use a name table or alias before the *.  (See select_2 below.  To do this, assign the alias j to display online.)

    Maybe you wanted to say something like:

    Select *-it's select_1

    de)

    Select j. *-it's select_2

    , case when SYSDATE > = date1 then 1 or 0 end as departure

    , case when SYSDATE<= date2="" then="" 1="" else="" 0="" end="" as="">

    de)

    Select *-it's select_3

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    ) j

    )

    ;

    As mentioned in a previous answer, you should be careful about the use of "SELECT *" in production code.

    In select_3, it would be better if you explicitly listed the columns you need.  It can improve efficiency and maintenance.  In this request, queue and the name will be always the same, so you probably don't want to include both of them in the result set, in any case.

    In select_1 and select_2, it is acceptable to use "SELECT *", assuming that select_3 is fixed.

    Moreover, there is no point in using subqueries here.  You can get the same results simply in a single query, without any subqueries.

  • Help in the CASE statement with amount

    Hello Experts

    I amw Group on

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    I'm unable to solve this Case statement.

    My requirement is that if the value of the attribute is greater than 50, then add 1 to the sum for attribute 4 the sum should be 4


    WITH T AS
    (
    Select MATH_CONV_SCR 70, 68 MATH_PERC, writ_conv_scr 66, 67 writ_per Union double all the
    Select MATH_CONV_SCR 70, MATH_PERC 48, writ_conv_scr 66, 67 writ_per Union double all the
    Select MATH_CONV_SCR 70, 68 MATH_PERC, writ_conv_scr 66, 67 double writ_per
    )
    (
    Select)
    CASE
    WHEN MATH_CONV_SCR > 50 THEN 1
    WHEN MATH_PERC > 50 THEN 1
    WHEN WRIT_CONV_SCR > 50 THEN 1
    WHEN WRIT_PER > 50 THEN 1
    TOTAL END)
    T
    )


    The expected answer is
    4
    3
    4
    for the respective folders


    Please give me the solution

    Thank you

    RB

    Hello

    Rb2000rb65 wrote:
    Hello Experts

    I amw Group on

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production...

    Thanks for posting the version and sample data; It is very useful.

    ... Select)
    CASE
    WHEN MATH_CONV_SCR > 50 THEN 1
    WHEN MATH_PERC > 50 THEN 1
    WHEN WRIT_CONV_SCR > 50 THEN 1
    WHEN WRIT_PER > 50 THEN 1
    TOTAL END)
    T

    Don't forget that the WHEN of a CASE expression clauses are mutually exclusive. If none of them are evaluated to TRUE, then all of the following are not even tried.

    )

    The expected answer is
    4
    3
    4
    for the respective folders

    Please give me the solution

    Here's one way:

    SELECT  CASE WHEN math_conv_scr > 50 THEN 1 ELSE 0 END
          + CASE WHEN math_perc      > 50 THEN 1 ELSE 0 END
          +     CASE WHEN writ_conv_scr > 50 THEN 1 ELSE 0 END
          + CASE WHEN writ_per      > 50 THEN 1 ELSE 0 END     AS total
    FROM       t;
    
  • Case statements with AND

    Hi all.

    I use a case statement to represent the values for different regions in a command prompt. I'm having some difficulties, with the values in the case statement. Here is an example of a simplified and shortened my code version.

    CASE

    WHEN 'Region '. "" Region name "="A"THEN"AMERICA ".

    WHEN 'Region '. "" Region name "= 'B' THEN 'CHINA '.

    WHEN 'Region '. "" Region name "= 'C' THEN 'EUROPE '.

    WHEN 'Region '. "' Name of the region ' = 'A' AND 'B' AND 'C' THEN 'GLOBAL '.

    END

    My error when I use it in my statement. The formula is accepted, however, all the values are displayed in my guest except 'GLOBAL '.

    How can I be able to assign a "GLOBAL"value in my guest? ".

    Jagadekara I think that you do not get the point. Any given row retrieved from a data source cannot have all three at one point values!

    AJ was trying to tell you, is that your CASE logic has no sense at all.

  • Case statement with building xml

    Select
    () XMLType.GetClobVal
    XMLElement ("variable"
    XMLAttributes (vcInternationalDate?" as "type")
    XMLAgg (XMLElement ("item",
    CASE WHEN THE TEMPO IS NOT NULL THEN
    , XMLElement ("utc", TO_CHAR (TIME,' dd/MM/YYYY HH24:MI:SS)) END))
    , XMLElement ("timezone_offSet", ZONE SCHEDULE)
    )
    )
    )
    )
    like 'CREATIONDATE '.
    of twgenericosdb. TEST
    WHERE ID = 1

    The query above without the case statement producing the result to follow:

    < type variable = "vcInternationalDate [:]" >
    < item >
    < utc > 2009-12-20 15:00 < / utc >
    < timezone_offSet > 3600000 < / timezone_offSet >
    < / point >
    < / variable >

    I'm looking for is a way in the case where the time utc is null statement do not tag the utc, utc is NULL the query returns the following result

    < type variable = "vcInternationalDate [:]" >
    < item >
    < utc > < / utc >
    < timezone_offSet > 3600000 < / timezone_offSet >
    < / point >
    < / variable >

    I'm trying to use the instruction box to return utc of the tag in the case of the UTC is NULL, but I get the error ORA-00917: Missing comma.

    Can someone help me?


    Thank you very much.

    Try

    SELECT XMLTYPE.GetClobVal
              (XMLELEMENT
                    ("variable",
                     XMLAttributes('vcInternationalDate[]' AS "type"),
                     XMLAGG(XMLELEMENT("item",
                                       CASE
                                          WHEN TEMPO IS NOT NULL
                                          THEN XMLELEMENT("utc", TO_CHAR(TIME, 'dd/MM/yyyy HH24:MI:SS'))
                                       END),
                            XMLELEMENT("timezone_offSet", TIMEZONE)))) AS "CREATIONDATE"
      FROM twgenericosdb.TEST
     WHERE ID = 1
    

    You can replace the CASE with NVL2

    SELECT XMLTYPE.GetClobVal
              (XMLELEMENT("variable",
                          XMLAttributes('vcInternationalDate[]' AS "type"),
                          XMLAGG(XMLELEMENT("item",
                                            NVL2(TEMPO,
                                                 XMLELEMENT("utc", TO_CHAR(TIME, 'dd/MM/yyyy HH24:MI:SS')),
                                                 NULL),
                                            XMLELEMENT("timezone_offSet", TIMEZONE))))) AS "CREATIONDATE"
      FROM twgenericosdb.TEST
     WHERE ID = 1
    

    URS

    Edited by: metzguar the 06.05.2010 15:04

  • Multiple queries on the same interactive report

    Is it possible to the button click, change the query for a report interactive?


    I created an example at apex.oracle.com

    workspace: stevendooley34

    username: dev01

    password: dev01

    Application: ForumExamples

    Basically what I want to be able to do is on the page by default IR there is a selection list. When the user clicks on the menu drop down and select an option, a search box appears. I want that this research working as a second IR query and third IR query searches that are slightly different queries.

    I know there is the filter option, but users do not want to have to go through and Insert commas between each value, so the second and third queries correct this, I'm not sure how to combine the three pages.

    I fixed this problem on my tabular reports by creating a new report on the same page and making it conditional to show only when the selection type is a certain, but as far as I know, you can't have multiple interactive reports on a single page.

    One thing to note:

    The example is in version 4.2 but my company uses 4.0 which is where I need to implement this.

    If there is another way to do this, I'm open to other ideas.

    Steven

    It's just an extension of what you already created in the Page 3 and 4

    It is very important that you learn to "think in sets.

    Once you have a definition for your dataset, you can easily create SQL statements

    What you're trying to do is to define a set of data that follows these rules:

    • If the search type is null--> return all ranks
    • If the input box is nowhere--> return all ranks
    • If search type = "name"--> return lines which correspond to ename (...)
    • If search type = 'job'--> return lines which match job in (...)

    Your rules will apply in the WHERE clause as:

    WHERE

    : P3_SEARCH_TYPE is null

    or: P3_SEARCH_INPUT is null

    or (: P3_SEARCH_TYPE = 'name' and ename (...))

    or (: P3_SEARCH_TYPE = "work" and work in (...))

    I already modified it Page 3 since it was 90% of the required stuff.

    MK

    Post edited by: Mike Kutz
    reorganized for clearity

  • Multiple queries on the same data entry form

    I hope I am in the right forum!

    I'm working on a data entry screen that is interfaced with a data base for pre-determined entries.  The user will choose the first name of the Member, not problem here, then using this last name, a list of names that match the last name.  Here's what I have so far:

    < CFQUERY DATASOURCE = "cfissues" Name = "LNameQry" >

    SELECT LastName

    Members

    ORDER BY name

    < / CFQUERY

    < CFQUERY DATASOURCE = "cfissues" Name = "FNameQry" >

    SELECT FirstName

    Members

    WHERE LastName = #LastName # (' #LastName # ') (#FORM. LastName #)

    < / CFQUERY

    <!--- ================== --->

    < CFSELECT NAME = 'name '.

    QUERY = "LNameQry."

    VALUE = 'value '.

    etc.

    < / CFSELECT >

    The user selects a member of family name.  Using this name, I want to run the FNameQry query that retrieves all the names that correspond to this last name chosen by the CFSELECT statement.  In this way, the drop-down list for the first name field contains only the names of skills (not all 7,000 on the database!).  I have more to do beyond that, but just to get this first part of work would be of great achievements.

    I have used various combinations of the name chosen by the CFSELECT run FNameQry, but nothing seems to work.  I get an error on LASTNAME is not defined.

    I guess I need to (somehow) define a variable that will be filled with the value selected in the CFSELECT statement and use it in the FNameQry?

    Hello

    Use isdefined "(form. LastName") for FNameQry

  • IMac is not able to share multimedia files with multiple users on the same computer.

    We just bought a new IMac that we were very excited.  We have phones Apple and iPads, replacement and ten year with a new Mac old PC made since.

    Now, the trouble begins. For more than ten years Windows had several usernames on the same machine and have been able to have a shared folder only for music, pictures and video that my iTunes program and others could acsess and share from several user names. This kept all in one place for new photos families by me or my wife and our 30 gigabytes of music that comes from our CDs was available at bolt of us. Now in train to implement on IMac should be easy but is impossible.  after transferring the music to my login information, it cannot acsess all files on my login. I am not even able to share or provide his acsess. I can move the iTunes folder to my shared folder. She can get acsess now but iTunes says that the library file is locked. I worked with care from Apple on the phone for that sold, but they believe it will not be possible without creating two copies of the 30 gigabytes of music for each of us. who would take more hard drive when it failed too.  Sharing is not any help. These files were before iTunes. I'm not pay 30 dollars a month to store in icloudcor use a google reader slow to the Internet connection when everything's fine here. Apparently Applow programmers do not believe in sharing of multimedia files between two users on the same device, even if a PC does that very well. My choice here is so far have duplicates of all the photos, music and videos loaded on the disc for me and my wife, charge all the media for an external hard drive which for some reason any all Apple programs will share, or return the mac to another PC that will be able to make several connections with sharing music and photos. Apple if you are reading this you are 10 years behind on that. Not everyone is born in the last five years and bought their music on iTunes to be able to use home sharing. Home sharing cannot help this. your applications should be able to be told to use the media files shared without import copies to readers of the user. I am very disappointed. Someone else has any ideas for that?  I have pictures, not iPhoto. I have a week more to be able to return it. I'm not interested in making a fake account that is always connected to share or maintaining of me constantly connected. It should have been easy, I had to be happy to play with new software.

    Photos, iPhoto and iTunes libraries must appear on an external hard drive that is formatted as shown below to be used by multiple users on the same Mac:

    So get a properly formatted external HD and move your iPhoto/pictures of her as well as your iTunes library.  This way all your iMac users can access and use both libraries.

    An alternative to the external HD method is to partition your internal hard drive into two partitions, one for libraries.  It is formatted as shown above and be large enough to contain the libraries and allow the expansion of libraries.

  • Help with multiple Gradients on the layer mask

    I was watching a tutorial and I saw someone using multiple gradients on the same layer mask. When I try everything that is happening, it's photoshop to erase the last of them, I applied. An example would be using a gradient on the four corners of an image, but of different variations.

    Any help is appreciated!

    I use CS4, I don't know if that makes a difference?

    Or multiplying the mixture on the gradient. Screen to display

  • Results of the query variant with unused table in the from clause

    Hi all

    I (processing_table2) table specified in the FROM clause in the SQL query , but I have not used any of its value in the SQL statement , but it still affects the results of the query. Please help me out here I'm naïve.

    This is the provided query

    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    cssp sales_split,
    processing_table2
    WHERE crev.order_num = '7631090072'

    Results of the above query : 344028065018.359



    SELECT

    Sum((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    sales_split PCSS

    WHERE crev.order_num = '7631090072'

    Results of the above query : 26463697309.1046


    Someone here suggest me pls!

    924804 wrote:
    Hi all

    I (processing_table2) table specified in the FROM clause in the SQL query , but I have not used any of its value in the SQL statement , but it still affects the results of the query. Please help me out here I'm naïve.

    This is the provided query

    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    cssp sales_split,
    processing_table2
    WHERE crev.order_num = '7631090072'

    Results of the above query : 344028065018.359

    SELECT

    Sum((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    sales_split PCSS

    WHERE crev.order_num = '7631090072'

    Results of the above query : 26463697309.1046

    Someone here suggest me pls!

    CARTESIAN PRODUCT of the changes result set

  • Identify the best CPU using multiple queries on the database environment

    Hello

    We live high CPU on one of our development servers (AIX 6/11 GR 2). It has several databases and we need check the queries that are causing hiking of the cpu.

    So, how can we specific database queries and it is when there are multiple databases?

    I could use nmon to get the process, $ query session v and v $, v$ sqlarea, if there is only one.

    Thank you!

    Hello

    There will be no direct approach (check if GRID allows to control/OEM), AWR and STATSPACK review should be best approach once and for all the DB to fix permanently, if not then...

    Identify top/topas/nmon top or 10 os process ID's, although they features will look like unless the owner is different.

    Return to the command prompt using ps - ef

    ajay@cts-db-vashi#ps -ef| egrep -i "8716444|7471138|12451978"
    oracle9i  8716444        1   0   Dec 14      - 291:51 ora_dia0_CTS
    oracle9i 12451978        1   0   Dec 14      - 62:50 ora_vktm_TBMS
     
    

    If you don't want to use top/topas/nmon use below with appropriate sort to get high cpu/memory process & pass it to v$ for more details in sqlplus

    /usr/bin/ps aux |/usr/bin/sort -nrk 3,3 | egrep -iv "root" | head -10
    

    Thank you
    Ajay more
    http://www.moreajays.com

  • RDP to machine with multiple monitors, preserve the application position

    Dear community

    I have a Windows 7 Pro machine in my office with 2 monitors. I have my apps positioned on these two monitors.

    Of the House, I use RDP to connect to this computer. My RDP supported a single window, applications appears in this window.

    If I disconnect the RDP session, my desktop computer remains connected. I connect back to the office, and my apps will automatically go to their 'proper' again monitor.

    It's all a great feature, which means that I can't move my apps around again once I am back in the office.

    My colleague has the same configuration, but it has 6 monitors at the office.

    Following the same logic from above, I would expect applications to their selected monitor, but appears not to be the case.

    Does anyone know if there are limits here?

    Kind regards

    Hello

    Thanks for posting your query on the Microsoft Community.

    I understand how it could be frustrating when things don't work as expected and I appreciate your efforts to resolve the issue.

    However, before I would need some information to help you best.

    This computer is on a domain network?

    If Yes, then we have a support forum dedicated to systems on area issues, I suggest you to post your query on Microsoft TechNet forum for this issue. You can get more effective suggestions and adapted by experts familiar with this topic.

    Please visit the link below to find a community that will support what ask you:

    Microsoft TechNet

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Thank you

Maybe you are looking for