Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining fields with SQL?
Message
 
To
31/08/2000 10:44:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00411282
Message ID:
00411300
Views:
13
>Here’s another one... I have two tables, one has a name Foreign Key, the other the names. I would like to create a third table via SQL SELECT that would have a field “Full Name” that would have the combined fields FirstName and LastName looking something like LastName, Firstname. Is this something I can do somewhat easily in SQL?

Something like

select table1.employee_id, ;
ALLTRIM(employee.first_name) + " " + ALLTRIM(employee.last_name) AS FULL_NAME ;
FROM table1, employee
WHERE table1.employee_id = employee.employee_id ;
INTO table3
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform