Which data structure to use in this scenario? queue, stack, list, ...

Hi,
I'm hesitant about what data structure to use (best efficient one) in the following scenario
At a given moment I have an ordered set of data such as:
     (1,3,6,9,10)
and a current value (by instance, 11)
Then I need to access the LAST one (10) and
If my value is greater I will add it to the list. In this example I will add 11 so the list will be (1,3,6,9,10,11)
On the other hand, as a second step, I will iterate on the list as follows: I will get the first element, do something, then remove it, and go to next one until the list is empty. Therefore, basically I will access always the first element on the list.
I don't really care about the elements in the middle.
Which data structure do you suggest me to use?
I was thinking on Queue (easy to access the head, and extract one by one in order), but I don't know how to get the tail element (10 in this case), as it is the one that tells me if I have to add another element...
Thank you.

>
At a given moment I have an ordered set of data such as:
     (1,3,6,9,10)
and a current value (by instance, 11)
Then I need to access the LAST one (10) and
If my value is greater I will add it to the list. In this example I will add 11 so the list will be (1,3,6,9,10,11)Any data structure will do, I would suggest a LinkedList.
On the other hand, as a second step, I will iterate on the list as follows: I will get the first element, do something, then remove it, and go to next one until the list is empty. Therefore, basically I will access always the first element on the list.Use an iterator and the corresponding remove methods.
Mel

