Source table
RowABCD1CodeProductColourPrice21penred50032penblue-5043penred054pencilblue1765pencilgreen-1.5
to select all:
= QUERY(A1:D5, "select *")
or
= QUERY(A1:D5, "select A, B, C, D")
or convert data range into array and use this formula:
= QUERY({A1:D5}, "sel...