I have table in Redshift as with columns ‘a1_timestamp, a2_cd, a3_id,a4,a5’ (in that order). I want to create sort key on columns ‘a3_id and a1_timestamp’.
Since table is created with a1_timestamp as 1st column and a3_id as 3rd columns, do sort key need to be in that order? These are compound sort keys.