add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 7  Duplicates: 0  Warnings: 0
id fk_id col1 col2 col3
1 10020 a b 100
2 10020 a2 b2 null
3 10020 a3 null 300
4 10020 null b4 400
5 10020 null null 500
6 10020 null null null
7 10020 a7 b7 700
@s
SELECT * FROM tab WHERE fk_id=? AND col1 IS NOT NULL AND col2 IS NOT NULL AND col3 IS NOT NULL AND fk_id IS NOT NULL AND id IS NOT NULL
Statement prepared
id fk_id col1 col2 col3
1 10020 a b 100
7 10020 a7 b7 700