Query |
SET NAMES UTF8 SELECT u.universityID, u.longName as name, up.name as uniPic FROM users_apll ua INNER JOIN university_specialty AS us ON (ua.university_specialtyID = us.university_specialtyID) LEFT JOIN university AS u ON (u.universityID = us.universityID) LEFT JOIN pic AS up ON (up.ID = u.pix) WHERE userID = '' GROUP BY u.universityID ORDER BY u.longName ASC SELECT s.specialtyID, s.shortName, s.longName, s.url FROM specialty as s INNER JOIN university_specialty AS us ON (s.specialtyID = us.specialtyID) WHERE s.hide = 0 AND us.hide=0 GROUP BY specialtyID ORDER BY s.shortName SELECT universityID, longName as shortName,url FROM university WHERE hide = 0 ORDER BY shortName SELECT cityID, shortName FROM city WHERE hide = 0 AND cityID IN (SELECT cityID FROM university WHERE hide = 0) OR cityID IN (SELECT cityID FROM university_affiliate WHERE hide = 0) ORDER BY shortName SELECT * FROM specialty WHERE hide = 0 AND url = 'mejdunarodni-ikonomicheski-otnosheniya' UPDATE specialty SET hits = (hits + 1) WHERE specialtyID = '176' SELECT * FROM university_specialty WHERE hide = 0 AND specialtyID = '176' ORDER BY longName SELECT longName, cityID, pix FROM university WHERE universityID = '2' SELECT * FROM pic WHERE ID='13' SELECT cityID, longName, pix FROM city WHERE cityID='8' SELECT * FROM pic WHERE ID='9' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '284' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '284' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '284' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '284' AND ratingType = '1' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '284' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '568' SELECT longName, cityID, pix FROM university WHERE universityID = '10' SELECT * FROM pic WHERE ID='10' SELECT cityID, longName, pix FROM city WHERE cityID='10' SELECT * FROM pic WHERE ID='3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '24' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '24' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '0' SELECT longName, cityID, pix FROM university WHERE universityID = '11' SELECT * FROM pic WHERE ID='11' SELECT cityID, longName, pix FROM city WHERE cityID='8' SELECT * FROM pic WHERE ID='9' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '31' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '31' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '' SELECT longName, cityID, pix FROM university WHERE universityID = '9' SELECT * FROM pic WHERE ID='20' SELECT cityID, longName, pix FROM city WHERE cityID='17' SELECT * FROM pic WHERE ID='2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '68' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '68' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '' SELECT longName, cityID, pix FROM university WHERE universityID = '8' SELECT * FROM pic WHERE ID='19' SELECT cityID, longName, pix FROM city WHERE cityID='1' SELECT * FROM pic WHERE ID='6' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '132' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '132' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '142' SELECT longName, cityID, pix FROM university WHERE universityID = '1' SELECT * FROM pic WHERE ID='12' SELECT cityID, longName, pix FROM city WHERE cityID='5' SELECT * FROM pic WHERE ID='8' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '218' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '218' AND ratingType = '1' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '218' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '58' SELECT longName, cityID, pix FROM university WHERE universityID = '2' SELECT * FROM pic WHERE ID='13' SELECT cityID, longName, pix FROM city WHERE cityID='8' SELECT * FROM pic WHERE ID='9' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '283' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '283' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '283' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '283' AND ratingType = '1' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '283' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '568' SELECT longName, cityID, pix FROM university WHERE universityID = '6' SELECT * FROM pic WHERE ID='16' SELECT cityID, longName, pix FROM city WHERE cityID='16' SELECT * FROM pic WHERE ID='7' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '321' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '321' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '0' SELECT longName, cityID, pix FROM university WHERE universityID = '4' SELECT * FROM pic WHERE ID='15' SELECT cityID, longName, pix FROM city WHERE cityID='14' SELECT * FROM pic WHERE ID='5' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '403' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '403' AND ratingType = '1' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '403' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '296' SELECT longName, cityID, pix FROM university WHERE universityID = '3' SELECT * FROM pic WHERE ID='1' SELECT cityID, longName, pix FROM city WHERE cityID='2' SELECT * FROM pic WHERE ID='4' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '492' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '492' AND ratingType = '1' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '492' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '411' SELECT longName, cityID, pix FROM university WHERE universityID = '8' SELECT * FROM pic WHERE ID='19' SELECT cityID, longName, pix FROM city WHERE cityID='1' SELECT * FROM pic WHERE ID='6' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '1088' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '1088' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '0' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '284' SELECT url FROM university WHERE universityID = '2' SELECT url FROM university WHERE universityID = '2' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '284' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '24' SELECT url FROM university WHERE universityID = '10' SELECT url FROM university WHERE universityID = '10' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '31' SELECT url FROM university WHERE universityID = '11' SELECT url FROM university WHERE universityID = '11' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '68' SELECT url FROM university WHERE universityID = '9' SELECT url FROM university WHERE universityID = '9' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '132' SELECT url FROM university WHERE universityID = '8' SELECT url FROM university WHERE universityID = '8' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '132' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '218' SELECT url FROM university WHERE universityID = '1' SELECT url FROM university WHERE universityID = '1' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '218' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '283' SELECT url FROM university WHERE universityID = '2' SELECT url FROM university WHERE universityID = '2' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '283' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '321' SELECT url FROM university WHERE universityID = '6' SELECT url FROM university WHERE universityID = '6' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '403' SELECT url FROM university WHERE universityID = '4' SELECT url FROM university WHERE universityID = '4' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '403' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '492' SELECT url FROM university WHERE universityID = '3' SELECT url FROM university WHERE universityID = '3' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '492' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '1088' SELECT url FROM university WHERE universityID = '8' SELECT url FROM university WHERE universityID = '8' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '1088'
|