All streams
Search
Write a publication
Pull to refresh
0
0
Tischenko Sergey @tyhon

User

Send message
чо то типа этого :)

SELECT
`t`.`field`,
`t`.`field1` `another_field`

FROM
`table` `t`
INNER JOIN
`table1` `t1`
ON
(`t1`.`id` = `t`.`id`)
LEFT JOIN
`table2` `t2`
ON
(`t2`.`id` = `t1`.`id`)
WHERE
`t`.`value` = 'foo' AND
`t1`.`value` = 'bar'
GROUP BY
`t`.`field`
ORDER BY
`t`.`field` DESC

блин как тут всталять отступы…
но думаю и так поянтно будет :)

Information

Rating
Does not participate
Location
Харьков, Харьковская обл., Украина
Date of birth
Registered
Activity