Помощь в обучении MySQl запросов
Прохожу обучение на формирование MySQL запросов на сайте https://www.sql-ex.ru/
В данный момент прохожу 7-й урок (https://www.sql-ex.ru/learn_exercises.php?LN=7)
Цель, пройти до 15-го включительно.
Иногда я не знаю, как правильно пишется синтаксис.
Прошу указать цену за час обучения.
!!! Прошу отклинкнуться людей, которые могут помогать и с 22 до 2 ночи и днем.
---------------------------
Схема БД состоит из четырех таблиц:
Product(maker, model, type)
PC(code, model, speed, ram, hd, cd, price)
Laptop(code, model, speed, ram, hd, price, screen)
Printer(code, model, color, type, price)
Таблица Product представляет производителя (maker), номер модели (model) и тип ('PC' - ПК, 'Laptop' - ПК-блокнот или 'Printer' - принтер). Предполагается, что номера моделей в таблице Product уникальны для всех производителей и типов продуктов. В таблице PC для каждого ПК, однозначно определяемого уникальным кодом – code, указаны модель – model (внешний ключ к таблице Product), скорость - speed (процессора в мегагерцах), объем памяти - ram (в мегабайтах), размер диска - hd (в гигабайтах), скорость считывающего устройства - cd (например, '4x') и цена - price. Таблица Laptop аналогична таблице РС за исключением того, что вместо скорости CD содержит размер экрана -screen (в дюймах). В таблице Printer для каждой модели принтера указывается, является ли он цветным - color ('y', если цветной), тип принтера - type (лазерный – 'Laser', струйный – 'Jet' или матричный – 'Matrix') и цена - price.
Задание 7-го урока
Get the models and prices for all commercially available products (of any type) produced by maker B.
Вот очень близкий ответ к правильному, но еще НЕ правильный:
SELECT DISTINCT product.model, PC.price, Laptop.price FROM product
LEFT JOIN
PC ON product.model = pc.model
LEFT JOIN
Laptop ON product.model = Laptop.model
WHERE product.maker = 'B'
---------------------------
Глянуть, что за "зверь" можно по ссылке ниже и по паролю и логину ниже...
https://www.sql-ex.ru/learn_exercises.php?LN=6
Логин SQL_teacher
sdmfnhjef934u9U09
-
38 Добрый день.
Доступен в указанное время.
Могу оказать вам помощь в составлении запросов с последующей проверкой их правильности онлайн на любом sql-тестере.
Обращайтесь.
-
а какая база? mysql, postgre...?
-
Current freelance projects in the category Databases & SQL
Need a 1C specialist for refinements and development.I am looking for a 1C specialist for freelance collaboration. I am currently working with a contractor who provides support and maintenance for the 1C system. However, due to the contractor's workload, there is a need for prompt execution of additional tasks, improvements, and… Databases & SQL ∙ 1 day back ∙ 9 proposals |
Restoring Instagram after a banOn March 3, 2026, my Instagram was blocked due to a violation of rules. I believe there has been some mistake, as the page was personal with photos and videos of my personal trips. I did not post any comments anywhere. I have sent several appeals. I cannot download my files… Databases & SQL, Web Programming ∙ 1 day 11 hours back ∙ 4 proposals |
CRM system for Railway LogisticsCreation of a CRM system for a logistics company mainly focused on rail and road transport, 1) Financial reporting 2) Processing applications 3) Contractors 4) Automatic issuance of invoices and acts upon closure, it is possible to create a simplified system based on 1C below… Databases & SQL, Client Management & CRM ∙ 1 day 23 hours back ∙ 39 proposals |
Eliminate the issue of incomplete data import from Excel files of Nova Poshta specifications into 1C:
45 USD
Goal: There is a processing in 1C for uploading the specifications of Nova Poshta. For unclear reasons, it has stopped loading some tabular data. We need to find the reason and eliminate the problem of incomplete data import from Excel files of Nova Poshta specifications into… System & Network Administration, Databases & SQL ∙ 4 days 18 hours back ∙ 16 proposals |
Accounting, planning, and sales system for a mushroom farm
602 USD
Here is the complete, final text of the Technical Assignment (TA). It combines all your requirements: 16 chambers, 20 contractors, a schedule by days, accounting for containers, profitability calculation, and a mandatory division into three grades of mushrooms. You can fully… Databases & SQL, Client Management & CRM ∙ 6 days 22 hours back ∙ 58 proposals |