hello
i have a table contains two fields
first field = Date
second Field = codes
01/01/2017 | 105, 201
05/03/2017 | 105, 901
01/01/2018 | 105, 201
07/08/2018 | 901,902
One Code
i want to count the code 901 from today and one year back so i will get (1)
105 from today and five years back i will get (3)
Multiple Code
105 and 201 from today and five years back i will get the sum (5)
105 and 201 from today and five years back i will get seperated (3) (2)
any help??
i have a table contains two fields
first field = Date
second Field = codes
01/01/2017 | 105, 201
05/03/2017 | 105, 901
01/01/2018 | 105, 201
07/08/2018 | 901,902
One Code
i want to count the code 901 from today and one year back so i will get (1)
105 from today and five years back i will get (3)
Multiple Code
105 and 201 from today and five years back i will get the sum (5)
105 and 201 from today and five years back i will get seperated (3) (2)
any help??