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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate the column values in query result as a single string 1

Status
Not open for further replies.

bean1234

Technical User
Nov 14, 2006
45
0
0
US
Hello All,

I am trying the following query
Code:
select first_name + ' ' +middle_initial+ ' '+last_name as name, user_ids.racfid from user_ids,user_roles  where user_ids.racfid = user_roles.racfid and user_roles.role_name = 'Publisher'
I get an error ORA-01722: invalid number, as you can see I ma trying to concatenate the name fileds and return it as a single field.Please let me if its possible and if not anyother way to do it .

Thanks in Advance!
 
Forgot to mention I am using oracle 9i.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top