Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining fields into one name for output 1

Status
Not open for further replies.

evergrean100

Technical User
Dec 1, 2006
115
US
Dont have access to Oracle at this time but want to make sure this is a correct statement?
Code:
select (firstname,lastname) as fullname, city from tableOne
 
Nope...
Code:
select firstname||' '||lastname as fullname, salary from tableOne;

FULLNAME                 SALARY
-------------------- ----------
Carmen Velasquez           2500
LaDoris Ngao               1450
Midori Nagayama            1400
Mark Quick-To-See          1450
Audry Ropeburn             1550
Let us know if this answers your questions.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top