equivalent of a sql query in posgresql

help me i dont understand how to make subquery in posgresql
SELECT products.product_name, products.units_in_stock
FROM products
WHERE products.units_in_stock = (
SELECT max(products.units_in_stock)
FROM products
WHERE products.units_in_stock > 30
);
SELECT products.product_name, products.units_in_stock
FROM products
WHERE products.units_in_stock = (
SELECT max(products.units_in_stock)
FROM products
WHERE products.units_in_stock > 30
);
1 Reply
Nzoth
NzothOP7mo ago
i mean how to do it in drizzle select, it's working like in postresql
Want results from more Discord servers?
Add your server