Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to relationship query two different tables in MySQL

SELECT product_name, customer.name, date_of_sale  
FROM sales, product, customer 
WHERE  product.product_id = sales.product_id 
AND customer.customer_id >= sales.customer_id LIMIT 0, 30
Source by www.plus2net.com #
 
PREVIOUS NEXT
Tagged: #relationship #query #tables #MySQL
ADD COMMENT
Topic
Name
1+4 =