More Rows or More Columns ?

I have a table (a form) where 50 attributes have to be filled for each id. There may be some extra attributes be added or removed in this form.
Which is better
1) Going with more columns (50+) less rows.
2) Going with less columns and more rows.
I am more inclined towards more rows because of the main disadvantage of adding and removing the columns.
Any descriptive answer will be of good help (any reference will also do good)

CP wrote:
Can you please elaborate on this. I have tried 2NF before but not 3NF.It actually sounds as though you are trying to design your database using some form of Entity Attribute Value (EAV) model, where you store a row for each attribute of an entity.
e.g.
+-----------+--------------+-----------------------+
| Entity_ID | Attribute_ID | Attribute Value       |
+-----------+--------------+-----------------------+
|         1 |            1 | Mr.                   |
|         1 |            2 | John                  |
|         1 |            3 | Smith                 |
|         2 |            1 | Mr.                   |
|         2 |            2 | Joe                   |
|         2 |            3 | Bloggs                |
|         3 |            1 | Mrs                   |
|         3 |            2 | Tiggy                 |
|         3 |            3 | Winkle                |
+-----------+--------------+-----------------------+This apparently makes for a very flexible data model because, if you need to add more attributes for an entity, we can just assign another Attribute_ID for this new attribute (e.g. 4 for a persons date of birth) and then store rows with data for those attributes.
The problem with this however is that it is not using a relational database in the best way, and leads to major overheads in programming and consildating the data back to the single entity. EAV models have very few valid uses, and have been tried by many in the past to create "generic" or "flexible" database designs, typcially ending in disaster.
Here's a good story to illustrate a company that had a developer create them an EAV model database...
http://www.simple-talk.com/opinion/opinion-pieces/bad-carma/
The proper design for a database would put all the attributes for an entity as individual columns on a single row. The required attributes should be known about at design time so, in most cases, there shouldn't be much need later on to add new attributes, and if there is, it's usually easy enough to add a new column to the table to cater for it, or in some cases create another relational table store the additional attribute(s) (especially if there is several attributes to be added). This is the nature of 3rd normal form (3NF)...
http://en.wikipedia.org/wiki/Third_normal_form

