I'm having problem with an INNER JOIN
. There are three tables Customer
, Regular
aAnd Master
.
Using this query, I'm only getting records from customer
table
Query
Select
Customer.CustomerId,
Customer.RefId,
Regular.LicenseId,
Master.MasterId,
Master.FullName,
Master.Profile
From
Customer
Inner Join
Regular on Customer.RefId = Regular.Licenseid
Inner join
master on regular.controlid = master.masterid Or customer.refid = master.masterid
Result
From the table Customer
, RefId
having both record M000001 and R000001. Why the result is only showing RefId starting from R000001 only
Data Source from Customer Master is...
Result will be including all row from Customer table...
Any one can solve this problem and edit my query to get the both type record from customer table...