(SQLite and C#)
I have this little problem. See those 2 tables. 1. is parent, 2. is child


I should get “broj_goluba” from parent table to match “par_m” and “par_z” in child table and later just display it in datagridview.
Foregin keys should help to get things done fast, but here when I write code I have much more lines of code opposed to not using foreign keys.
Could someone please help me and write down how my code (EDIT: SQL query) should look like when using foreign keys.
What I understand you need is that, but it doesn’t have to do anything with speed. Maybe you mean
INDEXand notFOREIGN KEY.Or maybe you need BOTH values to be equal: