테이블 기획
SELECT s_category.category, shopping.img, shopping.title, shopping.price, shopping.sale, shopping.reviewCount, shopping.likeCount, shopping.shoppingCount, shopping.etc
FROM shopping
LEFT JOIN s_category
ON shopping.category = s_category.id
SELECT s_category.category, shopping.img, shopping.title, shopping.price, shopping.buy_count, shopping.sale, shopping.reviewCount, shopping.likeCount, shopping.shoppingCount, shopping.etc
FROM shopping
LEFT JOIN s_category
ON shopping.category = s_category.id
order by buy_count DESC;
SELECT s_category.category, shopping.img, shopping.title, shopping.price, shopping.openDate, shopping.sale, shopping.reviewCount, shopping.likeCount, shopping.shoppingCount, shopping.etc
FROM shopping
LEFT JOIN s_category
ON shopping.category = s_category.id
order by openDate DESC;