Similar Messages

  • Add more rows problem

    I have an advanced table that displays a single row. Users can use Add more rows if they require more.
    I have 2 small isses.
    Firstly, there are 2 fields. Cost Centre and description. Cost centre has an LOV and description is mapped and populated from the LOV as well.
    When I click on add more rows, the description column of the first record is cleared.....I obviously want this to remain.
    Second issue. When I choose the value from the LOV on rows 2 and above i want to ensure this has not been chosen before in a previous record - any quick way to do this>?
    Robert

    Regarding 2: You can write your Lov VO query with NOT IN :1. Use the CO in your LOV and try to get the value entered by user in above row(s) and bind it in LOV VO query using your Lov CO. Please note that LOV CO might get called before coming to page CO processFormRequest. So try to keep a stringBuffer value in OADBTransaction, which shall concat the values selected in all above rows. Use this value in LOV CO each time.
    Hope it helps.

  • WPF: How to make the Column and Row separator more wide and different color in datagrid?

    Our application uses WPF.
    One of request is make the DataGrid column separator and row separator more wide and use different color and remove original black separator of rows and columns.
    Which template we need to modify to make it? Thx!
    JaneC

    Hi Magnus,
    Thanks for replying our question and provide your suggestions!
    Now we know modify both HorizontalGridLinesBrush and VerticalGridLinesBrush we can change the DataGrid cell separator color.
    Following your suggested, we modify the DataGridCell as following:
    <Style x:Key="Body_Content_DataGrid_Centering"
    TargetType="{x:Type DataGridCell}">
    <Setter Property="Padding" Value="2,0" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridCell}">
    <Border BorderThickness="2" BorderBrush="{StaticResource PageBorderBackground}" Margin="-1">
    <Grid Background="{TemplateBinding Background}" VerticalAlignment="Center" Height="42">
    <ContentPresenter VerticalAlignment="Center"/>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <Style x:Key="DataGridStyle1" TargetType="{x:Type DataGrid}">
    <Setter Property="HorizontalGridLinesBrush" Value="{x:Null}"/>
    <Setter Property="VerticalGridLinesBrush" Value="{x:Null}"/>
    </Style
    JaneC

  • Start with more rows/columns in Numbers?

    How can I have the blank numbers template automatically start with more rows and columns? Currently for a new document, it defaults to 22 rows and 9 columns. I would like to start each document with more of each.

    Hi reese,
    Open the blank inbuilt template, add rows and columns to suit, then Save As Template. That will appear under My Templates in the Template Chooser. To automatically start with that custom template,
    Numbers > Preferences > General > for New Documents
    BTW, if you have that preference set, File > New (command n) will also open that custom template.
    Also, New From Template Chooser will disappear from the File Menu. To use Template Chooser, hold down the option key when accessing the File Menu.
    Regards,
    Ian.

  • UIX: How to display more items in 1 column on the same row

    Hi
    I have a uix table with a couple of columns.
    Now I want to display more elements in 1 column, but on the same row
    E.g.
    article | quantity <> | price
    The quantity column has also to buttons to increase/decrease the quantity. Something like:
    <column>
    <columnFormat displayGrid="true" cellNoWrapFormat="true" columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader text="Quantity" required="yes"/>
    </columnHeader>
    <contents>
    <messageTextInput id="${ui:concat('PurchaseInvoiceLinesView3:Quantity:',uix.current.tableIndex)}" model="${ui:cond(uix.current.isNewRow,null,uix.current.PurchaseInvoiceLinesQuantity)}" text="${uix.current.PurchaseInvoiceLinesQuantity}" name="Quantity" promptAndAccessKey="Quantity" rows="1" maximumLength="6" columns="8">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </messageTextInput>
    <button text="&lt;" onClick="..."/>
    <button text="&gt;" onClick="..."/>
    </contents>
    </column>
    But both buttons appear on a new line. Resulting in:
    [   1]
    <
    >
    The useSeperateRows attribute is by default false, so that should be ok. Any ideas to get the buttons on the same row?
    Regards.

    Hi,
         If all of your line items are getting displayed in different pages, to my knowledge, there may be two possibilities.
    1) May be the size of the main window can accomodate only one line item. If one item data fills up the window, then there wont' be any space for the next line item data to be accomodated in the same window in the same page, so, the system triggers the next page. Like-wise for each item data. If this is the case, increase the height of the main window to display items in same page.
    2) Check the driver program. Find the Write_form block, which is written inside an item loop. May be there is a Form-control Function module( Control_form with parameter 'NEW-PAGE' ) being called after the write_fom block, within the loop. If this is the case, remove the control_form FM section to make the data display in same page.
    Best Regards,
    Kumaar.S

  • DataTable: 1 column, more rows

    I'm trying to make 1 column and more rows with a dataTable.
    I tried this:
    <h:form id="frmMessages">
                    <h:dataTable id="tblForumMessages" value="#{ForumBean.forumMessages}" var="message">
                        <h:column>
                            <h3><h:outputText value="#{message.titel}"/></h3>
                            Auteur: <h:outputText value="#{message.userID}"/><br/>
                            Datum: <h:outputText value="#{message.datum}"/><br/><br/>
                            <h:outputText value="#{message.omschrijving}"/>
                            <hr/>
                        </h:column>
                    </h:dataTable>
                </h:form>This outputs something like:
    Auteur:
    Datum:
    title1datemessage
    What did I do wrong ?

    I'm trying to make 1 column and more rows with a dataTable.
    I tried this:
    <h:form id="frmMessages">
    <h:dataTable id="tblForumMessages" value="#{ForumBean.forumMessages}" var="message">
    <h:column>
    <h3><h:outputText value="#{message.titel}"/></h3>
    Auteur: <h:outputText value="#{message.userID}"/>
    Datum: <h:outputText value="#{message.datum}"/>
    <h:outputText value="#{message.omschrijving}"/>
    <hr/>
    </h:column>
    </h:dataTable>
    </h:form>
    what is the hr tag in between...if its not the problem..then it might be that there exists no data in ur bean , i means its empty...
    regards

  • More than one SDO_GEOMETRY columns in one Oracle 8i spatial table

    I have a spatial table as follows:
    CREATE TABLE TEST(
    ID VARCHAR2(255) NOT NULL,
    POINT MDSYS.SDO_GEOMETRY,
    LINE MDSYS.SDO_GEOMETRY,
    POLYGON MDSYS.SDO_GEOMETRY,
    PRIMARY KEY(ID));
    Is it a good practice to have more than one SDO_GEOMETRY columns
    in one spatial table? What are the drawbacks if any to have a
    spatial with more than one layer?

    I have one question about more than one SDO_GEOMETRY columns
    in one table in Oracle 8.1.7. When I wanted to create two
    spatial indices for this table, every time I got some error.
    Can anyone tell me how to figure it out?
    Thanks very much,
    Fan Fan,
    You need to insert metadata record before creating spatial
    indices.
    Try the following:
    REM USER_SDO_GEOM_METADATA :
    REM insert a row for the geom layer for TEST TEST2 tables
    REM
    INSERT INTO USER_SDO_GEOM_METADATA
    ( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('TEST', 'POINT', MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('LON', -180,
    180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
    NULL);
    INSERT INTO USER_SDO_GEOM_METADATA
    ( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('TEST', 'LINE', MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('LON', -180,
    180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
    NULL);
    INSERT INTO USER_SDO_GEOM_METADATA
    ( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('TEST', 'POLYGON', MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('LON', -180,
    180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
    NULL);
    REM create a spatial index based on TRAFFIC.GEOM
    REM
    REM
    CREATE INDEX TEST_G_POINT_IDX ON TEST(POINT) INDEXTYPE IS
    MDSYS.SPATIAL_INDEX;
    CREATE INDEX TEST_G_LINE_IDX ON TEST(LINE) INDEXTYPE IS
    MDSYS.SPATIAL_INDEX;
    CREATE INDEX TEST_G_POLYGON_IDX ON TEST(POLYGON) INDEXTYPE IS
    MDSYS.SPATIAL_INDEX;

  • Table row with more than 1 UI elements

    Hello Experts,
             I want to include more than 1 UI element(say an input field and a button) in table row of a column.
    More like having a column with merged UI elements in all the rows of the table.
    Thanks in advance !!!
    Best Regards,
    Srini

    hi ,
    Check the standerd application
    SALV_WD_TEST_TABLE_EVENTS
    You can get the idea.
    And Refewr this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783
    Regards
    Vivekananthan.S

  • Choose from List in A matrix for choosing two or more rows at same time

    Hi Friends,
    Actually I m using choose from list to select Items in a row, i can select Two or more rows from the List but while clicking choose it is taking only one value.
    The no of rows are not activated tat i m choosing from list.
    Thanks in advance
    Vivek

    Hi.
    Here is a [link|https://forums.sdn.sap.com/click.jspa?searchID=12829558&messageID=5584893] where are you can find on of my example on CFL on matrix column.
    I think, you need to made some changes in code from these lines...
        Dim oDataTable As SAPbouiCOM.DataTable
        oDataTable = oCFLEvento.SelectedObjects
        for ...
        end for
    Reply if this guideline was usefull for you.
    Bye

  • Update row with more data - JTable with Abstracttablemodel

    Hello!
    I got some problems with my program, im using jtable with abstracttablemodel.
    First I include content into the jtable by pressing &rdquo;New Content&rdquo;, then it will pop up a dialog which I fill with information as you can see in the picture.
    http://img42.imageshack.us/img42/6969/jtable.jpg
    But when its done, I want to borrow it and update that row with more information as you can see if its loaned, if it is their shall be a checkbox, name and phone there. I don&rsquo;t really know how to do this. Suppose I should do a similar metodh as when I&rsquo;m adding and removing content. The question is how do I do that? I&rsquo;ve been looking at some tips and hints on google. It seems to me that should use &ldquo;fireTableRowsUpdated&rdquo; but not really sure if its right and how to. When I&rsquo;m borrowing the specific row I guess I need to check which row is clicked before borrowing and then fill in the information and update the table.The borrow button will also pop up a dialog with 3 fields to fill. Here is the code I wrote for adding and removing. I&rsquo;ve tried with the update but its not right which I&rsquo;m going to use when borrowing objects from the database. Please help!
    Code from the abstracttablemodel
    private ArrayList<Objects> obj = new ArrayList<Objects>();
         public void add(Objects o) {
              obj.add(o);
              fireTableRowsInserted(obj.size()-1, obj.size()-1);
         public void remove(int o) {
              int index = obj.indexOf(o);
              obj.remove(o);
              fireTableRowsDeleted(index, index);
         public void update (Objects o){
              // Not sure how to do here
              //int index = obj.indexOf(o);
              //fireTableRowsUpdated(index,index);
         }Code for the button in the main program.
    if (arg.getSource() == borrow) {
    // How should I do here? I need to implement the BorrowDialog, check if a row is pressed then update? How do I do that?
                   BorrowDialog newLoan = new BorrowDialog(frame);
                   if(table.getSelectedRow() == -1)
                        JOptionPane.showMessageDialog(frame,"Select the row before loan");
                   else
                        dir.update(newLoan.getLoan());
                        table.repaint();
              }Code for BorrowDialog
    public class BorrowDialog extends JDialog implements ActionListener {
            //implements JTextFields, Buttons,Labels and Panels.
         public BorrowDialog(JFrame parent) {
         //Setting buttons to panels and such
         public Objects getLoan(){
              return loan;
         public void setLoan()
                    // Not sure if this is right, as I leave some fields empty, will it be empty when its updating aswell?
                    // I tried with add data then it just will be a new row, when I will update a specific row
                    loan = new Objects("", "" , "" , "" , "" ,"", loanField.getText(),nameField.getText(), phoneField.getText());
         public void actionPerformed(ActionEvent arg) {
              if (arg.getActionCommand().equals("Save")) {
                   System.out.println("save");
                   setLoan();
                   dispose();
    }All help is appreciated!
    Edited by: iTech34 on Feb 22, 2010 3:27 AM
    Edited by: iTech34 on Feb 22, 2010 3:31 AM
    Edited by: iTech34 on Feb 22, 2010 3:58 AM

    Look up for the rest of the code!
    I explained everything on the first post, so please read there so you know the problem I got.
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class Database implements ActionListener {
         private final int WIDTH = 800;
         private final int HEIGHT = 800;
         private JTable table = new JTable();
         private JFrame frame = new JFrame("Database");
         private JButton addContent = new JButton("New content");
         private JButton borrow = new JButton("Borrow");
         private JButton returnObject = new JButton("Return");
         private JButton remove = new JButton("Remove");
         private JButton save = new JButton("Save");
         private JButton load = new JButton("Load");
         private JButton exit = new JButton("Exit");
         private Directory dir = new Directory();
         private JPanel buttonPanel = new JPanel();
         private JPanel mainPanel = new JPanel();
         public Database() {
              // BUTTONS
              buttonPanel.add(addContent);
              buttonPanel.add(remove);
              buttonPanel.add(borrow);
              buttonPanel.add(returnObject);
              buttonPanel.add(save);
              buttonPanel.add(load);
              buttonPanel.add(exit);
              // ACTION LISTENERS
              addContent.addActionListener(this);
              remove.addActionListener(this);
              borrow.addActionListener(this);
              returnObject.addActionListener(this);
              save.addActionListener(this);
              load.addActionListener(this);
              exit.addActionListener(this);
              // JTABLE
              table = new JTable(dir);
              table.setAutoCreateRowSorter(true);
              table.setRowHeight(25);
              JScrollPane JScroll = new JScrollPane(table);
              // PANELS
              mainPanel.setLayout(new BorderLayout());
              mainPanel.add("North", buttonPanel);
              mainPanel.add("Center", JScroll);
              // FRAME
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(WIDTH, HEIGHT);
              frame.getContentPane().add(mainPanel);
              frame.pack();
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
         public void actionPerformed(ActionEvent arg) {
              if (arg.getSource() == addContent) {
                   Dialog newDialog = new Dialog(frame);
                   dir.add(newDialog.getItem());
              if (arg.getSource() == remove) {
                   if (table.getSelectedRow() == -1)
                        JOptionPane.showMessageDialog(frame,"Select the row before remove");
                   else
                        dir.remove(table.getSelectedRow());
              if (arg.getSource() == borrow) {
                   // Not sure how to do here! I need to check which row I've clicked and take that row into BorrowDialog as argument i suppose.. please explain
                   BorrowDialog newLoan = new BorrowDialog(frame);
                   if(table.getSelectedRow() == -1)
                        JOptionPane.showMessageDialog(frame,"Select the row before loan");
                   else
                        dir.update(newLoan.getLoan());
                        table.repaint();
              if (arg.getSource() == returnObject) {
              if (arg.getSource() == save) {
                   dir.writeFile();
              if (arg.getSource() == load) {
                   Objects[] tempObject = dir.readFile("info.txt");
                   for (int i = 0; tempObject[i] != null; i++)
                             dir.add(tempObject);
              if (arg.getSource() == exit){
                   frame.dispose();
         public static void main(String[] argv) {
              new Database();
    }import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class BorrowDialog extends JDialog implements ActionListener {
         private final int WIDTH = 300;
         private final int HEIGHT = 400;
         private JButton exitDialog = new JButton("Exit");
         private JButton saveDialog = new JButton("Save");
         private JTextField loanField = new JTextField();
         private JTextField nameField = new JTextField();
         private JTextField phoneField = new JTextField();
         private JLabel loanLabel = new JLabel("Loan");
         private JLabel nameLabel = new JLabel("Name");
         private JLabel phoneLabel = new JLabel("Phone");
         private JPanel eastPanel = new JPanel();
         private JPanel southPanel = new JPanel();
         private JPanel westPanel = new JPanel();
         private GridLayout layout = new GridLayout(3, 1);
         private Objects loan;
         public BorrowDialog(JFrame parent) {
              super(parent, "Borrow", true);
              southPanel.add(saveDialog);
              southPanel.add(exitDialog);
              westPanel.add(loanLabel);
              eastPanel.add(loanField);
              westPanel.add(nameLabel);
              eastPanel.add(nameField);
              westPanel.add(phoneLabel);
              eastPanel.add(phoneField);
              westPanel.setLayout(layout);
              eastPanel.setLayout(layout);
              add("West", westPanel);
              add("Center", eastPanel);
              add("South", southPanel);
              saveDialog.addActionListener(this);
              exitDialog.addActionListener(this);
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setResizable(false);
              setSize(WIDTH, HEIGHT);
              getContentPane();
              setVisible(true);
         public Objects getLoan(){
              return loan;
         public void setLoan()
              // Can I really do like this? Will the the specific row I've chosen be overwriten entirly with blank elements in the six columns as I left empty(see below, when I send the arguments into the constructor)?
              loan = new Objects("", "" , "" , "" , "" ,"", loanField.getText(),nameField.getText(), phoneField.getText());
         public void actionPerformed(ActionEvent arg) {
              if (arg.getActionCommand().equals("Save")) {
                   System.out.println("save");
                   setLoan();
                   dispose();
              if (arg.getSource() == exitDialog) {
                   dispose();
    Edited by: iTech34 on Feb 22, 2010 11:19 AM
    Edited by: iTech34 on Feb 22, 2010 11:20 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • CAN YOU FREEZE MORE THAN 5 HEADER COLUMNS ?

    Can you freeze more than 5 header columns and header rows?

    Mike,
    According to Numbers '09 User Guide, Chapter 3, Adding Table Header Rows or Header Columns the maximum number of Headers is 5.
    The Numbers '09 User Guide is free for the download and full of important information:
    http://support.apple.com/en_US/manuals/#iwork

  • Fetch returns more rows

    Hi,
    I have the following table:
    ID number, not null, unique
    fname varchar2(50),not null
    lname varchar2(50), not null
    email varchar2(200)not null, uniqueand the following procedure that queries the table:
    declare
    name varchar2(100);
    email varchar2(500);
    stmt varchar2(4000);
    nbr number;
    begin
    name:=substr('sam wilkins:[email protected]',1,(instr('sam wilkins:[email protected]',':')-1));
    email:=substr('sam wilkins:[email protected]',(instr('sam wilkins:[email protected]',':')+1));
    stmt:='select id from tbl where '
          || 'fname ||'' ''||'
          || 'lname='|| ''''||lower(name)||''''||' and email='||''''||lower(email)||''''||'';
    execute immediate stmt into nbr;
    select id into nbr from tbl where fname||' '||lname = name and email = email;
    dbms_output.put_line(stmt);
    dbms_output.put_line(nbr);
    end;When I run the procedure with just the execute immediate, the query returns just one id, but when I use the select into, I get the 'Fetch returns more rows' error. Why is this?
    Thanks.

    Hi,
    natet wrote:
    Hi,
    I have the following table:
    ID number, not null, unique
    fname varchar2(50),not null
    lname varchar2(50), not null
    email varchar2(200)not null, uniqueand the following procedure that queries the table:
    declare
    name varchar2(100);
    email varchar2(500);
    stmt varchar2(4000);
    nbr number;
    begin
    name:=substr('sam wilkins:[email protected]',1,(instr('sam wilkins:[email protected]',':')-1));
    email:=substr('sam wilkins:[email protected]',(instr('sam wilkins:[email protected]',':')+1));
    stmt:='select id from tbl where '
    || 'fname ||'' ''||'
    || 'lname='|| ''''||lower(name)||''''||' and email='||''''||lower(email)||''''||'';
    execute immediate stmt into nbr;
    select id into nbr from tbl where fname||' '||lname = name and email = email;
    dbms_output.put_line(stmt);
    dbms_output.put_line(nbr);
    end;When I run the procedure with just the execute immediate, the query returns just one id, but when I use the select into, I get the 'Fetch returns more rows' error. Why is this?
    Thanks.Give your local variables names that cannot be confused for column names.
    In this statement:
    select  id
    into      nbr
    from      tbl
    where      fname ||' '|| lname     = name
    and      email                      = email;email (in both places) refers to the column in the table. No doubt you want to use the local variable in place of one of them.

  • Can we have a tooltip text, formatted on 2 and more rows

    Hello,
    I am interested if it is possible (in List GUIBB) to make a tooltip(on a list cell), containing additional description, formatted on 2 and more rows like bulleted list.
    As I can see the "tooltip" field in the fields description(parameter structure FPMGB_S_LISTFIELD_DESCR of below method) is of type char(100), but I can also assign "tooltip_ref" in method if_fpm_guibb_list~get_definition.
    I tried to insert some special symbol like "\n" but it was rendered exactly.

    I solved the problem already by using the special character  constant cl_abap_char_utilities=>newline for new-line-segmenting the tooltip text on lines.
    (In List GUIBB)I have added a technical field to the field catalog in method IF_FPM_GUIBB_LISTGET_DEFINITION and then in method IF_FPM_GUIBB_LISTGET_DATA assigned the field "tooltip_ref" (thus got limitation of 512 chars instead of "tooltip", which is limited at only 100 chars) of the field description structure to it.

  • Spatial index creation for table with more than one geometry columns?

    I have table with more than one geometry columns.
    I'v added in user_sdo_geom_metadata table record for every column in the table.
    When I try to create spatial indexes over geometry columns in the table - i get error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    What is the the solution?

    I'v got errors in my user_sdo_geom_metadata.
    The problem does not exists!

  • Adding more Values to the Column Link in Apex

    Hi,
    Is there any possibility of adding extra or more values to the column link in Apex. I already have 3 Column Name and Values linked to a different report.
    Eg:-
    Column Link:
    Link Text : #COUNT#
    Name       Value
    DATE #DATE#
    PRICE #PRICE#
    COST #COST#
    I want to add one more Name like 'ID' and corresponding and Value #ID#.
    Please Help...
    Thanks in Advance..
    Edited by: user13561710 on Jan 10, 2011 9:20 AM
    Edited by: user13561710 on Jan 10, 2011 12:34 PM

    Thanks Varad,
    But it didn't worked, The page has option to link only 3 values.
    My Target is 'Page in this Application" not a URL.
    I used your format and if you apply changes and come back the whole thing is dissappeared and even the link to page in application is inactive.
    Is there any other way???
    Thanks
    Edited by: user13561710 on Jan 10, 2011 10:49 AM
    Edited by: user13561710 on Jan 10, 2011 12:35 PM

Maybe you are looking for

  • No service for system BC_TREMAx, client 100 in Integration Directory

    Hi, I have had this problem and spent to many hours on this. I decided to post the config once I got it working. I am NOT using the system landscape directory for the java connector -> XI communicaiton. The SLD is used for XI -> SAP Scenario: send id

  • IDOC_INBOUND_ASYNCHRONOUS FM not creating new IDOC?

    Hi, IDOC_INBOUND_ASYNCHRONOUS function module is not creating new IDOC in SAP. I configured all related functions against message type and idoc type. Please let me know the issue. I am processing old IDOC (created from non sap system) through BD87 an

  • My iMac (2011) wont shut down properly!!

    I have contacted apple's phone support 3 times but it still won't shut down properly. 1. they asked me to do a pram reset 2. they asked me to go into the safe boot mode (and it does shut down properly) 3. they asked me to clear my cache (it shuts dow

  • T400 Dock Problem

    Received our company's first T400 today. 1) Put the machine into the advanced minidock. Power on computer, nothing on the monitor attached to the DVI port. Computer does boot up though (i can tell because you can hear it booting up and i opened up th

  • Image "shimmers" in menu page

    hey all, we authored a dvd with dvdsp5, and the dvd came out fine except that the picture ( a normal jpeg) "shimmers" in the menu page. also, our freeze frame shots in the film project ( edited on fcehd 3.0)itself also "shimmer." we used qt coversion