Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJessica Schteiden
3,254 PointsIssue with Concatenation Function
Not sure how I am able to incorporate angle brackets around the email alias. Tried a few different things out but am getting stuck.
1 Answer
KRIS NIKOLAISEN
54,971 Pointsemail isn't an alias. Nor is there a concatenation function in SQLite. Use the concatenation operator. Just make sure the angle brackets and any spaces are enclosed in quotes and email isn't. For example
SELECT '<' || email || '>' AS formatted_email FROM patrons;
will retrieve:
<andrew@teamtreehouse.com>
as formatted_email for a record with andrew@teamtreehouse.com
in the email field.