Values from columns of datatable...

Hi guys,
i'm working with my jsf application to create a datatable.
It works well,but now i've added a commandlink button to dynamically adding a new column(i use this datatable for input data,each row is an experiment).
It works fine,column is correctly added.
At the end of each row of my datatable i've a submit button to send values of the row into db.
My question is:
My datatable has 5 fixed fields and other dinamic fields that user can add with button. My 5 fixed values have to go into a table(and it works) and i want that dynamic values(that use has added) go into another table,each one as a different row.
Example
usa italy french england japan rome tokyo
i want usa italy french englan japan go into a table(as a row) and rome tokio goes into another table
rome
tokio(different rows).
How can i do it?
My problem is i'm not able to binding the dynamic input fields to bean....can you help me?
Here is my class
public class BiosamplesTable {
     private List biosamples= new ArrayList();
     private HtmlDataTable biosampleDataTable;
private int autokey2;
     private Biosample biosampleItem;
     private int nrows;
     private DataModel mColumns;
     private int load=0;
     private String columnLabel;
     public HtmlDataTable getBiosampleDataTable()  {
          return biosampleDataTable;
     public void setBiosampleDataTable(HtmlDataTable biosampleDataTable) {
          this.biosampleDataTable = biosampleDataTable;
     public Biosample getBiosampleItem() {
          return biosampleItem;
     public void setBiosampleItem(Biosample biosampleItem) {
          this.biosampleItem = biosampleItem;
     public List getBiosamples() throws Exception {
          loadBiosamples();
          // Reload after every request.
          return biosamples;
     public void setBiosamples(List biosamples) {
          this.biosamples = biosamples;
     public void loadBiosamples() throws Exception {
          if (load==0){
          for (int i = 0; i < nrows; i++) {
               Biosample biosample = new Biosample();
               biosamples.add(biosample);
               setBiosamples(biosamples);
               load=1;
          else
               setBiosamples(biosamples);
     public int getNrows() {
          return nrows;
     public void setNrows(int nrows) {
          this.nrows = nrows;
     public DataModel getColumnDataModel()
         if (mColumns == null)
           String[] result = new String[]{};//sono le colonne di partenza,in questo caso 1!!!
           mColumns = new ListDataModel(new ArrayList(Arrays.asList(result)));
         return mColumns;
     public void addColumn(ActionEvent e)
         if(columnLabel!=null);//metter l'if
           List columns = (List) getColumnDataModel().getWrappedData();
           columns.add(columnLabel);
     public String getColumnLabel(){
          return columnLabel;
     public void setColumnLabel(String columnLabel){
          this.columnLabel=columnLabel;
}and this is my jsp page
<t:dataTable
    value="#{biosamplesTable.biosamples}"
    var="biosampleItem"
     binding="#{biosamplesTable.biosampleDataTable}" border="3" bgcolor="pink" >
    <h:column >
        <f:facet name="header">
            <h:outputText value="Organism"/>
        </f:facet>
       <h:selectOneMenu value="#{biosampleItem.organism}">
            <f:selectItems value="#{biosample.selectOrganism}"/>
       </h:selectOneMenu>
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText value="Treatment Protocol" />
        </f:facet>
        <h:inputText value="#{biosampleItem.treatmentProtocol}" />
    </h:column>
    <h:column >
        <f:facet name="header">
            <h:outputText value="Extraction Method" />
        </f:facet>
        <h:inputText value="#{biosampleItem.extractionMethod}" />
    </h:column>
    <h:column >
        <f:facet name="header">
            <h:outputText value="Label"/>
            </f:facet>
        <h:inputText value="#{biosampleItem.label}" />
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText value="Hybridation" /></f:facet>
        <h:inputText value="#{biosampleItem.hybridation}" />
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText value="Amplification" /></f:facet>
        <h:inputText value="#{biosampleItem.amplification}" />
    </h:column>
    <t:columns value="#{biosamplesTable.columnDataModel}" var="column"  >
     <f:facet name="header">
    <h:panelGroup>
    <h:outputText value="#{column}" />
    <h:commandLink actionListener="#{biosamplesTable.removeColumn}">
    <h:outputText value="Elimina"/>
    </h:commandLink>
    </h:panelGroup>
    </f:facet>
         <h:inputText value="#{biosampleProperties.value}" />
    </t:columns>
    <h:column>
        <f:facet name="header">
            <h:outputText value="Actions" />
        </f:facet>
        <h:commandLink
        value="Invia dati biosample" actionListener="#{biosamplesTable.editBiosample}" id="editBiosample">
        </h:commandLink>
    </h:column>
    </t:dataTable>     i want the values of each added column goes as different row into a biosampleProperties table....
Thanks..

u can't achieve this with DataTable u need tu use JSTL ...exactly the
C-Tag
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

Similar Messages

  • CE function to get distinct values from Column table

    Hi All,
    Could you please let me know the appropriate CE function to get the distinct values from column table.
    IT_WORK = SELECT DISTINCT AUFNR FROM :IT_WO_DETAILS;
    Thank you.

    Hi,
    If you have 10g, you can use Model( with model performance is better than connect by )
    Solution
    ========================================================================
    WITH t AS
    (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 1234.567432, 1234.567432, 0989.726332'
    txt
    FROM DUAL)
    SELECT DISTINCT TRIM(CHAINE)
    FROM T
    MODEL
    RETURN UPDATED ROWS
    DIMENSION BY (0 POSITION)
    MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    RULES
    (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    =========================================================================
    Demo
    =======================================================================
    SQL> WITH t AS
    2 (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 123
    4.567432, 1234.567432, 0989.726332'
    3 txt
    4 FROM DUAL)
    5 SELECT DISTINCT TRIM(CHAINE)
    6 FROM T
    7 MODEL
    8 RETURN UPDATED ROWS
    9 DIMENSION BY (0 POSITION)
    10 MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    11 RULES
    12 (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    13 CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    TRIM(CHAINE)
    3453.736379
    1234.567432
    0989.726332
    SQL>
    ========================================================================

  • Passing filter values from column formula in OBIEE 10g

    Hi,
    I am trying to pass filter value from the column LY Spend YTD columns where we have a filter option and passing the year filter 2013 as below.
    FILTER("Fact - Purchasing - Invoice"."LY Spend YTD" USING (Time."Year" = '2013'))
    My goal behind doing this is, we have a filter already present for the whole criteria on the year which is 2012.
    But specifically for this column i dont want to pass the year 2012 to it, Instead I want to pass 2013 to it. But I am not succeding the result is blank.
    Please suggest and let me know if further understanding is needed.

    Hi Srini
    Thanks for you reply.
    I cannot do that way because some measures are satisfying with year 2012 and displaying the data and other measure are satisfying with 2013.
    I am working on LY Spend YTD, LY spend YTD - 1, Spend YTD and Year ago spend.
    So thats the reason I have thought that way of passing the filter in column formula irrespective of criteria filter.
    Please suggest.

  • Expense reporting, get values from column and return only unique values somewhere else

    i would like check a column for the values it contains (expense categorizations) and then return a list of only the unique values somewhere else in a vertical list. So "gasoline" may be listed 12 times in the reference list but in my result listing i would expect it to only show up once. If there is a way to do this then I would also like to know how empty cells are handled.
    I will then be applying a SUMIF to the returned list to get totals for all the unique categorization a have specified.
    Thank you for your time.

    Deleting the first row made your $F$2 become $F$1.
    Explaining how a formula works is not so easy to do. I'll try, but the best way is to read up on the formulas and piece it all together.  There's nothing fancy or tricky going on here.
    The "active ingredient" in the formula is this piece: OFFSET('Table 1-2'::$F$1,SMALL('Table 1-2'::G,ROW()−1)−1,0)
    ROW() returns the row number of the cell that has the formula in it. It is an easy way to get an ever increasing number for the formula. The other way would be to have another column with 1,2,3,4, etc. in it.  So, ROW() will return the number 1 if the formula is in row 1, will return the number 2 in row 2, etc.
    SMALL(range, n) returns the nth smallest number from the given range of numbers.  So, for the formula  in row 2, SMALL('Table 1-2'::G, ROW()−1) becomes SMALL('Table 1-2'::G, 1) which will return the 1st smallest number from the G column of Table 1-2.  In the 3rd row it would return the 2nd smallest number. Etc.  And remember that those numbers it is returning are the row numbers of your unique values in Table 1-2.
    OFFSET(base, row offset, column offset) is a way of  referencing a cell.  For instance, OFFSET($F$1,1,0) would be one row down from cell F1. OFFSET($F$1,2,3) would be two rows down and three columns to the right of cell F1.  The SMALL formula has given you the row number for a unique value in your Table 1-2.  To reference the correct row, the row offset from F1 needs to be one less than that number (an offset of 0 = cell F1. An offset of 1 = cell F2, etc.). The column offset is zero.

  • Strip values from column, assign to new column

    I am on 11G, need help with SQL.
    I would like to employ RegEx, I know 11G supports up to 5 functions, I am thinking maybe REGEX_LIKE, not sure, let me explain.
    I have a VARCHAR2 column in my Table that can have various combinations of values:
    Example #1:
    value (with or without spaces, I call this value0, without a delimiter), example:
    Submit
    Email Updates
    WhiteSpace
    Many More Examples
    strip value0 where no delimiter is used into its own column
    Example #2: (values seperated by a delimiter <), example:
    Gucci < Watches < Accessories
    blabla < blabla < blabla
    bla < bla#$ < blabla
    so, I call these:
    value1 < value2 < value3
    strip value1 before the 1st < into its own column
    strip value2 before the 2nd < into its own column
    strip value 3 after the 2nd < into its own column
    The nice thing is that when the delimiter is used, it is consistent, there is 2 of them: value1 < value2 < value3
    Thank you.

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    If you're asking about a DML statement, such as UPDATE, the CREATE TABLE and INSERT statements should re-create the tables as they are before the DML, and the results will be the contents of the changed table(s) when everything is finished.
    It sounds like you want something like:
    UPDATE     table_x
    SET     value0     = CASE
                    WHEN  INSTR (value, '~')     = 0
                    THEN  value
                END
    ,     value1     = CASE
                    WHEN  INSTR (value, '~')     > 0
                    THEN  TRIM ( REGEXP_SUBSTR ( value
                                               , '[^~]+'
                                   , 1
                                   , 1
                END
    ,     value2  = TRIM ( REGEXP_SUBSTR ( value
                                       , '[^~]+'
                               , 1
                               , 2
    ,     value3  = TRIM ( REGEXP_SUBSTR ( value
                                       , '[^~]+'
                               , 1
                               , 3
    ;You could use REGEXP_LIKE instead of INSTR, but it's not really simpler to code, and it will be less efficient.
    Edited by: Frank Kulash on Sep 20, 2011 5:15 PM
    This site is interpreting the &lt; signs as markup, so I changed the delimiter to '~', just to make it post clearly. You should use &lt; where I used ~ above.

  • How to remove all values from column

    Hi all
    I have one table and in that i have one column which contain some null value.now i want add a not null constraint on that column but it already contain null values.
    how shuld i delete that column value only or how should i proceed now please help me

    What do you mean by REMOVE?
    All values for that column are null or not? if not, then can those value removable?
    NULL means no value, how can you remove non-existing value?
    Update the null column to default value is one way.
    the other is to drop the column and add it again together with your not -null constraint.
    But I definitely wouldn`t recommend this approach in your case since some of your records have values for that column.

  • How to retrive value from column of type number

    Hi,
    I have a site column 'Sample' which is of type Number. Number of decimal places for the column is specified as 0.
    Consider the Sample column has a value '2'.
    When I retrieve the properties for Sample column, the value is displayed as 2.0000000
    I am retrieving the listitem properties using SPListItem.Properties in ItemCheckedin event.
    How to get value without the decimal places?
    Thanks in advance,
    dhijit

    Hi.
    You can cast this value as int.
    int myVal = (int)myItem["myField"];
    if cast crashes, try to use int.TryParse or Convert.ToInt32 Mehods
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

  • Passing values from column formula to other report

    Hi Experts,
    we have created a report with table view as
    Month Asia_Sales Europe_Sales Total
    2012-12 1234 4566
    2012-11 4546 7897
    Asia_sales = filter(sales where region='Asia')
    Europe_Sales = filter(sales where region='Europe')
    now i have created a child report,with action link on asia_sales and europe_sales
    month customer sales
    2012-12 abc 111
    this report shall have filter based on column clicked (i.e when user click on asia_sales report shall show data related to asia only)
    please enlighten any approach to achieve this

    Other work around is to keep the Region column as Dimension in the pivot table (in column section) and use common measure.
    it will be piovite table having
    ...............Asia..............Europe..........xyz
    month.....measure........measure....measure
    2012-01......220.............300...........955
    2012-02.....3434...........5485.........656
    here the measure will be common.
    I this case if you click on measure, region column will also be prompted. You can use Is Prompted for month,region in sub report.
    In your old case region wont be prompted.
    Mark if helps/Correct
    fiaz
    Edited by: fiaz0419 on Jan 9, 2013 12:20 PM

  • Finding minimum value from spreadsheet

    Hi,
    I am attaching here my spreadsheet. In that spreadsheet I want to find minimum value of column B and display the corresponding value at the same iondex from column A.
    Attachments:
    vna_readings.xlsx ‏14 KB

    Hi jyotia,
    in this thread you'll find the functions to read the entire content from your excel file. If you have your data as an array in LabVIEW, then you can use the "Array Min&Max" function to get the min index from your column "B". With index array you can read the corresponding value from column "A".
    Mike

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

  • How can I get dataTable to display values from the java layer?

    When I use the dataTAble in my JSP page it will only display values from my java layer if the facets tag has it's name set to "header". Why is this happening?
    If I set it to "header" and I look at the page source it actually has created the correct number of rows but it doesn't put the values between the <td> tags? It see's the length of my list but it doesn't pick the values out of the list.
    <h:dataTable var="data" value="#{NameBean.test}" border="1">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <!-- <h:outputFormat styleClass="outputFormat" id="format1" value="#{NameBean.test}"></h:outputFormat>-->
    <h:outputText styleClass="outputText" value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    public List gettest()
              List li = new LinkedList();
              Object Developers[] = {"M@n00j", "sdsadas"};
              for( int i = 0; i < Developers.length; i++ )
                   li.add(Developers);
              return li;
    Thanks in advance to anyone that can help.
    -ls6v

    I've been able to get it working with some of those changes along with changes in the JSP. I think it's a setting or two in the JSP that'll allow the program to run correctly.
    I have a list and it's returned like what you suggested. A day or two ago I tried to move the outputtext outside of the facet tag but nothing would print, I know believe that's related to the following setting in the JSP:
    rows="0" in the <h:dataTAble tag
    Unfortunately the dataTAble isn't displaying the values correctly. It prints all of the values (Strings) in the list on each row and it make a new row for the number of items in the list.......... ???
    Here's what it's printing to the screen (the table):
    ===================
    == [asdasd], [sddfdfd] ==
    ===================
    ===================
    == [asdasd], [sddfdfd]==
    ===================
    what it should print:
    ============
    == [asdasd] ==
    ============
    ============
    == [sddfdfd] ==
    ============
    My code:
    public List gettest()
              List li = new ArrayList();
              li.add("asdasd");
              li.add("affffd");
              return li;
              }JSP
    <h:dataTable border="1" columnClasses="list-column-left"
        headerClass="list-header"
        rowClasses="list-row-odd"
        id="table"
        rows="0"
        value="#{NameBean.test}"
        var="data">
    <h:column>
    <f:facet name="header">
    <h:outputText value="test"/>
    </f:facet>
    <h:outputText value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </h:column>
    </h:dataTable>

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • Retrieving multiple values from one column in SELECT statement

    Hi,
    I have a slight dilemma in that I'm trying to pull down all the values from a column from a select statement that includes some JOINS in it.
    If I run the query at the SQL Plus prompt, it pulls back all the values/rows.
    When I run the select (and prepared ) statement in my JSP, it only pulls back one of the 4 values I'm trying to retrieve.
    e.g.
    at the DB level :
    SELECT role_name, CC_ID FROM votetbl a
    INNER JOIN APPROVERS b ON
    a.BUSVP = b.BUSVP AND
    a.BRANCH = b.BRANCH
    WHERE CC_ID = 1688this will return:
    ROLE_NAME CC_ID
    ops 1688
    ops 1688
    comply 1688
    legal 1688
    comply 1688
    When run in my JSP, like so:
    String primID3a = request.getParameter("primID");
    Statement stmtovoter = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    String prepvotSQL = "SELECT role_name, CC_ID FROM votetbl a INNER JOIN APPROVERS b ON a.BUSVP = b.BUSVP AND " +
                         "a.BRANCH = b.BRANCH WHERE CC_ID = ?";
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    out.println("Vote category: "+votecat);I only get ops returned.
    Do I need to run an enumerator? Or reqest.getParameterValues or use a while statement around the results set?
    Any feedback and direction here is welcomed!
    Thanks!

    Actually, I tried looping and still only get 1, but returned several times.
    i.e.
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    while (rest3.next()) {
    out.print("category roles "+votecat);
    }then I get returned the following:
    admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admin
    like so.
    Where as at the DB level I get
    ROLE_NAME CC_ID
    admin 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    risk 1688
    comply 1688
    legal 1688
    legal 1688
    ops 1688
    comply 1688
    Maybe the while should go around the getString(1) designation? But I was thinking I'd tried that and gotten invalid cursor error
    Something is definitely amiss, between the prepared statement in the servlet and the SELECT statement at the DB level.
    I can totally hardcode the statement in the servlet or JSP and it will return one value potentially several times, but only one.
    Other times, it will not return a value at all, even though one resides in the db.
    Yet go to the DB/SQL Plus prompt and it returns perfectly. I can simply copy and paste the SELECT statement from the out.print line I made and it works like a champ in SQL Plus. Any ideas why the same exact thing cannot return the proper values within the servlet/JSP?
    Yeeeeeeesh!!! : (
    Message was edited by:
    bpropes20

  • Multiple values from same column in diffetent columns in same row??

    Hi all,
    I am wondering how you can display different values from the same column into different columns on same row. For example using a CASE statement I can:
    CASE WHEN CODE IN ('1', '3') THEN COUNT( ID) END as "Y"
    CASE WHEN CODE NOT IN ('1', 'M') THEN COUNT( ID) END as "N"
    Yes this will produce two columns needed but will also produce two separate records and null values for the empty's.
    Any ideas?
    Thanks

    It's not clear what you want.
    Can you post some examples as described in the FAQ: {message:id=9360002}
    As my first guess, I would think you're looking for something like...
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select count(case when deptno in (10,20) then deptno end) as deptno_10_20
      2        ,count(case when deptno > 20 then deptno end) as deptno_30plus
      3  from emp;
    DEPTNO_10_20 DEPTNO_30PLUS
               8             6

Maybe you are looking for

  • USB 3.0 ports not working after upgrading to Windows 8.1

    I have an Asus WIndows 8 laptop that I just upgraded to Windows 8.1 today. My USB 3.0 ports have started acting up. At first they recognized some of my external hard drives but not others. I tested all of the external hard drives and they work fine o

  • Help on Crossjoin Syntax Please on ASO Allocation

    Hi, Tyring to run an ASO Allocation via MaxL. I always have trouble with syntax on CrossJoins for some reason. When I run the below I get an error: ERROR - 1260052 - Syntax error in input MDX query on line 1 at token ')' . ERROR - 1241192 - Allocatio

  • Problems using the Gradient in Camera Raw

    Hi everybody, Just yesterday afternoon I new problem developed using the gradient tool in Camera Raw, unitl it was working just fine. When working on an image when I click on the gradient tool ta pop-up window appears that reads "Unable to create loc

  • Using JServ without O.S.E

    hello everybody, I would like to configure Oracle 8.1.7 for the JSP pages, without using Oracle Server Engine (and its pre-installation model). It means i have to configure JServ, which is a servlet 2.0 environment. I am able to configure JServ for t

  • Installed photoshop elements 10 but organizer won't load

    installed photoshop elements 10 but organizer won't load. need to restore photos from old computer