Check out example codes for "subqueries ALL sql". It will help you in understanding the concepts better.

Code Example 1

SELECT a.studentid,, b.total_marks
FROM student a, marks b
WHERE a.studentid = b.studentid AND b.total_marks >
(SELECT total_marks
FROM marks
WHERE studentid =  'V002');

Code Example 2

SELECT ProductName
FROM Products
WHERE ProductID = ALL (SELECT ProductID FROM OrderDetails WHERE Quantity = 10);

Learn ReactJs, React Native from