Putting two columns in one

Hey Guys,
there is my next question on sql.
It is possible to put two columns in one and when, how do I implement it? If there is an opportunity, may I asked to explain it on a example. =)
best regards
wderr

You can use concatenation:
SQL> create table a (a1 varchar2(10), a2 varchar2(10));
Table created.
SQL> insert into a values ('str1','str2');
1 row created.
SQL> select a1, a2, a1||a2
  2  from a;
A1         A2         A1||A2
str1       str2       str1str2
1 row selected.Max
[My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

Similar Messages

  • How to put two ipods on one computer

    how to put two ipods on one computer

    Set up the second exactly the same way as you set up the first. If iTunes is already installed, it doesn't need to be installed again.
    (64746)

  • Can i put two ipods on one itunes

    can i put two ipods on one itunes

    The OP didn't ask how.  They only asked if it was possible, which would consist of either a yes or no answer, which is exactly what Niel provided. 
    If the OP wanted more information, they will respond asking for more information.
    B-rock

  • How do I put two songs in one movie

    I was wanting to know how to put two songs in one movie because I am making a holiday movie so I was wanting to know

    You can only use one audio track per movie. If your movie is shorter than the audio track, then the audio track fades out automatically. If your movie is longer than the audio track, then the audio track loops automatically.
    Also note that only non-DRM music can be added to a project.

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • Getting data of two columns in one column

    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"

    872435 wrote:
    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"You can either use the CONCAT function or || -
    SQL> select 'Hello'||' '||'World', CONCAT(CONCAT('Hello',' '),'World') from dual;
    'HELLO'||'' CONCAT(CONC
    Hello World Hello WorldHTH
    David

  • Can I make two column in one slide?

    Hello, Everybody, I want to know about can i make two column in one slide. One column is demonstration and second column is to make the assessment that is teaching from one column. I can make one slide is demonstration and second is making assessment. But I don't want to do that for the learners. The learners can learn from the one column and can make assessment in the second column. Is it OK or not. Please give advice. Thanks!!!

    Hi GreenLands,
    Having both demo and assesment action in one slide is not possible in captivate. The learner should watch the full demo and then be tested through assessment or training.
    Thanks
    Devraj

  • Plz help me to put two columns in JCombobox

    hi everyone...
    Please help anyone to display two column in a jComboBox.......
    I want the smple coding.....
    with regards
    Anand

    Hallo.
    Afaik, it's not possible using only classes provided in java.swing/java.awt packages.
    One possible solution is to use custom renderer. By default JList and JComboBox are rendered using single JLabel. Our renderes should use several labels put on panel as rendereing component. For information see "Providing custom renderer" in "How to Use Combo Boxes" tutorial article, please. http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html#renderer
    Sample (functional but not very nice) code is below. Sorry, I've tried to make it as short as possible.
    import java.awt.*;
    import javax.swing.*;
    public class Main extends JDialog {       
        Main() {       
            JComboBox jPiceList = new JComboBox(new Object[] {
                new Object[] { "Lemon", 0.5 },
                new Object[] { "Tee", 3 },
                new Object[] { "Pinguin", 1 },
            jPiceList.setRenderer(new MyRenderer());       
            add(jPiceList);       
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            pack();
        public static void main(String... args)
        throws Exception {               
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new Main().setVisible(true);
    * This class use panel with two labels to render
    * list (combobox) cell
    class MyRenderer implements ListCellRenderer {
        JComponent rendererComponent;
        JLabel labels[] = { new JLabel(), new JLabel() };
        public MyRenderer() {
            // We use panel with two labels as renderer component
            rendererComponent = new JPanel();
            rendererComponent.setLayout(new GridBagLayout());
            // Add labels
            GridBagConstraints c = new GridBagConstraints();
            c.fill = c.HORIZONTAL;
            c.weightx = 0.1;
            rendererComponent.add(labels[0],c);
            rendererComponent.add(labels[1]);
        public Component getListCellRendererComponent(
                JList list, Object value, int index,
                boolean isSelected, boolean cellHasFocus) {
            Object rowData[] = (Object[])value;
            // Prepare colors
            Color foreground = isSelected?
                list.getSelectionForeground(): list.getForeground();
            Color background = isSelected?
                list.getSelectionBackground(): list.getBackground();
            // Set panel colors
            rendererComponent.setForeground(foreground);
            rendererComponent.setBackground(background);
            // TODO Prepare and set panel border for hint
            // @see DefaultListCellRenderer#getListCellRendererComponent        
            // Now set label value and colors
            int col = 0;
            for(JLabel label : labels) {
                label.setBackground(background);
                label.setForeground(foreground);
                label.setText( String.valueOf(rowData[col++]) );
            return rendererComponent;
    }

  • Blank page showing when changing from two column to one column pages

    This is the scenario:
    Document with two master pages - Page1 has two content areas - left column and right column, Page 2 has one content area the full page width named 'FullPage'
    One page set named PageSetOne - with multiple subforms, each with Pagination setting of Following Previous and Continue filling parent.
    Second page set named PageSetTwo - this has a single subform with Pagination setting of place on Page2. The child subform has itself a subform with Pagination setting of Place in Content Area 'FullPage'.
         This page set is initially set to be Hidden.
    Third page set named PageSetThree - this has a single subform with Pagination setting of place in Page 1 and a child subform with Pagination setting of Following Previous.
    [Obviously I am simplifying names and content here].
    The problem is this: when in design mode, there is a blank page showing at the end of the document whenever there are sufficient subforms in PageSetOne such that subforms are displayed in the right hand column.
    When subforms are removed so that nothing is showing in the right hand column then the blank page goes away.
    I have put a marker subform immediately after the last subform in PageSetThree and can see that the blank page is showing after this.
    Also, the following problem:
         When in preview mode, the extra blank page at the end does not display (which is good)
         BUT if the hidden PageSetTwo is made to be visible AND there is content showing in the right hand column prior to it,
         THEN a blank page is displayed just before the newly displayed PageSetTwo page (a single column page on Master page Page2).
    I have tried every combination of Pagination Place before and after settings and can find no way to avoid the blank pages.
    Does anyone have a clue as to what is going on and how I can avoid these blanks showing up?

    I have finally managed to solve this problem.
    The issue was not a subform extending too far out, it was a pagination setting, as Niall suggested.
    I created a blank document to analyse the issue closely, and lo, my new blank doc with all default settings, worked perfectly.
    So I revisited my forms and compared the pagination settings subform by subform.
    This is what I had to change to ensure that all pages flowed with no extras:
    PageSetOne (which is supposed to show using the two column master)
    set the top page Place = ‘In Content Area Leftcolumn’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetTwo (to show in the full page column Master)
    set the top page Place = ‘In Content Area FullPage’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetThree ( back to two column master)
    set the top page Place = ‘On Page1’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    I discovered that the critical setting was for PageSetOne. The After setting needed to be Continue filling Parent
    Once I had those settings in order then the form performed as required.
    This has been a frustrating learning experience but at least ultimately successful.
    AJ

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • How can I put two photos in one 6x4 print??

    Hello!! So I want to print out some of my photos for a scrapbook.
    I however do not want them all to be 6x4 sized prints and making smaller ones (scrapbook prints) at the photo shops cost too much.
    There HAS to be a way to just put two separate photos into one photo jpeg type file right? That way I can print them out normally and just cut them in half so some are smaller?
    Any help?
    Much appreciated!

    Your question is not clear
    do you want to
    1 - put two separate photos into one photo jpeg type file
    Or do you want to print two photos on one sheet of paper so you can
    2 - can print them out normally and just cut them in half so some are smaller
    For 1 you need an external editor - you can do it in pages for example
    for 2 you simply select the two photos, crop them so they will fit and print selecting the printer, paper size and print size (slightly smaller than 3x4 since there needs to be a small border around them and between them), if the priview does not show two photos on the page click customize and in setting select multiple photos per page - the preview will reflect this selection and finish printing
    LN

  • Two columns referncing one dimension

    Hello, I'd like to have two columns in a fact which are connected to the same dimension. Is this possible in OWB and how ?
    Thanks !

    You may open two Key Lookup and select the same dimension twice and then use two different columns in lookup condition.

  • Showing data of two columns in one in the Query

    I have two masters with same structures only Key of master is different.
    i have created multiprovider on these masters which is used for query purpose.
    Here situation is that we have already loaded data in one master structure whcih is not tobe touched.
    we can only do chages in second master.
    Now in Multiprovider as two key fields for two masters are different we cannot map them in identification of multiprovider.
    Now we want only one field on selection screen and also in the report with data for both masters.
    can anybody help me in it.

    Hi
    You can use Constant Selection (Effect like Left Outer Join for different InfoObjects in a MultiProvider). In order to do that, please take the following steps:
    1. Create a Restriced Key Figure.
    2. In the RKF dialog, drag one of the characteristics (the one that is NOT related to the KF).
    3. Right Click on this Characteristic (context menu) and hit "Constant Selection".
    This should show you all values in the columns.
    Yaniv

  • Updatiog two column of one table ?

    Hi Guys
    i am Learning Oracle sql
    when am going to update 'place' of two members it does not updating, here is the querry
    employee Table
    EMPNO   EMPNAME       JOB            SALARY   PLACE
    1           san              employee       25000     africa
    2           tan              employee       30000     Africa
    3           pan              employee       35000     Africa
    4           sony            employee        40000     africai want to update place of employee san and sony
    i tried ths
    NOT WORKING
    sql> update employee
           set place = 'Africa'
           where empno = 1 and empno = 4;
    0 rows updated WORKING
    sql> update employee
           set place = 'Africa'
           where empname like 's%';
    2 rows updatedwhy 1st one is not working ?
    thanks
    Edited by: 978976 on Dec 27, 2012 9:43 PM
    Edited by: 978976 on Dec 27, 2012 9:52 PM
    Edited by: 978976 on Dec 27, 2012 9:55 PM
    Edited by: 978976 on Dec 27, 2012 9:57 PM
    Edited by: 978976 on Dec 27, 2012 9:57 PM

    978976 wrote:
    i did just like wat u saidThanks for the information.
    However the update statement you fired is incorrect, hence it did not update the rows:
    update employee
           set place = 'Africa'
           where empno = 1 and empno = 4;You cannot have an empno to be 1 and 4 at the same time.
    I think you wanted to update place to Africa for Employees with EMPNO as 1 and 4.
    Below will do the job for you:
    update employee
           set place = 'Africa'
           where empno IN (1, 4);
    This is same as saying
    update employee
           set place = 'Africa'
           where empno =1 or empno = 4;

  • How to put two devices on one Data plan?

    I've had my phon with a 2gb Data plan for about a year and just recently bought a Jetpack with a 6gb Data plan to replace my original and be shared between the two.
    A month later I get my bill and find im still being charged for both. I kind of expect this seeing as I didn't buy the new plan when my original bill was scheduled for payment.
    Two months after, Im still paying for both. And what's worse, Im being overcharged with my phone Data plan because I had thought I had more Data to use.
    I've tried going back to the retailer, but the just directed me to contact Verizon. I've made very many attempts to contact Verizon, to no avail. Whether it be through calling, Chat, forums, anything. I can't find any direct email for customer support. I am angry and very unhappy with the service. 
    Any suggestions on either getting in contact with Verizon (my available calling hours never seem to match up with theirs) or fixing it myself if possible. Thank you.

    If you're on the old Nationwide plans data between devices can not be shared. You need to be on Share Everything to share Data. Of course if you didn't become a Verizon customer until after June 28th 2012 you SHOULD be on Share Everything.
    For the record a Share Everything plan with a smartphone a jetpack and 8 GB of data would be $150 plus taxes/fees

Maybe you are looking for