Question: Complete the scalar subquery below to find the minimum brick_id for each colour: select c.colour_name, ( ) min_brick_id from colours c where c.colour_name is not

Complete the scalar subquery below to find the minimum brick_id for each colour:

select c.colour_name, (
 
 ) min_brick_id
from colours c
where c.colour_name is not null;

The query should return the following rows:

COLOUR_NAME MIN_BRICK_ID 
green 4 
red 6 
blue 1 
purple 
yellow  
orange 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!