Не указано, какая используется СУБД, ниже запросы подойдут для Postgresql: 1. select article.id from article where article.text like '%beta%' or '%4%' 2. select article.id from article where comments.text is NULL and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 3. select users.name from users where users.id=article.user_id and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 4. SELECT article.id, COUNT(comments.id) AS "CNT" from article, comments where article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
ritckshulga20112
21.02.2022
Не указано, какая используется СУБД, ниже запросы подойдут для Postgresql: 1. select article.id from article where article.text like '%beta%' or '%4%' 2. select article.id from article where comments.text is NULL and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 3. select users.name from users where users.id=article.user_id and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 4. SELECT article.id, COUNT(comments.id) AS "CNT" from article, comments where article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
Ответить на вопрос
Поделитесь своими знаниями, ответьте на вопрос:
2. для какого из данных слов истинно высказывание: не (третья буква гласная) и (последняя согласная)? 1) слива 2) инжир 3) ананас 4) киви
1. select article.id from article where article.text like '%beta%' or '%4%'
2. select article.id from article where comments.text is NULL and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
3. select users.name from users where users.id=article.user_id and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
4. SELECT article.id, COUNT(comments.id) AS "CNT" from article, comments
where article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id