Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining firstname and lastname field, how do you do it
Message
From
20/05/1999 16:03:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00219772
Message ID:
00221140
Views:
18
>How does everyone else manage the firstname and lastname fields in a database?
>
>Do you create a third field called name which is updated by an update trigger?
>
>person.lastname = "Delay"
>person.firstname = "Evan"
>person.name = "Delay, Evan" (trigger fills in??)
>
>I find that I am constantly combining the first and last name together to present to the user or for indexes..etc..
>
>Or do you use a function or a class...?

When I need them in person.name order, I have a view with
select ..., person.lastname - (", "+person.firstname) as name, ...
Then I index the view as necessary. Note the good old minus operator.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform