need help

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm creating asp.net using C# and I'm going against a SQl db. One table i'm
going against i need to pull FirstName from one column and LastName from a
seperate column.

How can I join these 2 columns in my query and display them together in my
datagrid?
 
SELECT FirstName + ' ' + LastName AS FullName FROM MyTable
 
Ok thanks, got that, now how can i have the lastname first seperated by a
comma then the firstname?
Like.

Doo, Scooby
 
I figured it out.
early in the morning and i didn't have my thinking cap on yet
 

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