44 | | select a.articleid, articlename, l.locationname, s2.quantity from articles a |
45 | | left join article_belongs_to_category abtc on abtc.articleid=a.articleid |
46 | | left join supplier_supplies_category ssc on ssc.categoryid=abtc.categoryid |
47 | | left join suppliers s on s.userid=ssc.userid |
48 | | left join storedarticles s2 ON s2.articleid=a.articleid |
49 | | left join locations l on l.locationid=s2.locationid |
50 | | where s.userid=8 |
| 44 | select articlename from articles |
| 45 | where articleid in (3, 8) |
| 46 | }}} |
| 47 | {{{#!sql |
| 48 | select quantity, locationname from storedarticles s --достапност по магацин |
| 49 | left join locations l on l.locationid=s.locationid |
| 50 | where s.articleid in (3, 8) |