Till someone comes along, a bit of loud thinking :
1) You mentioned 3 tables, there appears to be only 2 tables in the SQL query posted, QUBE and CAR TAR.
2) When you say, there are no primary columns in the tables, assume, bookingid is not unique, in either of the tables.
3) Is it possible to...