ссср литва SELECT id_film rus name count as cnt concat FROM content co

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* ссср + литва */
SELECT id_film,rus,name,count(*) as cnt,concat
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,123)
group by id_film having cnt=2
/* ссср + азербайджан */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,136)
group by id_film having cnt=2
/* ссср + латвия */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,54)
group by id_film having cnt=2
/* ссср + грузия */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,61)
group by id_film having cnt=2
/* ссср + армения */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,89)
group by id_film having cnt=2
/* ссср + беларусь */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,69)
group by id_film having cnt=2
/* ссср + украина */
SELECT id_film,rus,name,count(*) as cnt
FROM content co
INNER JOIN country_relation USING(id_content)
WHERE id_country IN (13,62)
group by id_film having cnt=2