Subscriber portal
Gets the SQL for view definition for ActiveTo field.
server private static str getActiveToSql()