SELECT DISTINCT c.CustomerID, b.BookingNumber, t.TicketNumber,
FROM CUSTOMER AS c, BOOKING AS b, TICKET AS t
WHERE c.CustomerID=b.CustomerID And t.BookingNumber=b.BookingNumber
GROUP BY c.CustomerID,b.BookingNumber,t.TicketNumber;
小弟不要data重复。。。但是用上DISTINCT这个FUNCTION在ACCESS,就不能够EFFECT出来,Still重复THE DATA.到底我的CODE有问题马?
[ 本帖最后由 三分手 于 27-11-2005 04:09 PM 编辑 ] |