I have the following query to get iPhones from table1 by color and limited to 10
SELECT * FROM table1 WHERE color = 'black' LIMIT 10
The above code works perfectly, When the black iPhones in table1 less than 10 I want to complete the iPhone's number to 10 with red color which I have also in table1 in one query