Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql left join exists

SELECT * FROM customer
LEFT JOIN product ON product.customerId = customer.id
WHERE product.customerId IS NOT NULL	# which means customer id should exists
 
PREVIOUS NEXT
Tagged: #mysql #left #join #exists
ADD COMMENT
Topic
Name
2+1 =