The example of thai (TG) - Lufthansa (LH) code shared flight from Frankfurt(FRA) to Amsterdam (AMS) where Lufthansa (LH) operates this flight as LH 986 and sale to LH passengers while THAI (TG) also puts her own airline code/fight no. As TG 7652 on the same fight for sale to TG passengers. In such a case, TG can offer her passenger for travelling from Bangkok (BKK) to Frankfurt(FRA) and connect LH from Franfut (FRA) to amsterdam (AMS) on TG ticket.