@sabby If you already have travelled to USA and have valid visa of any category, then you won't need transit visa. Otherwise US Transit visa is necessary even if flight is from same terminal.
if u go to germany and have a domestic flight to any other europien country then u watch out u may need a visa.....i had a problem in france i had a flight from delhi to paris to Amsterdam to toronto.....paris to amsterdam was domestic i was asked for a visa .....