Position of Table Columns

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ganapathi sundaram

    Position of Table Columns

    Dear All,

    I want to get more than one table columns as a single column by
    alternative.

    For eg,

    Table name = employee

    columns = empid, empname, address1,addres s2

    Here, I want to interpolate the address2 column on address1 as
    mentioned below,

    empid empname address1
    address2

    1 aaa First Layout,
    CA, US.


    Thanks in advance.

    Thanks and Regards,
    Ganapathi sundaram.G
  • Tom van Stiphout

    #2
    Re: Position of Table Columns

    On Wed, 2 Jan 2008 01:31:21 -0800 (PST), Ganapathi sundaram
    <ganapathysunda rum@gmail.comwr ote:

    How about this:
    select empid, empname, address1 + CHAR(13) + CHAR(10) + address2
    from employee

    -Tom.

    >Dear All,
    >
    >I want to get more than one table columns as a single column by
    >alternative.
    >
    >For eg,
    >
    >Table name = employee
    >
    >columns = empid, empname, address1,addres s2
    >
    >Here, I want to interpolate the address2 column on address1 as
    >mentioned below,
    >
    >empid empname address1
    address2
    >
    >1 aaa First Layout,
    CA, US.
    >
    >
    >Thanks in advance.
    >
    >Thanks and Regards,
    >Ganapathi sundaram.G

    Comment

    • --CELKO--

      #3
      Re: Position of Table Columns

      >I want to get more than one table columns as a single column by alternative. <<

      Formatting is done in the front end in a tiered architecture, never in
      the database. This is a basic programming concept and applies to more
      than just SQL.

      Comment

      • Madhivanan

        #4
        Re: Position of Table Columns

        On Jan 2, 2:31 pm, Ganapathi sundaram <ganapathysunda ...@gmail.com>
        wrote:
        Dear All,
        >
        I want to get more than one table columns as a single column by
        alternative.
        >
        For eg,
        >
        Table name = employee
        >
        columns = empid, empname, address1,addres s2
        >
        Here, I want to interpolate the address2 column on address1 as
        mentioned below,
        >
        empid empname address1
                                     address2
        >
        1        aaa            First Layout,
                                    CA, US.
        >
        Thanks in advance.
        >
        Thanks and Regards,
        Ganapathi sundaram.G

        Where do you want to show data?
        It seems you should use Reports

        Comment

        Working...