DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: One heading for two columns

Hybrid View

  1. #1
    Join Date
    Aug 2000
    Location
    York - England
    Posts
    33
    Consider a table that has two columns
    Last Name and First Name
    How would you go about producing a SQL*Plus statement that will show the Last Name and the First Name under one Heading of Name ?????

    NAME
    ----------------
    Smith Fred
    Brown Sam
    Kundi Kami

    Etc

    Any suggestions ?
    :p :p :p

  2. #2
    Join Date
    Oct 2000
    Posts
    90
    select rtrim(last_name) || ' ' || first_name name
    from table

  3. #3
    Join Date
    Aug 2000
    Location
    York - England
    Posts
    33
    Top Man / Lady

    Worked a treat

    Cheers
    Slaine
    :p :p :p

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width