JavaScript
- 33 ответа
- 0 вопросов
7
Вклад в тег
SELECT
pd.pid
FROM
promisers_data pd
INNER JOIN promisers_data pd2 ON pd.pid = pd2.pid
WHERE 1
AND (pd.key='family' AND pd.value LIKE '%Иванов%')
AND (pd2.key='name' AND pd2.value LIKE '%Иван%')