Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
DROP VIEW IF EXISTS `вирт_Кафедра`; CREATE VIEW `вирт_Кафедра` AS SELECT `СПР1`.`Код` AS `Код кафедры`, `СПР1`.`Название` AS `Название кафедры`, `СПР2`.`Код` AS `Код факультета`, `СПР2`.`Название` AS `Название факультета`, `СПР1`.`Ид` AS `Ид\Кафедра` FROM `Справка+` AS `СПР1` LEFT JOIN `Справка+` AS `СПР2` ON `СПР1`.`Ид_родитель\СПР^СПР` = `СПР2`.`Ид` WHERE `СПР1`.`Слк` = "ПОД" AND `СПР1`.`Название` LIKE "каф%" ; SELECT * FROM `вирт_Кафедра`;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear