Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.63 KB | None | 0 0
  1. select sp.sku, sp.thuong_mai_dien_tu, v.fahasa_van_phuc, fs.name, fs.category, fs.category2, fs.category3
  2. from fahasa_bookstore_salepower sp
  3. join fahasa_bookstore_stock_vanilla v on v.mabh = sp.sku
  4. join fahasa_stock fs on fs.sku = sp.sku
  5. where fahasa_van_phuc > 0
  6. and sp.thuong_mai_dien_tu between 10 and 10000
  7. and fs.category3 not in ('Truyện tranh thanh thiếu niên','Truyện tranh','Truyện đọc','Văn học Thanh Thiếu Niên')
  8. and fs.category2 not in ('Văn Phòng phẩm Nhập khẩu','Giáo khoa')
  9. and fs.category not in ('VPP - DCHS','Lịch & Agenda','Lưu niệm')
  10. order by sp.thuong_mai_dien_tu desc
  11. limit 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement