Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining fields with SQL?
Message
From
31/08/2000 11:06:32
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00411282
Message ID:
00411303
Views:
8
>>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

Thanks, that's pretty simple.
Jim Philippi

quando omni flunkus moritati
Previous
Reply
Map
View

Click here to load this message in the networking platform