0

I've got this simple query:

select e.empname.title, e.empname.firstname, e.empname.surname 
from employee e
where e.empname.firstName like '%on%' and e.empaddress.city like 'New York';

I'm using objects, and im trying to format the columns on the query results, so it shows 'Title', 'First name' and 'Surname'instead of the types ive created i've tried adding the following above the query, and a few other variations with no luck.

COLUMN E.EMPNAME.TITLE    HEADING 'Title'

Any guidance would be appreciated!

1 Answer 1

1
select e.empname.title as Title , e.empname.firstname as Firstname, e.empname.surname as Surname
from employee e
where e.empname.firstName like '%on%' and e.empaddress.city like 'New York';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.