ER Model:
http://img22.imageshack.us/img22/7292/modeloer.jpg
I´ve got this:
[IMG]http://img31.imageshack.us/img31/2384/antesj.jpg[/IMG]
And want this:
[IMG]http://img12.imageshack.us/img12/5241/depoispkd.jpg[/IMG]
(Paint image.. lol)
Anyone knows how to build a stored procedure who does that or a view?
Thanks!