I use MySQL database
Two tables:
Table 1 articles
Field: article nb article description supplier cell
100 nails company 1 no
200 screws company 2 yes
Table 1 stock
Field: article nb. barcode nb. barcodedescription instock
100 10011 nails 2 inch 5000
100 10012 nails 5 inch 0
200 20012 screw 2 inch 7500
200 20013 screw 3 inch 0
200 20014 screw 5 inch 8000
I would compare these two tables ( subquery or inner join) and only show articles that are instock and cell is YES
So result is
field: article nb. supplier cell barcode nb. barcodedescription instock
200 supplier2 yes 20012 screw 2 inch 7500
200 supplier2 yes 20014 screw 5 inch 8000
Who can help me with this if you please
<