The table script needs to go below the scroll view. You can't place it on the scroll view itself.
Got it, thanks. Your issue is simply in the fact that you never actually executed the table you have. It doesn't execute until after you hit Play unless you right-click the component and choose Execute.
So nothing was actually aligned at all.
Just putting my two cents into this discussion, the UITable script appears to start positioning it's elements always beginning from it's own position, leading downwards and to the right.
So if you move your UITable GameObject to the upper-left bound of your Scrollview, you might get what you want.
Do you have the "Content Origin" of your ScrollView set to "TopLeft"? Do so, and then right-click on the UIScrollView component and choose ResetClippingPosition. This should re-position your table to the top-left of the scroll view, or any other origin you choose.
To do this in code, call UIScrollView.ResetPosition();
Does that help with your issue?