Drop-Down Add to Cart

I’d like to see an option that would allow people to add quantity of products from the main catalog with a drop-down that has the # of items in stock. So if I had say 14 of a single product they’d see a drop-down list of 1-14.

Anybody know if this could already be done with a SQL statement or not?