Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 314 Bytes

ex17.md

File metadata and controls

18 lines (13 loc) · 314 Bytes

Exercise: 17

Get the laptop models that have a speed smaller than the speed of any PC.

Result set: type, model, speed.

Solution

SELECT DISTINCT product.type, product.model, laptop.speed
FROM laptop
	JOIN product ON laptop.model = product.model
WHERE speed < (
	SELECT MIN(speed)
	FROM pc
)