1
Good afternoon!
Please, I am making a Fiscias Notes filter based on a series of Cfops with SQL. It works like this:
SELECT * FROM NotasFiscais
WHERE CFOP = 5101 OR CFOP = 6101 OR CFOP = 5922 OR CFOP = 6922 OR CFOP = 5933 CFOP = 6933 OR ....... CFOP = N
How can I create a list of Cfops to be passed in the WHERE clause so my code doesn’t get kilometric?
Note: Cfops do not follow a logical sequence to use a >= Or BETWEEN type filter
Explain a little better, you just want to use a Where list within sql itself or there is an application that will create the query?
– Luis Henrique
Within the same SQL itself
– Cassio Milanelo
And the CFOP values come from where? You will insert them in the same hand?
– Luis Henrique
Yes, in the nail. There is no rule (yet) for the selection of Cfops, so go in the same race.
– Cassio Milanelo