I have user
table and payment
is many to many relationships table.
SELECT user.uID,
user.uName,
user.uLocation,
user.uBlock,
user.uRoom,
user.uStatus,
payment.pID,
payment.pDate,
payment.pType
FROM user
INNER JOIN payment
ON user.uID = payment.pID
LIMIT 0,100
- With
INNER JOIN
results will be nothing. - With
LEFT JOIN
user display correct result but returnNULL
on payment table - With
RIGHT JOIN
payment display correct result but returnNULL
on user table
How do I get a correct result to display both? LEFT JOIN
& RIGHT JOIN