From jet to t-sql

S

steve

hello

I've got a problem using a T-sql syntax.
The jet syntax goes:
SELECT 0,"<<Add new>>" FROM employees
UNION (SELECT DISTINCTROW employees.id,employees.lastname & ", " &
employees.firstname from employees);

Can someone tell me how it goes in T-SQL


thanks
steve

steve
 
G

giorgio rancati

-----
SELECT ID,lastname + ', ' + firstname
from employees
UNION
SELECT 0,'<<Add new>>'
 

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

Top