Quantcast
Channel: Need help creating a stored procedure and joining rows with same values as columns
Viewing all articles
Browse latest Browse all 3

Need help creating a stored procedure and joining rows with same values as columns

$
0
0

Hi there, right now I have  this table:

 EventName       ||             RegistrationType                  ||               AmountPaid

-----------------------------------------------------------------------------------------

Event1              ||                Member                            ||                 100.00

Event1              ||             Not Member                        ||                  200.00

Event2              ||                Member                            ||                  300.00

Event2              ||             Not Member                        ||                  400.00

And I want to display the information like this:

 EventName       ||            Member_AmountPaid             ||      NotMember_AmountPaid

--------------------------------------------------------------------------------------------------------

Event1              ||                   100.00                            ||                  200.00                

Event2              ||                   300.00                            ||                  400.00                

I'm breaking my head by trying to do this, can anyone help ? Thanks in advanced!


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>