Skip to content

Commit 4ea7534

Browse files
Update postgresql-queries.sql
1 parent 15341c3 commit 4ea7534

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql-queries-10/integer-to-string/postgresql-queries.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
SELECT *
22
FROM Faculty;
33

4-
SELECT CONCAT(CAST(SPLIT_PART(name, ' ', 1) AS text), '_', CAST(national_id AS text), '@baeldung.com') AS allocated_email_id
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
511
FROM Faculty
612
LIMIT 2;
713

0 commit comments

Comments
 (0)