Below query is working fine in PostgreSQL, however, returning error in Redshift -
create temp table sample_data aswith input_values1 (Name) as( values ('A'), ('B'), ('C'), ('D'), (null)) select * from input_values1;
Error - [Code: 500310, SQL State: 42601] Amazon Invalid operation: syntax error at or near "values";