ptype int කරලා where එකේදී
SELECT * FROM products WHERE ptype = 1
SELECT * FROM products WHERE ptype = 2
ඔය වගේ බලපන්..මට හිතෙන්නේ අඩු වෙනවා සුවර් :frown:
ptype ගොඩක් තියෙනවා නම් එකට වෙනම table එකක් ගන්න,simple :P
ptype_id,ptype_name
ඔය Slow වෙන්න හේතුව WHERE ptype = 'Inventory' එකේ...