Ok this is a great method but my table was an example, i have in a real world a table with 100 or more records and i need a quick method to search "XX" or something like this. I can't create every time a new table and put NULL in every record!
It sounds like you want to associate columns A,B,C as one record - then D,E,F as a second record, G,H,{D?} as a third record and L,M,N as a fourth record.
If you really have a table setup with 'repeating' segments of 'records', you really need to reconsider the design.
To get what I think you are asking:
SELECT A, B, C FROM pippo WHERE B = 'XX'
UNION ALL
SELECT D,E,F FROM pippo WHERE E = 'XX'
UNION ALL
SELECT G,H,{D?} FROM pippo WHERE H = 'XX'
UNION ALL
SELECT L,M,N FROM pippo WHERE M = 'XX'
If this is correct - you really have to redesign your 'table' and normalize the data.