sikas
sikas

Reputation: 5523

Oracle Select Query

How can I perform a select operation on two fields and view them as a single field?

ex:

I have a customer table that holds the customers data, I want to select both last_name and first_name (two different fields) and want to view them like this, "last_name, first_name"

using the oracle command not using any language.

Upvotes: 2

Views: 125

Answers (2)

Sachin Shanbhag
Sachin Shanbhag

Reputation: 55489

Try this -

SELECT '"' || last_name || ',' || first_name || '"' from table

Upvotes: 2

dcp
dcp

Reputation: 55434

SELECT last_name || ', ' || first_name full_name
  FROM tbl

Upvotes: 5

Related Questions