Клиент серверные технологии (1084480)
Текст из файла
Дисциплина «Базы данных» (см. схему на бумаге)
Найдите номер модели, скорость и размер жесткого диска для всех ПК стоимостью менее 500 дол. Вывести: model, speed и hd
(укажите 5 правильных ответов)
Ответы:
1 - select model, speed, hd from pc where not price >= 500
2 - select model, speed, hd from pc where price < 500
3 - select model, speed, hd from pc where price < convert(money, 500)
4 - select model, speed, hd from (select * from pc where price < 500) as subselect
5 - select model, speed, hd from pc
where model in (select * from pc pc1 where price < 500)
6 - select model, speed, hd from pc
where model not in (select model from pc pc1 where price >= 500)
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select model, speed, hd from pc where not price >= 500
select model, speed, hd from pc where price < 500
select model, speed, hd from pc where price < convert(money, 500)
select model, speed, hd from (select * from pc where price < 500) as subselect
select model, speed, hd from pc
where model not in (select model from pc pc1 where price >= 500)
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Выведите перечень (неповторяющийся список) производителей принтеров. Вывести: maker
(укажите 3 правильных ответа)
Ответы:
1 - select distinct maker from product where type='printer'
2 - select maker from product where type='printer'
3 - select maker from product group by maker, type having type='printer'
4 - select max(maker) from product where type = ‘printer’ group by maker
5 - select maker from product
where maker in (select distinct pr1.maker
from product pr1 where pr1.type = ‘printer’)
6 - select distinct maker
from (select case when type=’printer’ then maker else null end as maker
from product) as maker_printer
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select distinct maker from product where type='printer'
select maker from product group by maker, type having type='printer'
select max(maker) from product where type = ‘printer’ group by maker
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Выведите перечень (неповторяющийся список) производителей блокнотов. Вывести: maker
(укажите 3 правильных ответа)
Ответы:
1 - select maker from product
where type='laptop'
group by maker
2 - select maker from product where type='laptop'
3 - select maker
from product
group by maker, type having max(type)='laptop'
4 - select max(maker)
from product
where type = ‘laptop’ group by maker, type
5 - select distinct maker1
from (select case when type like ’laptop’ then maker else null end as maker1 from product
) as maker_printer
6 - select maker from product
where maker in (select distinct pr1.maker
from product pr1 where pr1.type = ‘laptop’)
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select maker from product
where type='laptop'
group by maker
select maker
from product
group by maker, type having max(type)='laptop'
select max(maker)
from product
where type = ‘laptop’ group by maker, type
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Найдите номер модели, объем памяти и размеры экранов ПК-блокнотов, цена которых превышает 1000 дол.
(укажите 2 правильных ответа)
Ответы:
1 - select model, ram, screen
from laptop where price > 1000
2 - select model, ram, screen
from laptop
group by model, ram, screen, price having price > 1000
3 - select model, ram, screen
from laptop where exists (select * from laptop where price > 1000)
4 - select model, ram, screen
from laptop
where price between 1000
and (select max(price) from laptop)
5 - select model, ram, screen
from laptop
where price between convert(money, 1000)
and (select max(price) max_price from laptop as lap)
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select model, ram, screen
from laptop where price > 1000
select model, ram, screen
from laptop
group by model, ram, screen, price having price > 1000
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Найдите все записи таблицы Printer для цветных принтеров.
(укажите 5 правильных ответов)
Ответы:
1 - select * from printer where color = 'y'
2 - select * from printer where color between 'y' and 'y'
3 - select * from printer where model not in (select model from printer where color <> 'y')
4 - select * from printer where exists (select code from printer p1 where p1.model=printer.model and p1.color = 'y')
5 - select * from printer
where exists (select code from printer p1 where printer.color = 'y')
6 - select * from printer
where exists (select code from printer p1 where p1.color = 'y')
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select * from printer where color = 'y'
select * from printer where color between 'y' and 'y'
select * from printer where model not in (select model from printer where color <> 'y')
select * from printer where exists (select code from printer p1 where p1.model=printer.model and p1.color = 'y')
select * from printer
where exists (select code from printer p1 where printer.color = 'y')
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Найдите все записи таблицы Printer для цветных принтеров.
(укажите 4 правильных ответа)
Ответы:
1 - select * from printer where color in ('y')
2 - select * from printer where color like 'y'
3 - select * from printer where not model in (select model from printer where color = 'y')
4 - select * from printer where exists (select code from printer p1 where p1.model=printer.model and p1.color = 'y')
5 - select * from printer
where exists (select code from printer p1 where printer.color = 'y')
6 - select * from printer
where exists (select code from printer p1 where p1.color = 'y')
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select * from printer where color in ('y')
select * from printer where color like 'y'
select * from printer where exists (select code from printer p1 where p1.model=printer.model and p1.color = 'y')
select * from printer
where exists (select code from printer p1 where printer.color = 'y')
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Найдите номер модели, скорость и размер жесткого диска всех ПК, имеющих 12х или 24х CD и цену менее 600 дол.
(укажите 4 правильных ответа)
Ответы:
1 - select model, speed, hd from pc where price < 600 and cd in ('12x','24x')
2 - select model, speed, hd from pc where price < 600 and cd ='24x'
union all select model, speed, hd from pc where price < 600 and cd='12x'
3 - select model, speed, hd
from pc where price < 600 and cd ='24x'
union select model, speed, hd
from pc where price < 600 and cd='12x'
4 - select model, speed, hd
from pc where price < 600
union all select model, speed, hd
from pc where price < 600 and (cd='12x' or cd ='24x')
5 - select model, speed, hd
from (select model, speed, hd, price from pc where cd ='24x'
union all select model, speed, hd, price from pc where cd='12x') as cds
where price < 600
6 - select model, speed, hd
from (select model, speed, hd from pc where cd ='24x' or cd='12x') as cds
where price < 600
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select model, speed, hd from pc where price < 600 and cd in ('12x','24x')
select model, speed, hd from pc where price < 600 and cd ='24x'
union all select model, speed, hd from pc where price < 600 and cd='12x'
select model, speed, hd
from pc where price < 600 and cd ='24x'
union select model, speed, hd
from pc where price < 600 and cd='12x'
select model, speed, hd
from (select model, speed, hd, price from pc where cd ='24x'
union all select model, speed, hd, price from pc where cd='12x') as cds
where price < 600
<<< ---------------------------- >>>
Дисциплина «Базы данных» (см. схему на бумаге)
Укажите производителя и скорость ПК-блокнотов с жестким диском объемом не менее 10 Гбайт.
(укажите 5 правильных ответов)
Ответы:
1 - select maker, speed
from product, laptop
where product.model=laptop.model and hd >=10
2 - select maker, speed
from product p inner join laptop l on p.model=l.model
where hd >=10
3 - select maker, speed
from product p inner join laptop l on p.model=l.model and hd >=10
4 - select maker, speed
from product p cross join laptop l
where p.model=l.model and hd >=10
5 - select maker, speed
from product, laptop
where product.model=laptop.model and laptop.hd >=10
6 - select maker, speed
from product, laptop
where product.model=laptop.model and product.hd >=10
ПРАВИЛЬНЫЕ ОТВЕТЫ:
select maker, speed
from product, laptop
where product.model=laptop.model and hd >=10
select maker, speed
from product p inner join laptop l on p.model=l.model
where hd >=10
Характеристики
Тип файла документ
Документы такого типа открываются такими программами, как Microsoft Office Word на компьютерах Windows, Apple Pages на компьютерах Mac, Open Office - бесплатная альтернатива на различных платформах, в том числе Linux. Наиболее простым и современным решением будут Google документы, так как открываются онлайн без скачивания прямо в браузере на любой платформе. Существуют российские качественные аналоги, например от Яндекса.
Будьте внимательны на мобильных устройствах, так как там используются упрощённый функционал даже в официальном приложении от Microsoft, поэтому для просмотра скачивайте PDF-версию. А если нужно редактировать файл, то используйте оригинальный файл.
Файлы такого типа обычно разбиты на страницы, а текст может быть форматированным (жирный, курсив, выбор шрифта, таблицы и т.п.), а также в него можно добавлять изображения. Формат идеально подходит для рефератов, докладов и РПЗ курсовых проектов, которые необходимо распечатать. Кстати перед печатью также сохраняйте файл в PDF, так как принтер может начудить со шрифтами.