Help needed in business logic implmentation in oracle sql.

I got a requirement from customer that i need to generated numbers based on first value which is entered by users but not second values..
for example:
c1 c2
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
3 3
4 3
1 4
2 4
3 4
4 4
1 5
2 5
3 5
4 5
unlimited..
the user input only first column values which comes from UI and i need to provide second column values when records are getting inserted into db table.
user always enter only 1-4 values in first column but never input second values in second column of table.. both columns are numerical.
the second values should be provided automatically or programmatically when records are getting inserted into table and automatically... how this can be done?
Can any one help me out to get this done either using sql,plsql concept?
thanks a lot in advance.

Hi,
Demonstration
SQL> DROP TABLE t1;
Table supprimée.
SQL> CREATE TABLE t1 (c1 NUMBER, c2 NUMBER);
Table créée.
SQL>
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1  (c1) values(2);
1 ligne créée.
SQL> insert into t1 (c1) values(3);
1 ligne créée.
SQL> insert into t1 (c1) values(4);
1 ligne créée.
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1 (c1) values(2);
1 ligne créée.
SQL> insert into t1 (c1) values(3);
1 ligne créée.
SQL> insert into t1 (c1) values(4);
1 ligne créée.
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1 (c1) values(2);
1 ligne créée.
SQL> commit;
Validation effectuée.
SQL>
SQL> CREATE OR REPLACE VIEW view_t1
  2  AS
  3     SELECT c1, ROW_NUMBER () OVER (PARTITION BY c1 ORDER BY c1) c2
  4       FROM t1;
Vue créée.
SQL>
SQL>
SQL> SELECT   c1,c2
  2      FROM view_t1
  3  ORDER BY c2, c1;
        C1         C2
         1          1
         2          1
         3          1
         4          1
         1          2
         2          2
         3          2
         4          2
         1          3
         2          3
10 ligne(s) sélectionnée(s).
SQL>