Similar Messages

  • Regarding which design pattern to use for this scenario???

    hi guys
    I am working on a J2EE application where I need to do translations for 3 different scenarios. It is basically a conversion from service order objects to invoices.
    First from a service order object to an invoice.
    Second a conversion from a transaction table.
    Third a conversion from a remote system.
    Finally the product is an invoice..
    What design pattern can i use ....is strategy pattern a good idea??
    Thanks
    J

    Hi,
    I think your problem is in result state. You can you sequencial block but for approve or reject you need to set target for each result state. Here I am providing a link. I think you will get your solution here please go through it.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/429bbd709914bce10000000a155369/frameset.htm
    if you have any query please let me know.
    Thanks
    Chandan

  • How to find which data elements are used in ABAP program ?

    I wish to find out which data elements are used in some programs .
    Is there any DD table which stores this information ?
    I know we can go to program and look in fields, but do SAP stores this information somewhere ?

    Dear Kaushal,
    Please check the table <b>TRDIR</b>.
    Regards,
    Abir
    Don't forget to award points *

  • Which Time variable should use compare this month with last month

    We want to calculate the increaed number of employees according to one action reason e.g. Entry to company compare with last month. In this case we have to use time variable in BEx query designer. Now can see 0calmonth has serval variable available.
    1) Should we use [0CMLMON] for last month and use offset for this month like [0CMLMON]-1 or [0CMLMON]+1 or use variable [0RSTTCM1], which variable should we use for this month and last month? Do we need to create variables by manually?
    2) Then using calculated KF to calculate the increaed number of employees, is this logic correct? If it is wrong, please info.
    Edited by: hi ni on Apr 22, 2008 7:58 AM

    Hi,
    For the comparison of last 2 months data, you can use two Restricted Key figures with reference to 0CALMONTH and it is better to use only customer exit variable for both RKF's.For the Last month use offset value as -1.
    Rgs,
    I.R.K

  • Which data structure?

    Hi there...
    Could you let me know what is the most efficient data structure to use (in terms of storage and access) if I have to store around 1 million <key,value> pairs?
    Thanx :)
    Tariq

    Yes, concurrency, when two or more threads would act upon the same data or data structure. Concurrent access, etc. Your question has nothing to do with concurrency, but rather Collections. But yes, HashMap or Hashtable depending on if one thread is going to be accessing the same data or multiple threads. Also a database might come in handy as well, such as MySQL or JavaDB (Apache Derby).

  • Want to check which data source is used by the composites

    HI All,
    I have a requirement here in which i want to see that which data source is used by the composites deployed on SOA.
    I dont have the code.
    Is there any quick way to do it(from console or backend without downloading the code)
    Thanks

    You can export the jar file from the EM console.
    1) Login to EM console
    2) Right click on the composite and select Export and With default options click on Export button
    Find the data source name from the exported code.
    Mark the posting appropriately as "helpful" or "correct answer", if your issue is solved.
    Regards
    Albin I
    [http://albinsblog.com/]

  • Urgent! Need help in deciding data structure to use

    Hi all,
    I need to implement a restaurant system by which a customer can make a reservation.
    I was wondering whether vector would be able to be store such an object, The thing is I don't want a complex data structure. just sumthin simple cos i hardly have anytime left to my submission. sighz...
    The thing is I need to able to search based on 2 properties of an object. Eg. I need to search for a reservation based on the customer name and the date he reserved a table.
    But I am totally clueless how to search thru a vector based on 2 properties of the object... Would really appreciate some help. Like an example how to so so based on my program. Feelin so lost...This is all I have so far:
    class AddReservation
         static BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
         //Main Method
         public static void main (String[]args)throws IOException
              String custName, comments;
              int covers, date, startTime, endTime;
              int count = 0;
              //User can only add one reservation at a time
              do
                   //Create a new reservation
                   Reservation oneReservation=new Reservation();                         
                   System.out.println("Please enter customer's name:");
                   System.out.flush();
                   custName = stdin.readLine();
                   oneReservation.setcustName(custName);
                   System.out.println("Please enter number of covers:");
                   System.out.flush();
                   covers = Integer.parseInt(stdin.readLine());
                   oneReservation.setCovers(covers);
                   System.out.println("Please enter date:");
                   System.out.flush();
                   date = Integer.parseInt(stdin.readLine());
                   oneReservation.setDate(date);
                   System.out.println("Please enter start time:");
                   System.out.flush();
                   startTime = Integer.parseInt(stdin.readLine());
                   oneReservation.setstartTime(startTime);
                   System.out.println("Please enter end time:");
                   System.out.flush();
                   endTime = Integer.parseInt(stdin.readLine());
                   oneReservation.setendTime(endTime);
                   System.out.println("Please enter comments, if any:");
                   System.out.flush();
                   comments = stdin.readLine();
                   oneReservation.setComments(comments);
                   count++;
              while (count<1);
              class Reservation
              private Reservation oneReservation;
              private String custName, comments;
              private int covers, startTime, endTime, date;
              //Default constructor
              public Reservation()
              public Reservation(String custName, int covers, int date, int startTime, int endTime, String comments)
                   this.custName=custName;
                   this.covers=covers;
                   this.date=date;
                   this.startTime=startTime;
                   this.endTime=endTime;
                   this.comments=comments;
              //Setter methods
              public void setcustName(String custName)
                   this.custName=custName;
              public void setCovers(int covers)
                   this.covers=covers;;
              public void setDate(int date)
                   this.date=date;
              public void setstartTime(int startTime)
                   this.startTime=startTime;
              public void setendTime(int endTime)
                   this.endTime=endTime;
              public void setComments(String comments)
                   this.comments=comments;
              //Getter methods
              public String getcustName()
                   return custName;
              public int getCovers()
                   return covers;
              public int getDate()
                   return date;
              public int getstartTime()
                   return startTime;
              public int getendTime()
                   return endTime;
              public String getComments()
                   return comments;
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    class searchBooking
         static BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
         public static void main (String[]args)throws IOException
              int choice, date, startTime;
              String custName;
                   //Search Menu
                   System.out.println("Search By: ");
                   System.out.println("1. Date");
                   System.out.println("2. Name of Customer");
                   System.out.println("3. Date & Name of Customer");
                   System.out.println("4. Date & Start time of reservation");
                   System.out.println("5. Date, Name of customer & Start time of reservation");
                   System.out.println("Please make a selection: ");          
                   //User keys in choice
                   System.out.flush();
                   choice = Integer.parseInt(stdin.readLine());
                   if (choice==1)
                        System.out.println("Please key in Date (DDMMYY):");
                        System.out.flush();
                        date = Integer.parseInt(stdin.readLine());
                   else if (choice==2)
                             System.out.println("Please key in Name of Customer:");
                             System.out.flush();
                             custName = stdin.readLine();
                   else if (choice==3)
                             System.out.println("Please key in Date (DDMMYY):");
                             System.out.flush();
                             date = Integer.parseInt(stdin.readLine());
                             System.out.println("Please key in Name of Customer:");
                             System.out.flush();
                             custName = stdin.readLine();
                   else if (choice==4)
                             System.out.println("Please key in Date (DDMMYY):");
                             System.out.flush();
                             date = Integer.parseInt(stdin.readLine());
                             System.out.println("Please key in Start time:");
                             System.out.flush();
                             startTime = Integer.parseInt(stdin.readLine());
                   else if (choice==5)
                             System.out.println("Please key in Date (DDMMYY):");
                             System.out.flush();
                             date = Integer.parseInt(stdin.readLine());
                             System.out.println("Please key in Name of Customer:");
                             System.out.flush();
                             custName = stdin.readLine();
                             System.out.println("Please key in Start time:");
                             System.out.flush();
                             startTime = Integer.parseInt(stdin.readLine());
                        }

    Please stop calling your questions urgent. Everybody's question is urgent to them. Nobody's are urgent to the people who are going to answer them. Calling your questions urgent suggests that you think they are more important than others' (They're not.) and will only serve to irritate those who would help you. It won't get your questions answered any sooner.

  • Need Help regarding which Material Type to use for the Scenario

    Hi,
    Here we are configuring the service scenario.
    Suppose Electric Switch of customer flat is not working.
    Here in this case I will purchase the switch. And along with service order
    I will do the delivery of the Material. Then will raise the Invoice to the customer
    with service charge as well as material cost.
    Here I will have to run the MRP also for that material  to raise the PR if stock goes below
    the reorder point.
    So I will have to maintain the Purchase view, Sales View & MRP view to that Material.
    So in this case which standard material Type can I use for this material? Or I have to create
    our own material Type for this material.
    Regards,
    Pradip

    ROH is usually a material type that is supposed to be consumed in production.
    HALB is a semifinished good, own produced and meant to consumed in production.
    Both are usually not forseen to be sold.
    A material that you buy yourself and sell to a customer is a trading good, which is HAWA in SAP.

  • How to determine which adapter to be used in a scenario

    Hi All,
    I am new to XI and have some very basic knowledge about it.
    I wish to know if I need to send data from a legacy(system A) to SAp (system B) how do I know what adapter to use. Should I use file, idoc ,JMS etc adapter.
    Is there a specific guide which I can use to know which adapter should be used in which conditions.
    Appreciate if you could guide me to some relavent weblog/steps.
    Thanks
    Shirin

    Hi Shirin,
    Before u start developing the objects in SAP-XI,kindly go through the below  mentioned blogs which would definitely help u in the road ahead.These blogs are meant for the freshers to XI like u...
    /people/sravya.talanki2/blog/2006/12/25/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-i
    /people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    These would definitely give u a good start into the world of SAP-XI
    Regards,
    Lokesh
    PS:Reward points if useful

  • Suggestion for whether CDLC + MIDP platform can be used for this scenario?

    Hi,
    I am developing an agent for mobile phones, with a solution which will cover most of the mobile phones (with OS Microsoft ME, Symbian, Blackberry RIM,..) and PDA's
    Features of the agent:
    Sending mobile inventory details like OS, apps running, etc to a server machine
    Installing apps/patches from server to mobiles
    Will the CDLC + MIDP platform be suitable for this kind of development?
    Thanks in advance.

    J2MENewbie wrote:
    Can you please specify why it cannot be used,Don't be silly. It can't be used because the features and services you require aren't a part of the feature set of Java ME.
    and please suggest which platform can i use for developing this application for mobilesNo idea. This forum is for CLDC and MIDP, not for random programming queries. Use Google for that.
    db

  • Which Design Pattern and how to design using OOP this scenario

    I am having trouble designing a module, can anybody help me?
    Because it will be hard to maintain this kind of module, I also think that this can test my skill of design pattern usage.
    Requirement
    This is basically an agricultural project (web application). I need to design a module where some calculation takes place.
    There are different crops involved like maize, tomato, okra etc. Each of these crops has different traits.
    Each trait has a measurement scale which lies in integer like 200-1000. Now let's say I have planted the crop and done measurement noted down the traits. Now I want to do some sort of measurement. Some measurements are simple and some are complex.
    Example
    Lets take an example of crop maize. I have recorded observations for 15 traits. (We'll use trait1-trait15 as examples, the actual name can be like plt_ht, yld, etc.)
    I recorded 5 observations for each trait:
    trait1 trait2 trait3 trait5 trait6..... trait15
    01,02,03,04 01,02,03,04 01,02,03,04
    User logs into system and selects his crops and enters data for these observations. I have to calculate either average or sum of the data entered for each trait.
    Complexity / centre of the problem
    So far it's simple but complexity comes when I have some different formulas for some of the traits.
    Example: trait YLD has a formula based on which I have to calculate its value, which may also depend on some other traits. Each different crop can have different traits.
    All this I am able to do - whenever user selects crop I will check for those specific traits and do calculations (if it's not a special trait then I either average or sum it, based on db entry), but there is a lot of hard coding.
    I would like to have suggestions on a better way of handling this.
    My code needs to handle both simple and complex calculations.
    Simple calculations are easy, I have take average of value entered for trait.
    The problem comes when I have to do complex calculations, since each crop have different traits with their own formulas, so to calculate I have to check for crop and then for complex trait. So I have to hardcode the trait name of complex traits.
    Can any tell me how I can design this using Java oops [?!?] so that I can make it generic?
    I have about 10 different crops. Some calculations are specific to crops, so there will be lot of code like the if below:
    hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
    } else if(cropId.equalsIgnoreCase("MZ") && traitName.equalsIgnoreCase("Shelling")) {
        avg=HybridTestDataUtility.calculateAvg(traitName, dataPoint, dataTraits, traitValues,dataPvalues, dataPoint, type);
        avg=avg*dataPoint;
        traitAvg=getMaizeYeild(traitName, traitAvg, population, avg, hybrid, area);
    } else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YLDGM")) {
        avg=HybridTestDataUtility.calculateAvg(traitName, dataPoint, dataTraits, traitValues,dataPvalues, dataPoint, type);
        //avg=avg*dataPoint;
        Object[] dataValues=getOKRAYield(traitName, traitAvg, population, avg, dividend,hasZeroValue,hybrid,repl);
        traitAvg = (HashMap<String, Float>) dataValues[0];
        hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
    } else if(cropId.equalsIgnoreCase("HP") && traitName.equalsIgnoreCase("w1-w10")) {
        avg=HybridTestDataUtility.calculateAvg(traitName, dataPts, dataTraits, traitValues,dataPvalues, dataPoint, type);
        avg=avg*dataPoint;
        Object[] dataValues=getHotPepperYield(traitName, traitAvg, population, avg,dividend,hasZeroValue,hybrid,repl);
        traitAvg = (HashMap<String, Float>) dataValues[0];
        hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("TLSSG_70")) {
        traitAvg=calculateTLCV(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues,50);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("TLSSG_100")) {
        traitAvg=calculateTLCV(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues,50);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_60")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_90")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_120")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_60")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_90")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_120")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_60")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_90")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_120")) {
        traitAvg=tomatoYVMVCalculation(traitName, traitAvg, dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
    } else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("ELCV_60")) {Can anybody think of a way to make a generic approach to this?

    There are crops and each crop have traits , traits are actually a mesuremet
    scale to decide growth of a seed of a particular crop.
    This module is to for planters to observe growth of seeds sowed of certain
    crops and take down n no of observation for each trait and upload in csv format.Once they enter
    data i have to either avg out the values or sum the values or sometimes
    there are more complex function that i have to apply it may differe for each
    trait .This is the whole module about.Just to give an idea about how they
    will enter data
    Hyubrid(seed) trait1 trait2 trait3 trait5 trait6..... trait15
    Hybrid1 01 02 03 04 01
    HYbrid2 04 06 08 04 01
    HYbrid2 04 06 08 04 01
    HYbrid2 04 06 08 04 01
    HYbrid2 04 06 08 04 01
    Once they enter data in this format i have to give result something like
    this.
    Here avg colum does not necessaryly mean avg it can be sum or any formula
    based resutl.Hybrid is the seed for which they record the observation.
    I have shown avg column only for two tratis it is actually for all the
    traits.
    Hyubrid(seed) trait1 Avg trait2 avg trait3 trait5 trait6..... trait15
    Hybrid1 01 01 02 04 03 04 01
    HYbrid2 04 04 06 10 08 04 01
    HYbrid2 04 04 06 12 08 04 01
    HYbrid2 04 04 06 14 08 04 01
    HYbrid2 04 04 06 12 08 04 01
    Hope this clarifies atleat a but
    The data are not correctly indented but there is no way i can format it.

  • How to lock R/3 master data transatcions when using Central MDM Scenario?

    Hello Colleagues.
    We are implementing a Central master data management scenario, all master data will be created / changed within MDM; so we need to block create/change for fields that are considered in MDM for the master records within R/3.
    In a previous project we used authorization profiles to achieve this task. I supose an other option is to use the field status configuration.
    However, I was wondering if SAP has something standard to achieve this blocking within R/3?
    Thank you for your answers.
    Regards,
    Jorge.

    Hi Jorge,
    SAP MDM has released Central Master Data management as standard already.  Also SAP MDM SP04 has more features which will have easy integratoin for standard R/3 Repositories for CRM, SRM etc.  You have a facility in MDM Repository for creating your customized Roles which will help you to block certain access to users.
    Hope this answers your requirement.
    Regards
    Veera
    Note : Please mark the Points if this reply is helpful to you

  • Which data channel is used by BB10's for ActiveSync?

    Can anyone tell me for for sure if a BB10 uses the normal mobile data plan or the BB data plan to connect to a corporate Exchange server via ActiveSync  (No BES server)?
    We have a group of employees that are still on 9900's in the Middle East that we would like to upgrade to Z10's.  They are currently on a BES5 server that is slated to be retired, but the company would prefer to just have them connect directly without moving to a BES10 server.  The problem is that their BB data plan roams ok between the countries they have to visit, but the regular data plans do not.  I need to make sure that upgrading to Z10 without a BES can still use the roaming ability of the BB data plan.
    Thanks!
    posted by DigitalFrog
    WARNING: May contain traces of nuts.

    A BB data plan will usually work on BB10, though it's not required anymore.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How EXISTScan be used in this scenario

    Hi All,
    I want to use EXISTS in this query insted of IN.
    Select <Column Name>
    from <User>.<Table Name>@<Database link Name>
    where <Column1 Name> in (1,2,3,4,5,6,7,18,20)
    and <Column2 Name> in (1,2,3,4,5,6)
    and <Column3 Name> <>'0000000000000000'
    and <Column4 Name> >= (select Sysdate - <Column Name> from <Local Table Name>)
    TIA.
    Regards
    Ayaz.

    In this case you don't have a sub query. You can construct a subquery for the purposes of using EXISTS but I wouldn't recommend it. Curiously though, the example I used to check this out works quite well! However, it's the Range Scan versus the Full Scan on the index that's the important bit.
    SQL> set autot on exp stat
    SQL> SELECT empno FROM scott.emp WHERE empno IN(7369, 7499, 7521);
         EMPNO
          7369
          7499
          7521
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1 Card=3 Bytes=12)
       1    0   INLIST ITERATOR
       2    1     INDEX (RANGE SCAN) OF 'PK_EMP' (INDEX (UNIQUE)) (Cost=1 Card=3 Bytes=12)
    Statistics
              0  recursive calls
              0  db block gets
              4  consistent gets
              0  physical reads
              0  redo size
            436  bytes sent via SQL*Net to client
            508  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              3  rows processed
    SQL> 
    SQL> SELECT empno FROM scott.emp e
      2  WHERE EXISTS(
      3    SELECT 7369 FROM dual WHERE e.empno = 7369
      4    UNION ALL
      5    SELECT 7499 FROM dual WHERE e.empno = 7499
      6    UNION ALL
      7    SELECT 7521 FROM dual WHERE e.empno = 7521
      8    );
         EMPNO
          7369
          7499
          7521
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=43 Card=1 Bytes=4)
       1    0   INDEX (FULL SCAN) OF 'PK_EMP' (INDEX (UNIQUE)) (Cost=1 Card=14 Bytes=56)
       2    1     UNION-ALL
       3    2       FILTER
       4    3         FAST DUAL (Cost=2 Card=1)
       5    2       FILTER
       6    5         FAST DUAL (Cost=2 Card=1)
       7    2       FILTER
       8    7         FAST DUAL (Cost=2 Card=1)
    Statistics
              0  recursive calls
              0  db block gets
              2  consistent gets
              0  physical reads
              0  redo size
            436  bytes sent via SQL*Net to client
            508  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              3  rows processed

  • What is the build method to be used in this scenario

    A
    B --- C ---d ----e ---f ---g
    X ---Y---Z
    here A is parent and B,X are childs of A, and C,D,e,f,g, are childs of B, and Y,Z are childs of X then what the build method we must take,when and how do we choose the build methods, is it depending on the hierarchy or what

    Per Glenn's post, you could use a generation load rule against the records for B and X, skipping the first record altogether to come up with the descendants of those two members.
    But that wouldn't get you the relationship of B and X as children of A.
    That's why I wrote you have a mix of dimension build types in your file, or maybe more accurately, an incomplete build file.
    A generation build would look something like:
    A, B, C
    A, B, d
    A, B, e
    A, B, f
    A, B, g
    A, X, y
    A, X, z
    A parent/child build would look like:
    A, B
    B, C
    B, d
    B, e
    B, F
    B, g
    A, X
    X, y
    X, z
    Neither approach matches what you have. Again, I see the parent/child layout most often but maybe that's just me.
    You could play games like first applying a parent/child build rule against your existing layout (with a little tweaking), and then maybe multiple build rules against the file/table for the generation appproach but that seems awfully complicated. Why not just get the source format into a decent format.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • Zoom!!!

    Please, is there any plugin or tutorial that can allow me to zoom in and out of my footage, I've been looking around for stuff to help but I can't find anything on the subject- I realize you can zoom into footage at a fixed point but thats not quite

  • Cancelled (detached) events showing on shared calendar - help!

    I can't figure out how to remove cancelled events from showing in iCal on a shared calendar. We use Zimbra for mail, etc. I subscribe to my boss' calendar and it is showing his cancelled (detached) events. They do not show in his iCal on his computer

  • Canon G11 RAW files in Photoshop 7.0

    Good evening.  I have just bought a new Canon G11 camera and have an old  version of Photoshop [7.0].  Will it be possible to download a patch that will allow the program to read the RAW files or am I just out of luck with such a new camera and such

  • HT5457 why i do not have face time in my iPhone

    why i do not have face time in my iPhone

  • Photo Hosting Service??

    Hi all, I'm in Cairo, Egypt right now going into the 3rd of six weeks I'll be spending here. I'm with about 18 other students on scholarships funded by the US State Department, and we all have digital cameras. I volunteered to sort of coordinate the