Use the column checkboxes to build your query. Header columns sets/unsets all columns
SELECT Code, Name, TERM_TYPE, After_Days, After_Mnth, Day_From1, Day_To1, Pay_Day1, Pay_Month1, Day_From2, Day_To2, Pay_Day2, Pay_Month2, Day_From3, Day_To3, Pay_Day3, Pay_Month3, Day_From4, Day_To4, Pay_Day4, Pay_Month4, DataSource, UserSign FROM OCDT