Issues : SQL Error [1248] [42000]: Every derived table must have its own alias
Tried : remove all the alias and use full path instead of alias
Original Script: