I found my problem. I attaches an .sql file with my tables, dataand my new query. If you are interested you can take a look.
Thanks to all.
Regards, Loredana