Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Descriptor test
CREATE TABLE person12 ( id integer, first_name VARCHAR(30), last_name VARCHAR(30), las_name VARCHAR(50), descriptor VARCHAR(100) ); INSERT INTO person12 VALUES ('1', 'Ivan', 'Ivanov', 'Ivanovich', null); INSERT INTO person12 VALUES ('2', 'Ivana', 'Ivanova', null, null); INSERT INTO person12 VALUES ('3', 'Ivans', null, 'Ivanovichs', null); INSERT INTO person12 VALUES ('3', null, null, 'Ivanovichs', null); update person12 set descriptor = TRIM(both ' ' from concat(last_name, ' ', first_name, ' ', las_name)); select * from person12
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
book suggestion
Islands demonstration
Projeto
PostreSQL: Right Outer Join
Select rows only with values separated by a given interval from other ...
Ankit
Postgres Practice
Query integer in text field - Seemingly doesn't work as expected
POSTGRESQL_CLOSEST_VALUE
Return IDs where there are exactly 3 occurrences
Please log in to post a comment.