Confusion with Commit and Create Operations

Hi:
I'm using JDeveloper 10.1.3.4. I created an ADF Table that I want to use for data entry and modification. I also added Commit and Create operations as command buttons. Here's the behavior I'm seeing when I run the page:
1. When I click on Create a blank record appears but no record is created in the database. This seems appropriate.
2. When I enter data and click Commit, two records are created in the database: one with the data I entered and a blank record. This is problematic.
Can anyone suggest a reason why I get 2 records during the Commit-button action? Also, is there a correct way to create this data-entry table?
Thanks.

Hello,
Try using the createInsert operation instead of create.
Both these operations only create a new row on the midtier, NOT in the database, which is intended.
because adding the row right away to the database removed any use for the midtier in general
cereate only creates a row in the midtier, it does not cimmit anything to the database and will not do so unless any value in that row is altered.
createInsert create a row on the midtier and marks it so that the next commit will save this row to the database no matter if no values are changed.
It doesnt explain why you got two records though, which is something different, maybe you clicked twice or called create twice?
-Anton

Similar Messages

  • Problem with comma and point

    Hello,
    I have a problem with comma and point in a double-digit.
    I use a english driver for HM8142. When I get the values then I only get
    int-digits. How can I change "Use comma as separator" . I tried to change
    the option in LabVIEW.
    I changed it, then I got the window. "To change, restart the programm". I
    have done this. But when I have a look at the option, it is not changed.
    What can I do?
    I am not the admin on the computer.
    Martin

    Hi Martin,
    you do not have to change any system settings neither in LabVIEW nor in your windows.
    All instrument drivers should use a point as decimal separator. You can overwrite the decimal point handling in the string functions "Scan from string" and "Format into string".
    Make a right click on the function and use "Edit Scan String". In the dialog open the ring under "Selected operation", the last entry allows you to set the character for the decimal separator. This separator will be used for all the following floating point numbers.
    From your name and problem I think you are located in central europe. I do not have a german version of LV so I cannot tell you how the elements are named in german.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Formatting a number element with commas and decimals.

    I have a dataset with numbers.  I already set the column type to "number".
    I want to format the number data with commas and decimals.  I found a way to add decimals, but I'm still very confused how to do commas and to combine that with the decimal formatting.
    Also, how do I apply that to a repeat region in my spry region?
    Any help would be appreciated.  Thank you very much.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • Need output with commas and decimals.

    Hi All,
               I want to print this below no using write statement with commas and decimals .
                                            123,45,67,890.12
    Note :
              It must be declared in parameters and it is currency value
    and my output must also be like this
      123,45,67,890.12
    Can any one suggest me what to or send me some sample program for this,
    (points will be rewarded)
    Thanking you
    vinoth.r

    quote:
    Originally posted by:
    The ScareCrow
    You should redesign your db to have another table
    This table should have the asset id and the category id (I
    call this a bridging table)
    The category column would then be removed from the asset
    table.
    You then do a join on the tables to gain the category
    description.
    But to fix your problem with the existing structure
    Your query
    <cfquery name="qIndex" datasource="#appDSN#">
    SELECT Asset.Reference, Asset.AssetName, Asset.Category
    FROM Asset
    WHERE Category LIKE '%#URL.Category#%'
    </cfquery>
    <cfoutput query="qIndex">
    <cfset catids = ValueList(qIndex.category])>
    <cfquery name="qCat" datasource="#appDSN#">
    Select Category_Name
    From categories
    Where Category_ID IN (#catids#)
    </cfquery>
    #qIndex.Reference#<br />
    #qIndex.AssetName#<br />
    <cfloop query="qCat">
    #qCat.Category#<br>
    </cfloop>
    </cfoutput>
    Ken
    Ken, Thanks. It's really close, but all of the repeating
    records are taking the Category output from the first record in the
    set and repeating it...e.g. if the first record is "Mouse,
    Keyboards, Trackballs", all of the subsequent records show the
    same.
    Also should "ValueList(qIndex.category])", have been
    "ValueList(qIndex.category)"?
    If there's not a way to do this using the current db, i'll
    try using a bridging table.
    thanks.
    paul

  • Is there a compatability issue with Firefox and Andriod operating system 2.2.3? I can't get Firefox to work. I have tried uninstalling it and it won't download. in English

    Is there a compatability issue with Firefox and Andriod operating system 2.2.3? I can't get Firefox to work. I have tried uninstalling it and it won't download. in English

    Hi Drbobdog, there shouldn't be a compatibility with Android OS 2.2.3. There may be a compatability with the device itself.
    Here are the system requirements:
    https://wiki.mozilla.org/Mobile/Platforms/Android#System_Requirements
    (also seen here as well : http://www.mozilla.org/en-US/mobile/platforms/ )
    I hope this helps.

  • Currency field to be displayed with commas and asterisks(formatting)

    I have a field REGUH-RWBTR in my sap script code. I need to have the currency displayed with commas. And also if the digits are less, then left pad it with asterisks for remaining spaces.
    For eg, If the Digit is 12345678912.23 (max value), it should print as 12345,678,912.23.
    And If the digit is 12345.89, it should print as ******12,345.89
    Please help me to solve this problem.Its urgent.
    Thanks,
    Sandeep.

    Hello,
    You can use the WRITE using EDIT MASK.
    USING { {NO EDIT MASK}|{EDIT MASK mask} }
    Effect
    This addition overrides a conversion routine defined through reference to the ABAP Dictionary. The addition NO EDIT MASK only switches off the execution of an assigned conversion routine. The addition EDIT MASK calls either another conversion routine or defines an edit mask. For mask, a data object of the same name is expected.
    In order to call an arbitrary conversion routine CONV, mask must contain two equals signs, followed directly by the name of the conversion routine: "==CONV". During output, the content of dobj is passed to the function module CONVERSION_EXIT_CONV_OUTPUT, converted there, and then the result is displayed. If the function module is not found, an exception that can be handled is triggered (as of Release 6.10). The statement DESCRIBE FIELD contains an addition in order to fill mask accordingly.
    If the output length is specified explicitly with len, the conversion routine is executed for the specified length; otherwise for the implicit output length. If * or ** is specified for the output length, the appropriate rules are used for the converted result.
    If the first two characters in mask are not equals signs, the content is interpreted as an edit mask in which some characters have a particular meaning. The WRITE statement does not then output the content of dobj directly, but the character string in mask as follows:
    If the first two characters in mask are "LL" or "RR ", these are not output, They control whether the edit mask is left-justified or right-justified. If the first two characters are other characters, the edit mask is left-justified.
    All "_" characters are replaced from the left (in the case of "LL") or from the right (in the case of "RR") with characters for character-type types or numbers for the types p or i from dobj. In the case of fields of type c, closing blanks are ignored. Data objects of type f or x are converted into type c before editing. Superfluous characters "_" in mask are replaced by blanks. Characters from dobj for which there are no characters "_" in mask are not displayed.
    If dobj is of type i or p, the first character from the left "V" in mask is replaced with "-" in the case of a negative number and by blank in the case of a positive number.
    All the other characters of the edit mask are displayed unchanged.
    If no output length is specified, the implicit output length of dobj is used. If len is specified for the output length, the value of len is used. If * is specified for the output length, exactly that length that is required for the list display is set. If, in Unicode systems, characters of the edit mask are replaced by characters that take up more than one column on the list, the output length is increased accordingly and the output is filled with blanks in the list buffer. If ** is specified for the output length, double the length of the edit mask mask is used.
    If other formatting options are specified concurrently for an edit mask, these are used first and then the special characters in the edit mask are replaced by the interim result. The date masks date_mask are an exception to this. If these are specified, the edit mask is ignored.
    Notes
    In Unicode systems, you must remember that a character "_"in the edit mask does not necessarily correspond to a column in the list display since the space required in the display depends on the character to be replaced.
    The minus sign for a negative number is not displayed if no edit character "V" is specified. The decimal separator of a packed number with decimal places must be specified at the required position in the edit mask.
    Example
    Edited output of time duration. In the first output, the function module CONVERSION_EXIT_DURA_OUTPUT is executed. This converts the duration specified in seconds into minutes. In the second output, the edit mask is output according to the above rules. However, the underscore characters "_" are replaced by the characters from time.
    DATA: dura TYPE i,
          time TYPE t VALUE '080000'.
    dura = sy-uzeit - time.
    time = dura.
    WRITE /(30) dura USING EDIT MASK '==SDURA'.
    WRITE /(30) time USING EDIT MASK
                           'RRThe duration is __:__:__'.
    Regards,

  • Confused with Calendars and TimeZones

    Hi, I'll explain what I want to do. I have a table with several of what I call a "Time Ranges". Each Time Range has a day (day of week), beginTime and endTime. I also have different clients, each from a different country. Each client has a timezone associated (the format of this timezone is not defined just yet, but it should be something like -3, -4, +1, etc).
    I want to get the current date, and be able to figure out if it is within a certain time range. For example, right now in Argentina is
    11:48 AM GMT-3
    This should match these time ranges:
    11:00~12:00 | -3
    10:00~11:00 | -4
    13:00~14:00 | -1
    And should not match this time range:
    11:00~12:00 | -4
    I'm trying to get the "current time for a certain time zone" with Calendar, and then be able to extract the time from that Calendar and compare it with my beginTime and endTime. I'm not getting anywhere.
    Something like this:
    Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT-08:00"));
    System.out.println(cal.getTime());Is printing GMT-3 time. Please help.

    manugarciac wrote:
    Ok, I did it like this. The TimeRange Class has this method:
    public boolean isActive(String timezone) {
    Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(timezone));
    if (cal.get(Calendar.DAY_OF_WEEK) == this.day) {
    Time time = new Time(cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), 0);
    return (beginTime == null || time.after(beginTime)) && (endTime == null || time.before(endTime));
    return false;
    }Timezone should come in this format: "GMT-04:00" and Time is java.sql.Time.
    The only downside is that the Time constructor I used is deprecated. It says I should use the one that uses milliseconds since 1970. That kinda sucks, as I don't really care how much time passed since that time for this time. Any ideas of what I should use?forget java.sql.Time. use Calendar.set(int year, int month, int date, int hourOfDay, int minute) to set beginTime and endTime. use Calendar.compareTo(Calendar anotherCalendar) for the test.
    Edited by: pete_d on Sep 10, 2010 3:09 PM
    Not sure exactly what's going on in your TimeRange class but if the hour, minute, second and time zone in addition to the day of week (it seems that it does) for both begin and end time, then you can use this to create a Calendar instance to compare with the current time or to whatever other Calendar instance you want to check using its year, month day.

  • Confused with float and double

    Hi,
    I have done the following program which is supposed to deal with temperature and scales.
    import java.math.BigDecimal;
    public class Temperature {
         private float temp;
         private char scale;
         public static void main(String args[]) {
              Temperature t = new Temperature(40.5, 'F');
              System.out.println(t.getCTemperature());
         public Temperature() {
              temp = 0;
              scale = 'C';
         public Temperature(float pTemp) {
              temp = pTemp;
              scale = 'C';
         public Temperature(char pScale) {
              temp = 0;
              scale = 'C';
         public Temperature(float pTemp, char pScale) {
              temp = pTemp;
              scale = pScale;
         public float getCTemperature() {
              if (scale == 'C') {
                   return temp;
              } else {
                   float celciusTemp = 5 * (temp - 32) / 9;
                   BigDecimal bd = new BigDecimal(celciusTemp);
                   return bd.setScale(1, BigDecimal.ROUND_HALF_UP).floatValue();
    }When I try to compile I get the following error :
    F:\programs\ch4>javac Temperature.java
    Temperature.java:8: cannot find symbol
    symbol  : constructor Temperature(double,char)
    location: class Temperature
    Temperature t = new Temperature(40.5, 'F');
    *^*
    *1 error*
    I don't understand why the number 40.5 is considered like a double and that I can't use Temperature(float, char);
    If I'm not mistaken the compiler is asking for a constructor like Temperature(double, char) right ??
    thanks.

    Can I second Mr TuringPest, and Sir J.Bloch... Do NOT use floats, unless of course you have a really really good reason. Internally, java does all it's floating point arithmetic in doubles anyways, so you're just shooting yourself in the accuracy-foot by forcing it to: promote to double to calculate, "narrow" result back to float... promote, narrow ... promote, narrow ... promote, narrow ... The net result can be astoundingly inaccurate... So just use doubles.

  • CONFUSED WITH DFM, ONCOMMAND MANAGER, OPERATIONS MANAGER

    Hi Experts,Its bit confusing for me to understand the difference between Data Fabric Manager, Operations manager , On Command System Manager. Can anybody explain me in detail about these and also advise which will be better to have it in my environment i already have DFM which is 3.1 Version  and please suggest how to upgrade this to the latest version as well. Hope Operations Manager was a part of DFM then why both have different Consoles??? Please help me out to understand this.ThanksNayab

    DFM was the original product name for the central management product to monitor multiple NetApp storage systems.  With version 4.0, DFM was rebranded to be known as Operations Manager.  Starting with version 5.0, the NetApp Management Tools were rebranded to be the OnCommand suite of products.  The product formerly called DFM/Operations Manager is now called OnCommand Unified Manager Core.  There are other products under the OnCommand product banner: OnCommand Insight was formerly called SANscreen and OnCommand Balance was formerly called BalancePoint.  The purpose of OnCommand Unified Manager Core is the same as it was when the product was called DFM: provide the ability to monitor multiple NetApp storage systems from a centralized place.  As far as OnCommand System Manager, OnCommand System Manager (a.k.a. System Manager) is the replacement management tool for FilerView.  FilerView was the GUI for managing individual NetApp storage systems.  System Manager was introduced around the Data ONTAP 7.3 release to be a comprehensive GUI management tool for NetApp storage systems.  With FilerView, there was a specific URL for each NetApp storage system that was used to connect to the management GUI.  This wasn't a problem if you had a few NetApp storage systems in your environment, but having to keep track of the FilerView URL become a challenge if your NetApp storage systems grew in numbers.  With System Manager, you can manage all of your NetApp storage systems from a centralized interface.  Starting with Data ONTAP 8.1, FilerView is no longer available and the only GUI management tool for NetApp storage systems running Data ONTAP 8.1 or above is System Manager.In summary, OnCommand is the overall brand name for the NetApp management suite of products.  OnCommand Unified Manager Core is the new name for what was once called DFM & Operations Manager and is your centralized tool to monitor NetApp storage systems.  OnCommand System Manager is the replacement for FilerView and is the centralized tool to manage NetApp storage systems.  Hope this helps!

  • Problem with importing and creating self signed SSL certificate

    Mac Pro, 10.7.2 Server.  Attempting to import or create a self signed certificate for use as ichat.domain.com to encrypt iChat service.  Server is acutally called server.domain.com but has an alias of ichat.domain.com.  I understand that this is probably not best practice but I would like to keep things this way since we have one server, run multiple services on it, but want to continue to connect to each service at SERVICE.domain.com.  We have been using this type of mismatched certificate with success since 10.4 or so.
    I am working through setup of 10.7 Server to replace our 10.6 server. 
    Tried upgrade of 10.6 to 10.7 installation.  The installation made a mess of some services and our Open Directory, but did move the certificate over and allowed iChat service to function properly.
    Clean install and setup of 10.7 Server.  Exported self signed certificate, private key, and encryption password from 10.6 Server and functioning 10.7 upgraded Server.
    On import or manual creation of certificate get the following error:
    Error
    Check your server's logs for more information.  The error (code 5001) was: Expected SecKeychainItemImport to return a SecIdentityRef, but it did not
    Log shows:
    Dec 29 17:56:55 server servermgrd[498]: -[CertsRequestHandler(HelperAdditions) importP12Data:passphrase:error:]: importedItems = (
                  "<SecCertificate 0x7fcf6ed43c00 [0x7fff78d96f40]>"
    I have tried importing and manually creating other certificates with a variety of names with success.  I assume that there is something buried somewhere that is causing this particular one to be a problem.  Other than manually removing any remnants of the certificate from /etc/certficates I do not have any ideas what to try.  I am essentially ready to move this server to 10.7 except for this problem and would like to avoid a reinstall.
    Suggestions?
    -Erich

    Take a look here.
    https://bbs.archlinux.org/viewtopic.php?id=146649
    Maybe it's a problem with your network.

  • Extending VOs with attributes and creating new treetable columns

    Hi,
    I am relatively new to the ADF scene so please bear with if what I have in my mind is not even possible with ADF. I have searched hi and lo for a solution and now I thoughts it time to ask the community.
    Anyways this is what I want to do. I have a simple DB Table that has a hierarchy i.e Trees with roots much like the Employee hierarchy. Except this table has ids for items that come from external systems ( via Web Services in my case ) and / or ids to items in a table that resides in the local schema. So basically this structure table of mine only has relationships and the detail items need to be joined via an association ( in ADF terminology ) in the treetable component somehow.
    * Now creating the structure hierarchy is not a big issue. I have that part done already.
    * I have the VO from WS ready that gets the items that I might need to show as detail columns in the tree table.
    * Querying the local item Detail VO for detail rows might also be not that problematic.
    * Merging the above 2 columns to create a consolidated row set is also not that challenging whereby each column header is premapped to internal and external fields. This mapping is configurable to add more fields as required by a user to the treetable.
    What I am struggling with is that when I have this merged row set, how will I make it appear on the UI. The treetable seems to utterly not support this i.e. adding new columns at runtime. Following is what I have been able to establish till now.
    * The addDynamicAttribute methods on the View Object are not meant for this purpose. While they do add the attributes and you can set and get them after using this method, they do not render and I can't find a way to dynmically rendering them somehow for tree table.
    * Looked at the ADF dynamic components. They support only table and page. No go. Or do the whole tree thing somehow in the table component, Will look odd but might still work.
    * Looked at this article ( http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html ) . I found a comment in the forum regarding this that this might not be all that efficient. Not to mention the fact that it uses the deprecated TreeModels class in 11g.
    ** Just regarding this apporach what are the new 11g recommended TreeModel classes to be used instead of the deprecated one. I have read the follow-up post but that just points to the location of where the deprecated classes moved to in 11g under the apache contribution. And makes the example work under 11g. What was this TreeModel class replaced with. Anyone knows ?
    ** How could I access my VO objects in the TreeTableApater ? Can I declare my merged View object wrapped in a TreeItem POJO object. Theoretically it is on the view layer right ?
    ** If this approach is inefficient has anyone another solution that might work ?
    Or just has anyone managed to extend the treetable in any different sort of way. Any tips/help pointers would be deeply appreciated.
    Best Regards,

    Hi,
    So I had some time to look at this problem again. I created a ChildPropertyTreeModel and binded it to my treetable component and moved the generation of the columns to the jspx page. I got it mostly working but the columns generation part mostly escapes me still.
    here is how the jspx page looks like that renders the treetable, and which works fine :
    <af:treeTable rowBandingInterval="0" id="dynTTbl" var="row" expandAllEnabled="true"
    binding="#{backingBeanScope.DynamicTreeTableBB.dynamicTreeTable}"
    value="#{backingBeanScope.DynamicTreeTableModel}">
    <f:facet name="nodeStamp">
    <af:column sortable="false" headerText="Node Stamp" id="c1">
    <af:outputText value="#{row.tableColumnVal[0]}" id="ot1"/>
    </af:column>
    </f:facet>
    <af:forEach begin="1" end="2" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{row.tableColumnVal[status.index]}"/>
    </af:column>
    </af:forEach>
    </af:treeTable>
    I want the forEach loop to look a bit differently like below :
    <af:forEach items="row.tableColumnVal" var="columnVal" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{columnVal}"/>
    </af:column>
    </af:forEach>
    This should work for a list or array but evidently in my case it is not. I have a suspicion that the "items" attribute is unable to recognize the row.tableColumnVal attribute of mine. I have no way of checking this out or finding out if I am doing something wrong.
    My sample project can be found here, if anyone quickly wants to run this on Jdev 11g
    http://rapidshare.com/files/438880281/TreeTableTest.zip
    P.S. I have tried to convert the tableColumnVal attribute to a List an array and a Map. The first forEach syntax works everytime but the second one fails always and I want the second one to work somehow.
    Regards,

  • Confusion in FILTER and SORT operations in the execution plan

    Hi
    I have been working on tuning of a sql query:
    SELECT SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), 0)),
           SUM(DECODE(CR_FLG, 'C', 1, 0)),
           SUM(DECODE(CR_FLG, 'R', NVL(TOT_AMT, 0), 0)),
           SUM(DECODE(CR_FLG, 'R', 1, 0)),
           SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), -1 * NVL(TOT_AMT, 0))),
           SUM(1)
         FROM TS_TEST
        WHERE SMY_DT BETWEEN TO_DATE(:1, 'DD-MM-YYYY') AND
           TO_DATE(:1, 'DD-MM-YYYY');Table TS_TEST is range partitioned on smy_dt and there is an index on smy_dt column. Explain plan of the query is:
    SQL> explain plan for  SELECT SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), 0)),
      2         SUM(DECODE(CR_FLG, 'C', 1, 0)),
      3         SUM(DECODE(CR_FLG, 'R', NVL(TOT_AMT, 0), 0)),
      4         SUM(DECODE(CR_FLG, 'R', 1, 0)),
      5         SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), -1 * NVL(TOT_AMT, 0))),
      6         SUM(1)
      7    FROM TS_TEST
      8   WHERE SMY_DT BETWEEN TO_DATE(:1, 'DD-MM-YYYY') AND
      9         TO_DATE(:1, 'DD-MM-YYYY');
    Explained.
    SQL> @E
    PLAN_TABLE_OUTPUT
    Plan hash value: 766961720
    | Id  | Operation                            | Name                | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                     |                     |     1 |    14 | 15614   (1)| 00:03:08 |       |       |
    |   1 |  SORT AGGREGATE                      |                     |     1 |    14 |            |             |       |       |
    |*  2 |   FILTER                             |                     |       |       |            |          |       |       |
    |   3 |    TABLE ACCESS BY GLOBAL INDEX ROWID| T_TEST             | 79772 |  1090K| 15614   (1)| 00:03:08 | ROWID | ROWID |
    |*  4 |     INDEX RANGE SCAN                 | I_SMY_DT         |   143K|       |   442   (1)| 00:00:06 |       |       |
    Predicate Information (identified by operation id):
       2 - filter(TO_DATE(:1,'DD-MM-YYYY')<=TO_DATE(:1,'DD-MM-YYYY'))
       4 - access("SMY_DT">=TO_DATE(:1,'DD-MM-YYYY') AND "SMY_DT"<=TO_DATE(:1,'DD-MM-YYYY'))
    17 rows selected.
    SQL>I am not able to understand the FILTER & SORT operations. As there is an index on SMY_DT column, so index range scan is fine. But why a FILTER (Step no 2) and SORT (Step no 1) operation after that ?
    Oracle version is 10.2.0.3 on AIX 5.3 64 bit.
    Any other information required please let me know.
    Regards,
    Amardeep Sidhu

    Sort aggregate tells you that there was performed an aggregate operation which returns one row, in opposite to sort order by or hash group by which indicates you have grouping, and there more than one row can be returned.
    SQL> SELECT SUM(comm) FROM emp;
    SUM(COMM)
          2200
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT AVG(comm) FROM emp;
    AVG(COMM)
           550
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT MIN(comm) FROM emp;
    MIN(COMM)
             0
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT deptno, SUM(comm) FROM emp GROUP BY deptno;
        DEPTNO  SUM(COMM)
            30       2200
            20
            10
    Plan wykonywania
    Plan hash value: 4067220884
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     3 |    15 |     4  (25)| 00:00:01 |
    |   1 |  HASH GROUP BY     |      |     3 |    15 |     4  (25)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    70 |     3   (0)| 00:00:01 |
    SQL>Edited by: Łukasz Mastalerz on Jan 14, 2009 11:41 AM

  • Format numbers with commas and dollar signs

    I've searched documentation and I do not see how to add a $ (dollar sign) to a number and how to add a comma after 3 digits.
    for example  $32,000.00
    Thanks in advance

    Hello ..
    In PLD is this possible, but also about the issue of setting up your database. If you set the currency as $ Dollar then you will see it as such in print. The same with the insert.
    If the dollar had another name, then you can concatenate a text field indicating $ with a formula field to extract the coin value you wish to view.
    Hope this helps
    Yours sincerely,

  • Editing a film with IMOVIE and create a DVD memu with IDVD

    Dear all,
    I edited a film with Imovie (with music, picture effects...). Now I try to create a DVD memu with IDV. For example, for a trip, I want to create a main menu (Australia) and sub menus (Sydney, Red center...). With this sub menu I want to attach some specifics sequences of my film edited with IMovie.
    I export the film from Imovie but when I try to use it with IDVD I have only one file. So I cannot create a menu and chose different sequence.
    Could you please explain to me how to obtain sequences edited on IDVD. I can see some sequences on IDVD but it is the uncut movie.

    I had the same question about iMovie'08 a few days ago. You need to add the chapters outside iMovie'08. I found this freeware at http://www.applesolutions.com/bantha/MH.html and it worked well for me.
    Basically it opens your movie file exported from iMovie. You select manually the location of each chapter, then save the file again. When you drop this new file onto iDVD, the expected PLAY and Scene Selection buttons appear as expected. The instructions on the site are easy to follow.
    Alternatively, there is a also a separate hack to edit the ProjectData file located inside the iDVD project package, but this did not work properly for me. I have not tried the GarageBand hint.

  • Regular Expression with comma and encapsulated charaters

    Would appreciate some help. Looking for a regular expression to remove comma's from encapsulated text as follows
    For example
    - Input
    1,"This is a string, need to remove the comma",Another text string,10
    - Required output
    1,"This is a string; need to remove the comma",Another text string,10
    Have tried to use the REGEXP_REPLACE but could not grasp the pattern matching.
    Thanks John

    John Heaton wrote:
    Thanks for the solution,this works great for a single field encapsulated by " and containing ,. I am parsing several different file definitions so it would need to cascade through the string for a undetermined number of times and replace all occurrences. Then try (performance-wise) MODEL solution:
    {code}
    with t as (
    select '1,"This is a string, need to remove the comma",Another text string,10' txt from dual union all
    select '1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11' txt from dual
    select txt_original,
    txt
    from t
    model
    partition by(row_number() over(order by 1) p)
    dimension by(1 rn)
    measures(txt txt_original,txt,0 quote)
    rules
    iterate(
    1e9
    until(
    iteration_number + 1 = length(txt[1])
    quote[1] = case substr(txt[1],iteration_number + 1,1)
    when '"' then quote[1] + 1
    else quote[1]
    end,
    txt[1] = case substr(txt[1],iteration_number + 1,1)
    when ',' then case mod(quote[1],2)
    when 1 then substr(txt[1],1,iteration_number) || ';' || substr(txt[1],iteration_number + 2)
    else txt[1]
    end
    else txt[1]
    end
    TXT_ORIGINAL TXT
    1,"This is a string, need to remove the comma",Another text string,10 1,"This is a string; need to remove the comma",Another text string,10
    1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11 1,"remove this comma;",Another text string,10,"remove this comma;",xxx,"remove this comma;",11
    SQL>
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Permission issues after Snow Leopard clean install, Migration Assistant+Time Machine restore.

    Hello, here's the situation. I've done a clean install, for various reasons, I've got backups including one done just before the clean install. Following directions somewhere else I set up a user account called "test" just for the purposes of reimpor

  • Compatibility between Oracle 8.1.7 and HP UX 11iV2 (11.23)

    Dear, We need to know if Oracle version 8i (8.1.7.4) is compatible with the version of HP UX 11iV2 (11.23) installed on a HP superdome. This is quite urgent because we replace the server where the DB runs by another. Is there a document with the comp

  • Photoshop CC 2014/Portuguese crashes right after it opens

    I installed Photoshop CC 2014/Portuguese on my noteebook Sony Vaio Core i5/2.5GHz/6Gb RAM/64bit OS/Windows 8 Pro/NVIDIA GeForce GT 640M LE, and right after I open it, it shows the following message: "Adobe Photoshop CC 2014 stopped working. A problem

  • SAP Latest ,plz refer

    We are for looking for SAP IS Retail experts for Mumbai SAP APO or SCM with demand planning, PPDS, SNP modules exposure for Calcutta, Mumbai, Bangalore. Relevant exp : 4 – 5yrs Salary : no constraint Position : 4 slots in each. 3) Job Title: SAP Cons

  • Forms in web

    how can i run forms in web?please tell me in details.i don't kanow any thing about this configuration.