I have two tables
Table 1 and table 2
I would like to get all the data from Table1 and one column's value from table 2.
Unique details for both tables are the mobile number.
So I tried this:
SELECT d.*, a.paymentmode FROM table1 d JOIN table2 a ON d.user = a.mobile WHERE a.mobile = '+911234567890'
I get double results.
Like: For the above mobile number.
Order1
Order1
Order2
Order2
Order3
Order3
Order4
Order4
What is the issue here? How do I show only Order1, Order2, Order3, Order4 instead of double?