klenin / ege Goto Github PK
View Code? Open in Web Editor NEWГенератор тестов по информатике
License: GNU General Public License v2.0
Генератор тестов по информатике
License: GNU General Public License v2.0
Например, B04.
Видимо придётся передавать второй параметр типа target => 'html'
print("*")
на printf("%s", "*")
print(n, m)
на printf("%d %d", n, m)
Изначальный запрос
SELECT Фамилия, Имя FROM (SELECT id_parent FROM kinship WHERE id_child = 2789) AS person1 INNER JOIN kinship k1 ON person1.id_parent = k1.id_child INNER JOIN kinship k2 ON k1.id_parent = k2.id_child INNER JOIN persons ON k2.id_parent = persons.id
Нам нужно получить братьев и сестёр, родителей необходимого нам человека. Запись из таблицы kinship мы получаем, используя следующую часть запроса.
(SELECT id_parent FROM kinship WHERE id_child = 2789) AS person1
Далее мы получаем, бабушку/дедушку нашего человека
INNER JOIN kinship k1 ON person1.id_parent = k1.id_child
Затем, казалось бы, мы должны просто получить всех детей бабушки и дедушки, и связать это дело с таблицей persons, но мы зачем то получаем, родителей бабушки и дедушки.
INNER JOIN kinship k2 ON k1.id_parent = k2.id_child
Как вариант исправить запрос на нечто подобное:
SELECT Фамилия, Имя FROM (SELECT id_parent FROM kinship WHERE id_child = 2789) AS person1 INNER JOIN kinship k1 ON person1.id_parent = k1.id_child INNER JOIN kinship k2 ON k1.id_parent = k2.id_parent INNER JOIN persons ON k2.id_child = persons.id
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.