4
Sirs,
First, I have 2 tables
Table 1:
ID L1 L2 L3 L4 L5
------------------------------------
1 a c e g i
2 a c d g i
3 l n p r t
Table 2:
ID L1 L2 L3 L4 L5 L6
----------------------------------------------
9 l n o p r t
8 a c d e g i
7 a b c d e f
I would like a select to search the data set of Table 1 (L1 to L5) within the data set of Table 2 (L1 to L6), so that the result is + or - like this:
Upshot:
ID Count
-------------
9 1
8 2
7 0
Since the ID 9 record in table 2 has 1 record of Table 1 that fits inside, so ID 8 has 2 and 7 has none.
I appreciate the help
It has to respect the order of the elements or not?
– Marco Souza
The order does not matter GOKU
– Junior Jardim
The answer below did not solve your problem?
– Marco Souza
I believe so... I’m testing.
– Junior Jardim