I need a Query that returns 2 columns added (input and output) from the "accounting" column of the "tbl_sef" table. The value of the "accounting" column will be in the "input" column when the "cfop" column is less than 5000. And it will be in the "output" column when the cfop column value is greater than or equal to 5000.
tbl_sef:
Theidealreturnwouldbe:
I tried in many ways and I could not!