Skip to content

Commit cc2d819

Browse files
authored
Merge pull request #327 from sukstechs2311/sukstechs2311-patch-1
SQL 313 PR
2 parents 6013472 + 4ea7534 commit cc2d819

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SELECT *
2+
FROM Faculty;
3+
4+
SELECT CONCAT(SPLIT_PART(name, ' ', 1)::text, '_', national_id::text, '@baeldung.com')
5+
AS allocated_email_id
6+
FROM Faculty
7+
LIMIT 2;
8+
9+
SELECT CONCAT(CAST(SPLIT_PART(name, ' ', 1) AS text), '_', CAST(national_id AS text), '@baeldung.com')
10+
AS allocated_email_id
11+
FROM Faculty
12+
LIMIT 2;
13+
14+
SELECT CONCAT(SPLIT_PART(name, ' ', 1), '_', national_id, '@baeldung.com') AS allocated_email_id
15+
FROM Faculty
16+
LIMIT 2;

0 commit comments

Comments
 (0)