I have two tables, both with the same data types, and I am trying to map the two together. My problem is that I only want one match for each record in table 1, but there are several matches being made. So I am trying to find a way to retrieve only uniwue records from table 1.
My querry now looks like:
SELECT c.Company, c.product, c.ship, c.port, c.startdate, c.enddate, r.company, r.product, r.ship, r.port, r.startdate, r.enddate
FROM Competitors AS c, RCL AS r
WHERE ((c.season2=r.season2 Or r.season2="Y/R"
And
(r.startdate < r.enddate) And
(c.product1=r.product1) And
(c.port=r.port1) And
(c.mapto=r.company));
I want to find a way so that the combination of c.Ship and c.StartDate is unique...Any ideas?
My querry now looks like:
SELECT c.Company, c.product, c.ship, c.port, c.startdate, c.enddate, r.company, r.product, r.ship, r.port, r.startdate, r.enddate
FROM Competitors AS c, RCL AS r
WHERE ((c.season2=r.season2 Or r.season2="Y/R"
(r.startdate < r.enddate) And
(c.product1=r.product1) And
(c.port=r.port1) And
(c.mapto=r.company));
I want to find a way so that the combination of c.Ship and c.StartDate is unique...Any ideas?