N
NeonSky via AccessMonster.com
Hello,
The below query works just fine with my sample dataset, though with my live
dataset (100k records) it takes far to long to crunch. I was curious if
anyone might be able to offer insight into a way to re-write the below query
to improve efficiency? Thank you for your time and consideration!
SELECT TempB.Name, TempB.Address, TempB.Arrival, TempB.Departure, TempB.
RoomType, TempB.RCODE, TempB.Confo, 1<>(SELECT COUNT (*)
FROM tblRawReservationData As TempA
WHERE TempA.Name = TempB.Name
AND TempA.Address = TempB.Address
AND TempA.Arrival = TempB.Arrival
AND TempA.Departure = TempB.Departure
AND TempA.RoomType = TempB.RoomType
AND TempA.RCODE = TempB.RCODE) AS ConcurrentCode INTO tblReservationData
FROM tblRawReservationData AS TempB;
The below query works just fine with my sample dataset, though with my live
dataset (100k records) it takes far to long to crunch. I was curious if
anyone might be able to offer insight into a way to re-write the below query
to improve efficiency? Thank you for your time and consideration!
SELECT TempB.Name, TempB.Address, TempB.Arrival, TempB.Departure, TempB.
RoomType, TempB.RCODE, TempB.Confo, 1<>(SELECT COUNT (*)
FROM tblRawReservationData As TempA
WHERE TempA.Name = TempB.Name
AND TempA.Address = TempB.Address
AND TempA.Arrival = TempB.Arrival
AND TempA.Departure = TempB.Departure
AND TempA.RoomType = TempB.RoomType
AND TempA.RCODE = TempB.RCODE) AS ConcurrentCode INTO tblReservationData
FROM tblRawReservationData AS TempB;