Good day! I'm trying to select from two tables in one query data. As a matter of fact, you need to get - nook.*, jurnal.company, jurnal.tara, WHERE nook.parent = jurnal.id and jurnal.date - which is in a different DB row, but this line is connected by jurnal.parent . I made two requests that get the data that I need, but I just can not figure out how to combine them into one!
SELECT nook.*, jurnal.company, jurnal.tara FROM nook, jurnal WHERE nook.parent = jurnal.id AND nook.spisan is NULL OR nook.spisan = 0 SELECT jurnal.date FROM jurnal WHERE jurnal.id IN (SELECT jurnal.parent FROM nook, jurnal WHERE nook.parent = jurnal.id) I think for the masters of labor will not help the novice advice)