i have the following tables:
projects: id, name, language
1 |test | php
2 |test | java
3 |hello| php
attrs: id, name, value, tb1_id
1 | status | finish | 1
2 | reference | 2 | 1
I need a query to select all projects, which have a attribute "reference" to another project and "status" finish.
example output:
id, name
1 |test
Could you help me?