Adding to Query Results

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was wondering if this was possible. I have a query which pulls names from
a table. However, I want "All" to be added to the result set even thought
"All" isn't in the original table the query pulls from. Can this be done?

Thanks
 
SELECT employees.employee_name
FROM employees
UNION ALL
SELECT distinct "All"
FROM employees ;

Another way is to create another table with the same structure but only one
record.

SELECT *
FROM employees
UNION ALL
SELECT *
FROM tblAll ;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top