Илья Ш
Просветленный
(20829)
2 года назад
select * FROM Rooms R
where id != 11 and concat(has_tv, has_internet, has_kitchen, has_air_con) =
( select concat(has_tv, has_internet, has_kitchen, has_air_con) FROM Rooms where id = 11 )
1337
Профи
(648)
3 месяца назад
SELECT *
FROM Rooms
WHERE (has_tv,
has_internet,
has_kitchen,
has_air_con) IN (
SELECT has_tv,
has_internet,
has_kitchen,
has_air_con
FROM Rooms
WHERE id = 11);