E16

Preview Title-Case Display Names

EasyDemographics10 pts
Related lesson: String Functions

Scenario

The directory team is thinking about generating display names with INITCAP instead of showing names exactly as entered, and wants to preview the result for every person on file (all of dbo.ods_person, students and non-students). Produce that preview: each person's id and INITCAP(first_name || ' ' || last_name) as display_name.

Expected output

One row per person in dbo.ods_person (220 rows), sorted by id, with display_name = INITCAP of first name + space + last name. Letter case is part of the answer: INITCAP turns McCarthy into Mccarthy and O'Connell into O'connell, and the preview should show exactly that.

iddisplay_name

Tables

ods_person