hello i have 4 differenct table from which i am retriving the value different value by using foreign key. but problem is that because of foreign key data is comming in duplicate mean it is coming same data.
What I have tried:
i have also try distinct keyword for avoiding duplicate value but it is not work for me
query is
select users.Name,users.UserID,users.Contact,users.photos,pay.PaymentID,pay.Payble,pay.Discount,pay.Total_paid,pay.Balance_Remain,pay.Payment_Mode,pay.Payment_Type,pay.Payment_Describtion,pack.PackageID,pack.Package_Name,pack.Package_Duration,pack.Package_Amount,sub.SubscriptionID,sub.Package_Expire_Date,sub.Package_StartDate from tblUser as users
inner join tblPayment as pay
on users.UserID=pay.UserId
inner join tblPackages as pack
on pack.PackageID=pay.PackageId
inner join tblSubscription as sub
on users.UserID=sub.UID