To solve this exercise is generally used two approaches: first, the join and selecting the required row and second, check for hit maker in the two lists. The next incorrect solution implements the first approach:
This is another variant on the theme of "something one". Indeed, the model is unique, ie it is either a PC or laptop. Next rows are obtained as result of external joins:
maker model (PC)NULL
maker NULL model (laptop)
However, there can be no rows such as:
maker model (PC) model (laptop)
because the join is performed by model number.
As a result, the list contains only makers who make only one product type with the desired characteristics. However, the correct solution is simply adding the grouping by maker and model counting. We suggest you do it yourself.
To demonstrate the second approach, consider the following variant:
which can be read as follows: find a manufacturer that produces the PC with at least 750 MHz or a laptop computer with at least 750 MHz, with a given maker must produce both PCs and laptops. Undeniable progress of this solution compared with the decision 1.15.1 is that the findings of makers, such as PC and laptop computers. However, this solution allows for an option when a maker produces only a PC at speeds over 750 MHz, while all of its laptop computers have a speed of less than 750 MHz, and vice versa.