This is my very first post and apologies if it has been answered elsewhere. I am looking to do a simple pivot of some sort via SQL. I have:
PersID PersItem
1 apple
1 orange
2 peach
2 mango
2 grape
I would like:
PersID PersItem PersItem PersItem
1 apple orange null
2 peach mango grape
Edit: Assuming the # of PersItem is not fixed. And thank you kindly for the answers!