PI/SI (DDL) and stats information/row counts would be helpfull.
This query accesses views with some additional logic/conditions in it. You should show those views, too.
The COALESCE is stupid, it will never reach past SMS_MO. BO doesn't care about it but human beings get confused by that :-)
Dieter
↧