#NEWLINE# def _select_current_script( self ) : #NEWLINE# #INDENT# 'SQL script to select current view of table\n        ' #NEWLINE# selected_columns = [ c . name for c in self . columns ( ) if ( ( c . name != HIST_EFFECTIVE_COLUMN ) and ( c . name != HIST_EXPIRATION_COLUMN ) ) ] #NEWLINE# return SelectStatement ( "\n            SELECT {selected_columns}\n            FROM {history_name}\n            WHERE {expiration_column} = '{expiration_max}'\n            " . format ( selected_columns = ', ' . join ( selected_columns ) , history_name = self . full_name , expiration_column = HIST_EXPIRATION_COLUMN , expiration_max = HIST_EXPIRATION_MAX ) )