By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
CREATE TABLE
INSERT 0 1
INSERT 0 2
| id | lastname | firstname |
|---|---|---|
| 1 | shaggk | fai55 |
| 2 | shaggk | fai55 |
| 3 | XXaggk | fai56 |
SELECT 3
| user_id | sample_id | adddetails |
|---|---|---|
| 1 | 1 | ss |
| 2 | 2 | ss |
| 3 | 3 | xx |
SELECT 3
| id | user_id | value |
|---|---|---|
| 1 | 1 | ss2 |
| 2 | 2 | ss2 |
| 3 | 3 | xx2 |
SELECT 3