def _create_stage_table_command(table_name, target_table, selected_fields="*"):
        """
        Create an redshift create temporary table command.
        Notes:
        - CREATE TABLE AS command does not inherits "NOT NULL"
        - CREATE TABLE LIKE statement also inherits sort key, distribution key. But the main point to to note here that, 
        CREATE TABLE LIKE command additionally inherits "NOT NULL" settings from the source table that CREATE TABLE AS does not
        seealso: https://docs.aws.amazon.com/pt_br/redshift/latest/dg/r_CREATE_TABLE_AS.html
        seealso: https://docs.aws.amazon.com/pt_br/redshift/latest/dg/r_CREATE_TABLE_AS.html
        """    
        copy_command = ("""CREATE TEMPORARY TABLE {} AS SELECT {} FROM {} WHERE 1 = 0;""").format(
            table_name,
            selected_fields,
            target_table
            )    

        return copy_command