Similar Messages

  • Help: Need Project Business case

    Kindly provide me with business case that is related to oracle projects track.
    Please help me i need urgent help.
    This my mail : [email protected]

    You should find plenty of useful information here...
    http://www.oracle.com/us/products/applications/ebusiness/projects/index.html

  • Help Needed in Relational logic

    Hi
    Working in 2008 R2 version.
    Below is the sample data to play with.
    declare @users table (IDUser int primary key identity(100,1),name varchar(20),CompanyId int, ClientID int);
    declare @Cards table (IdCard int primary key identity(1000,1),cardName varchar(50),cardURL varchar(50));
    declare @usercards table (IdUserCard int primary key identity(1,1), IDUser int,IdCard int,userCardNumber bigint);
    Declare @company table (CompanyID int primary key identity(1,1),name varchar(50),ClientID int);
    Declare @client table (ClientID int primary key identity(1,1),name varchar(50));
    Declare @company_cards table (IdcompanyCard int primary key identity(1,1),CompanyId int,IdCard int)
    Declare @Client_cards table (IdclientCard int primary key identity(1,1),ClientID int,IdCard int)
    insert into @users(name,CompanyId,ClientID)
    select 'john',1,1 union all
    select 'sam',1,1 union all
    select 'peter',2,1 union all
    select 'james',3,2
    Insert into @usercards (IdUser,IdCard,userCardNumber)
    select 100,1000,11234556 union all
    select 100,1000,11234557 union all
    select 100,1001,123222112 union all
    select 200,1000,2222222 union all
    select 200,1001,2222221 union all
    select 200,1001,2222223 union all
    select 200,1002,23454323 union all
    select 300,1000,23454345 union all
    select 300,1003,34543456;
    insert into @Cards(cardName,cardURL)
    select 'BOA','BOA.com' union all
    select 'DCU','DCU.com' union all
    select 'Citizen','Citizen.com' union all
    select 'Citi','Citi.com' union all
    select 'Americal Express','AME.com';
    insert into @Client(name)
    select 'AMC1' union all
    select 'AMC2'
    insert into @company(name,ClientId)
    select 'Microsoft',1 union all
    select 'Facebook',1 union all
    select 'Google',2;
    insert into @company_cards(CompanyId,IdCard)
    select 1,1000 union all
    select 1,1001 union all
    select 1,1002 union all
    select 1,1003 union all
    select 2,1000 union all
    select 2,1001 union all
    select 2,1002;
    Requirement : 
    1. Get the distict Users card details. the reason for using distinct is, user can have same card multiple with different UserCardNumber.
    Ex : user can have more than BOA card in the @usercards table with different UserCardNumber. But though he has two BOA card, my query should take one row.
    2. After the 1st step, i need to check if any details on @company_cards based on Users companyId.If yes then selct the details from @company_cards. if not select it from @client_cards
    In this case we need to make sure that we shouln't have repeated data on @FinalData table. 
    My Logic:
    Declare @FinalData table (IDCard int,CardName varchar(50),CardURL varchar(50))
    declare @IdUser int = 100, @ClientID int,@companyID int;
    select @ClientID = ClientID,@companyID = CompanyId from @users where IDUser = @IdUser;
    insert into @FinalData (IDCard,CardName,CardURL)
    Select distinct c.IdCard,c.cardName,c.cardURL from @usercards UC join @Cards C on(uc.IdCard = c.IdCard)
    where IDUser=@IdUser;
    if exists(select 1 from @company_cards where @companyID = @companyID)
    BEGIN
    insert into @FinalData(IDCard,CardName,CardURL)
    select c.IdCard,c.cardName,c.cardURL from @company_cards cc join @Cards c on(cc.IdCard = c.IdCard) where CompanyId = @companyID
    and cc.IdCard not in(select IDCard from @FinalData);
    END
    ELSE
    BEGIN
    insert into @FinalData(IDCard,CardName,CardURL)
    select c.IdCard,c.cardName,c.cardURL from @client_cards cc join @Cards c on(cc.IdCard = c.IdCard) where ClientID = @ClientID
    and cc.IdCard not in(select IDCard from @FinalData);
    END
    select * from @FinalData;
    the logic produces the valid result. Is there any alternative way to achieve this logic. I feel there might be some proper way to query this kind of logic. any suggestion please.
    [the sample schema and data i provided just to test. i didn't include the index and etc.]
    loving dotnet

    You can simply merge the statements like below
    Declare @FinalData table (IDCard int,CardName varchar(50),CardURL varchar(50))
    declare @IdUser int = 100
    ;With CTE
    AS
    Select IdCard, cardName, cardURL,
    ROW_NUMBER() OVER (PARTITION BY IdCard ORDER BY Ord) AS Seq
    FROM
    Select c.IdCard,c.cardName,c.cardURL,1 AS Ord
    from @usercards UC join @Cards C on(uc.IdCard = c.IdCard)
    where IDUser=@IdUser
    union all
    select c.IdCard,c.cardName,c.cardURL,2
    from @company_cards cc join @Cards c on(cc.IdCard = c.IdCard)
    join @users u on u.CompanyId = cc.CompanyId
    where u.IDUser = @IdUser
    union all
    select c.IdCard,c.cardName,c.cardURL,3
    from @client_cards cc join @Cards c on(cc.IdCard = c.IdCard)
    join @users u on u.ClientID= cc.ClientID
    where u.IDUser = @IdUser
    )t
    insert into @FinalData (IDCard,CardName,CardURL)
    SELECT IdCard, cardName, cardURL
    FROM CTE
    WHERE Seq = 1
    select * from @FinalData;
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Help needed on the logic used to display ERP Sales order in CRM WEB UI

    Hi,
    I have a requirement where i need to trigger an activity/workflow in CRM for orders that are created through ERP Salesorder functionality. In the workflow list, we need to give the order description and provide an hyperlink to the order number. on selection of order number, it should display the ERP sales order. To achive this in workflow, i am trying to understand the as-is standard functionality which is available in Agent Inbox search on ERP sales order.This search is getting the ERP orders and on selecting the order it is opening the ERO sales order page. I tried debugging the method GET_MAINCATAEGORY available in the component iccmp_inbox and in the view Inboxsearch.But couldnt really able to crack the logic how it is retrieving the ERP sales order from inbox search. Any pointers on how this is achieved will be of great help.
    Thanks,
    Udaya

    Hi Denis,
    very good idea. I thougt myself about that workaround, but it is not really that for what I searched.
    I mean the "SAP Query" is a really good standard tool, that are used by many customers. That is why think there must be a standard way to display the SAP Query in the Web UI without using Transaction Launcher.
    But it seems that there is no way, except of the transaction launcher or by using an additional analyse system like SAP BI.
    By the way do you know a Web UI compoment which enable the user to start reports like SE38?
    Regards
    Fabian

  • Help Needed in Date Logic

    Hi I am working in sqlserver 2008 R2 and below is my sample research query
    i am trying to get previous 6 months data.
    WITH CutomMonths
    AS (
    SELECT UPPER(convert(VARCHAR(3), datename(month, DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N, 0)))) Month
    ,DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N, 0) startdate
    ,DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N + 1, 0) enddate
    FROM (
    VALUES (1)
    ,(2)
    ,(3)
    ,(4)
    ,(5)
    ,(6)
    ) x(N)
    WHERE N <= 6
    SELECT month
    ,SUM(isnull(perks.amount,0)) AS PerkAmount
    FROM CutomMonths
    LEFT JOIN (
    select 10.00 as amount,'2014-04-03' as StartDate,'2015-04-03' as EndDate union all
    select 10.00 as amount,'2014-04-03' as StartDate,'2015-04-03' as EndDate
    ) perks ON
    CutomMonths.startdate >= perks.StartDate
    AND CutomMonths.startdate < perks.EndDate
    GROUP BY CutomMonths.Month
    ,CutomMonths.startdate
    ORDER BY CutomMonths.startdate ASC
    current output what i am getting:
    Expected Output:
    I found why the April month i din't get the $20 because the startdate of my perks CTE '2014-04-03'. If it is '2014-04-01' then i will get the expected output.
    But i should not change the the date on perks. How to neglect this date issue and consider the month instead to get the expected output. please help me on this as i am struggling on my logic 
    loving dotnet

    I'm just going to focus on the JOIN criteria in this reply since my answer above and your 2nd response are essentially the same except for the JOIN.
    What your are describing and what you are doing in code is conflicting. 
    You are saying this:
    "I just need to check whether the perks start date falls in between month start date and month end date"
    ..., which translated directly to code would be this:
     ON perks.StartDate >= CustomMonths.StartDate
    AND perks.StartDate <= CustomMonths.EndDate
    What I believe you are getting after is this:
    "I just need to check whether the dates within the perks start and end date range fall in between month start date and month end date"
    ..., which translated directly to code would be this, which is also my answer proposed above:
    ON CustomMonths.StartDate >= DATEADD(DAY, -(DAY(perks.StartDate) - 1), perks.StartDate)
    AND CustomMonths.StartDate <= perks.EndDate
    However, if you really want to use the code solution you proposed, then you would actually be saying this:
    "I just need to check whether the dates within the perks start and end date range fall in between month start date and month end date, but if perk end date happens to be the first day of the month, then ignore it and use the previous day."
    ..., in which case then your code, as follows, would be the solution:
     ON CutomMonths.startdate >= DATEADD(mm, DATEDIFF(mm, 0, perks.StartDate), 0)AND CutomMonths.startdate < DATE
    ADD(mm, DATEDIFF(mm, 0, perks.EndDate), 0)
    NOTE: The alternate JOIN I had commented out in my proposed answer above will do the exact same thing as your latest proposed solution
     ON CustomMonths.StartDate >= DATEADD(DAY, -(DAY(perks.StartDate) - 1), perks.StartDate)
    AND CustomMonths.StartDate < perks.EndDate
    BTW, I see how you are getting to the first day of the month by subtracting all the months from the given date to 01/01/1901, and then turning around and adding them all back to 01/01/1901.  While that is one way to get to the first day of the month, it
    seems excessive from a calculation stand point, although I haven't performed any performance tests to know for certain.
    SELECT DATEADD(mm, DATEDIFF(mm, 0, '2014-04-03'), 0)
    I prefer simply subtracting one less than the current day number from the given date to get to the same first day of the month value.
    SELECT DATEADD(DAY, -(DAY('2014-04-03') - 1), '2014-04-03')

  • Help: need to extract an application from oracle/apex directory

    Hi, all!
    I worked on oracle10xe and apex 1.3.1 and then messed with partition table a bit so got my windows crashed and I don't believe i'll be able to restore it.
    so what i have is an oracle directory from the long-dead windows with apex inside, and i need to extract the applications and the data i was working with somehow.
    Any thoughts?
    Does anybody knows where does oracle store all its databases and where apex keeps its applications?
    oraclexe\oradata\xe\ has some .dbf files in it, will it work if i just write them over in a newly installed oracle+apex?

    Hello,
    At this point, since you can't turn to Oracle Support (since it is XE), then I would suggest asking amongst your colleagues/friends/etc and trying to find a friendly DBA who will try and help you out for a beer or 3.
    Depending on how critical your work was, I wouldn't throw away all hope of recovering your database until you've exhausted all the options.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Help needed regarding insertion of data into oracle

    Hi,
    I am student currently trying to do a project to up a semantic database using oracle. Have set up the semantic technologies for oracle 11gr2 and used the jena adapter to load an owl into oracle.
    But i am not sure how do i insert sample data that could reference the owl.
    Tried searching but unable to find any simple tutorial and have also looked through the developer's guide and also jenaadaptor guide.
    Is there any tutorials available that could help? thank you

    Hi,
    Please go to the OTN site for more information:
    http://www.oracle.com/technology/tech/semantic_technologies/index.html
    There you can find some training info (try the NCI Oracle By Example, it's a good tutorial):
    http://www.oracle.com/technology/tech/semantic_technologies/htdocs/semtech_training.html
    Regards,
    Vladimir

  • Help needed in changing Access query to Oracle query

    hello folks,
    I have already posted this question and got some help previously but i have additional query being added to the previous one so thought of seeking some help.here it goes
    Am having an access report which comes from a query. the current query behind the report is a consolidated one and comes from quite a few tables . My requirement is to develop a crystal report( which comes with a native oracle db driver) which should look same as the access report. But am unable to use the access query becoz of its format or something. So anyone please throw some light on this. Any help would be kindly appreciated.
    SELECT Debtor . EVENT_ID,
    Debtor . MEDCAP#,
    Debtor . Client Name,
    Debtor . CLIENT,
    Debtor . Provider ID,
    Debtor . GROUPNUMBER,
    "OPEN" AS Status,
    (IIf(clip_file = "Y", "Clip", "Open")) AS clipStatus,
    IIf(collect_only = "Y", "Collection Only", "Regular Collections") AS Collect ?,
    IIf(IsNull(Principal), 0, principal,
    IIf(IsNull(PAR_FLAG), "N", IIf(PAR_FLAG <> "N", "P", PAR_FLAG)) AS PAR_NPAR_FLAG,
    Right(PatientMemberID, 2) AS Patient Suffix
    FROM Period, Debtor
    INNER JOIN LOB_subtypes ON Debtor . SUBTYPE = LOB_subtypes . SUBTYPE
    WHERE (((Debtor . CLIENT) = "CV1") And ((Period . PeriodName) Is Not Null) And
    ((Debtor . STATUS) = "OPEN") And ((LOB_subtypes . LOB) = "PBA"));
    Thanks

    The expression...
    IIf(IsNull(Principal), 0, principal) - IIf(IsNull(PRORATED_TRANAMT), 0, prorated_tranamt)...is equivalent to...
    NVL(PRINCIPAL, 0) - NVL(PRORATED_TRANAMT, 0)Does that answer your question?
    As for...
    IIf(IsNull(PAR_FLAG), "N", IIf(PAR_FLAG&lt;&gt;"N", "P", PAR_FLAG))...you might try...
    CASE
        WHEN PAR_FLAG IS NULL THEN 'N'
        WHEN PAR_FLAG != 'N' THEN 'P'
        ELSE 'N'
    END

  • Help needed:What is the Future of Oracle DBA Professional

    Hi Guys,
    I am new(fresher) to the field of Database administration can u tell me more about the role of a DBA and after 3-5 years of experience where can i find oppurtunities and which companies hire DBA's and does certification help DBA’s what edge do DBA’s have over Software Developer’s
    Thanks
    Vijay

    I think this is a simple answer . . . more and more data is collected. The need for DBAs will grow at a similar growth rate. I really watch how well storage market to get a feel of how the need for DBAs changes.
    Heck HP announced http://www.techworld.com/news/index.cfm?newsID=12183&printerfriendly=1
    odds are there is a database or media server or both using that storage.

  • Help needed in Count Logic

    Hi Following are my table structure and data . i have two column( No.of.Fields , Text)
    No.of.Fields | Text
    8 | YYYYYYYY
    6 | YYYYYY
    4 | NNNN
    3 | NNN
    2 | YYYYY
    i want a sample query to validate the no.field count and Text char count matches. if that doesn't match i want to get the particular record details.
    In the above sameple no.of field 2 has exceeds char count. actual text shoulod be "YY".
    so please help me to identify the rows which has non matached. i have more than 500 records in the table. please help me on this by providing the sample.

    Hi.
    >
    Don't forget about NULLs:
    >
    Thanks you're right, it depends on how he want to deal with nulls, e.g. if we assume that nulls have a length of 0
    Here's one way:
    WITH data AS
         SELECT 8 n,'YYYYYYYY' string FROM DUAL UNION ALL
         SELECT 6 n,'YYYYYY' string FROM DUAL UNION ALL
         SELECT 4 n,'NNNN' string FROM DUAL UNION ALL
         SELECT 3 n,'NNN' string FROM DUAL UNION ALL
         SELECT 2 n,'YYYYY' string FROM DUAL UNION ALL
         SELECT 8 n,'YYYYYYY' string FROM DUAL UNION ALL
         SELECT 6 n,'YYYYY' string FROM DUAL UNION ALL
         SELECT 4 n,'NNN' string FROM DUAL UNION ALL
         SELECT 3 n,'NN' string FROM DUAL UNION ALL
         SELECT 2 n,'YYYY' string FROM DUAL UNION ALL
         SELECT 0 n,null string FROM DUAL UNION ALL
         SELECT 1 n,null string FROM DUAL
    SELECT
         n,
         string,
         NVL(LENGTH(string),0) ls
    FROM data
    WHERE n != NVL(LENGTH(string),0);
    N     STRING     LS
    2     YYYYY     5
    8     YYYYYYY     7
    6     YYYYY     5
    4     NNN     3
    3     NN     2
    2     YYYY     4
    1     (null)     0Best regards.

  • Help needed in Business one application

    Hi all,
    My requirement is as below.
    In Business one application,
    An End user will create Purchase order of 10 units for Item A.
    After that when he do Goods Receipt for Purchase Order for 10 units,he will send all 10 units to Quality Manager for Quality Check.
    Now say,if out of 10 units,2 units are rejected because of bad quality, he should be able to update Document for Goods Receipt against purchase order for only 8 units.
    But as of now system is not allowing to Edit the document.
    Can any one give me an idea to fulfill the above requirement?
    Thanks & Regards,
    Ravi

    Hi Ravi
    It is not possible to enter rejected quantity in Goods receipt PO(GRPO) so we have to enter the total quantity received and if say 2 nos are rejected, copy the Goods receipt PO to Return and change the quantity field to 2 nos. Then when AP Invoice is raised payment will be made only for 8 nos. The Quality control (QC) person can check the items and mention his remarks in the hard copy of item challan.
    However if you want to show the rejected quantity in GRPO create an user defined field with field name as "Rejected quantity" and the rejected quantity can be noted by the QC person. But this field is only for information and not taken into account.
    Hope this clears your doubts.
    Rozario

  • Help needed on Mapping logic

    Hi guys,
    I have logic like,
    pernr>logic>pernr.
    Pernr is the first field.
    Whenever the logic fails, it should not process rest of the below fields.
    it should directly go to next record.
    Any ideas.......
    santosh.

    You can achieve this using gloval variable.
    1. right click on the parent node  of pernr. -
    >Add Variable (say ifPernrTrue)
    2. Map this variable with the same logic and give value "true" if logic successful and "false" if logic fails
    Whenever the logic fails, it should not process rest of the below fields.
    3.Map rest of fields as :
    ifPernrTrue (the variable u created) \
    >   if  (without else )  -
    > fields...
                   source filed     /

  • Help needed in the logic

    i hav select query like this:-
    SELECT COUNT(*) INTO NO_OF_WORKERS FROM PA0000
    WHERE ENDDA = '99991231' AND STAT2 = '3'.
    with this select query , i can get the no. of workers .
    How can i get the no. of workers in the recording period <u><b>excluding</b></u> those persons who were absent from work on paid/unpaid leave for the entire period?

    Hi Hari,
    I got the solution for you.use the following sql query.
    SELECT COUNT(*) INTO NO_OF_WORKERS
    FROM PA0000 AS a inner join PA2001 as b on apernr = bpernr
    WHERE aENDDA = '99991231' AND aSTAT2 = '3'
    and ( bawart = '0100' or bawart = '0727' ).
    Now onething, in my comapany, in PA2001, field awart = '0100' means paid leave and 0727 means unpaid leave.
    this things r configured in SPRO. so must replace the values of awart in sql qurey as per the values of paid/unpaid leave in your company.
    you can do one thing, go to infotype pa30..then put 2001 in the infotype field in that screen, put cursor in STy field , hit F4 , it will show you the value for paid unpaid leave.
    Note the value , modify the value of awart field inthe sql query, thats it.
    cheers, and hey dont forget to give reward points.

  • Help needed with condition based joins in pl\sql

    Hi,
    I need to get data from 6 tables,
    Scenario 1 : I need to join 4 tables and join this result set to 5th table
    Scenario2: resultset of join of 4 tables to 6th table
    In this case how do i save the intermediate result set of 4 tables to use it in further joins.

    Welcome to the forum.
    Your question is broad.
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    A more detailed example would help.
    Mention your database version as well and see the FAQ http://forums.oracle.com/forums/help.jspa when it comes to posting formatted examples using the {noformat}{noformat} tag
    However, i think using the WITH clause or a subquery ( a.k.a. inline view) is what you're looking for.
    Do some searches on http://asktom.oracle.com to find many examples.
    Also see:
    http://www.oracle-base.com/articles/misc/WithClause.php
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries007.htm#sthref3193                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Help needed - Planning Server 2012 solution, DC/Exchange/SQL/RDP host/Remote apps etc

    Hi All,
    I have a client needing me to provide a Windows server based solution for their business. I have limited experience with Server 2012, although I have worked with 2008R2 and SBS2011, I am needing some guidance with this 2012 project.
    The client has about 8-10 local users who work at one office with an NBN connection, and 2 other locations that have 3-5 users at each location. I am needing to provide them with a server based solution to manage their data, remote access and also their
    email. They are also likely to expand to another physical office soon.
    I need to provide them with a DC controller, Exchange server and possibly an SQL server in the future. They currently use an Act database, but I have been told that once the database in ACT grows to 4G, a dedicated database is required?
    I am currently thinking of having one physical server and virtualising the additional servers on this platform, however I come from a UNIX background and have not virtualised using Hyper V or ESXi before. I have read a little regarding the CLI and GUI Hyper
    V options, but I really need advice on what will suit my needs best from someone that has done it.
    I am thinking I maybe should recommend one physical machine with Server 2012 Std which, from what I understand, will allow me to install the host hyper V host on the physical machine and then I could possibly install an instance of Server 2012 as
    the DC, Exchange and SQL server on one VM licence, however I have read it is not preferred to have the exchange server on the same VM as the DC but have read that limiting the memory usage of Exchange can negate these issues?
    I will also need to have a terminal server/RDP session host in there as well which I could maybe use the 2nd VM licence for.
    I suppose my question is, considering that I need to end up with a DC, Exchange server, terminal server/RDP session host and possibly a SQL server in the future, am I better off virtualising and running these on a Server 2012 Std licence, that allows a hyper
    v host + 2xVM's or should I be splitting these roles up on different physical machines, keeping in mind costs need to be kept to a minimum.
    Also I need to consider the Microsoft Office side of things. Is it more financially viable to use office licences and use remote apps from the terminal server, or just purchase Office H&B for the workstations/laptops and have their outlook connected
    directly to the exchange server?
    I am concerned from the performance viewpoint that if I run the DC/Exchange and SQL from one VM, then the TS/RDP Host from the other VM licence it may be too much for the DC/Exchange/SQL VM to handle.
    I have used SBS 2011 in a few locations with Exchange and the SQL and DC roles installed on HP DL and ML gen 8 servers, and although they run a little slow on the console, they seem to serve the network clients fine.
    If do end up running on one physical machine the Hyper V host, one VM as a DC, Exchange and SQL server, and the other VM licence as a RDP session host, what sort of spec'd machine would be recommended to be able to do this, keeping in mind
    I usually lean towards HP servers.
    Anyhow, thx in advance and any comments or suggestions will certainly be appreciated.
    Mkm

    Hello,
    sorry but in your case without the knowledge of all major requirements i would suggest that you or your client contact an expert and not work with the forums to get this amount of information and setup requirements.
    Exchange on DCs is NOT recommended, even not from Microsoft. Also it is highly recommended to run at least 2 DC/DNS/GC per domain for failover and redundancy, of course NOT on the same physical machine.
    RDS servers should also run on dedicated machines and not be used for anything else.
    SQL should also run on a separate server.
    You cannot compare SBS version with regular server versions, the concept behind is different.
    With that small amount of users you should consider using an Office365 solution where you could use a plan that fits your needs and have just computers for your client employees.
    But as stated above therefore you should find an experienced consultant.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

Maybe you are looking for

  • Windows application design methods?

    New to Java I'm having the same problems as others... totally incomprehensible behaviours and jargon. I need to get Windows application made.   Is there a graphical, drag&drop  layout tool in which I can place 'controls' such as buttons, panels, tool

  • How do I create a Search window in a RoboHelp HTML 8 topic pane?

    I am working in RoboHelp HTML version 8 that is published as WebHelp. The system I am developing for has a search window as part of a skin that is available above the topic windows and is not always easily accessible. Can you create a search window t

  • Photos not changed to iPhoto on iPad

    OS x 10.9.2 has been installed succesfully on the mac, but my ipad iOS 7.1 has not changed it is still in photos. It syncs but no changes are made to photos? The problem now is that when I take a photo with my ipad I cannot email it. Can anyone guide

  • Can you run a bash script on boot in single user mode

    Hey guys quick question. Is it possible to run a bash script on boot in single user mode. I can create a file and dump it on the root hd. Let's call it repair. I can then boot to single user mode and run it by typing /repair. But I want it to do it a

  • Ichat doesn't work with one buddy - can't figure out why!

    It has to have something to do with the internet connection and the way they have it set up but I can't figure it out. My family all has macs - there is no problems with video chatting through our AIM accounts until we try and hook up with my parent'