Skip to content

Commit 15341c3

Browse files
Create postgresql-queries.sql
1 parent 376126c commit 15341c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)