Jump to content

DISTINCT ID


Yohanne

Recommended Posts

i have this

"SELECT DISTINCT ocs_admin_new_item.cat_id,ocs_admin_new_item.prd_name,ocs_category.cat_id,ocs_category.cat_name FROM ocs_admin_new_item INNER JOIN ocs_category ON ocs_admin_new_item.cat_id = ocs_category.cat_id ORDER BY prd_name"

now how can i DISTINCT the cat_id? where i have two table that i join?

Link to comment
https://forums.phpfreaks.com/topic/276814-distinct-id/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.