Usa la funzione aggregata MIN.
SELECT MIN(date_added) AS OldestDate
FROM products_to_categories
WHERE products_id = 2085;Per il più vecchio per prodotto, aggiungi GROUP BY products_id.
Usa la funzione aggregata MIN.
SELECT MIN(date_added) AS OldestDate
FROM products_to_categories
WHERE products_id = 2085;Per il più vecchio per prodotto, aggiungi GROUP BY products_id.