If your ambition is a standard pub-garden style table, then treated pine is generally the thing. Such as https://www.timberstoreltd.co.uk/product/treated-joists-47x150/
You need to treat the newly cut surfaces when you construct and think about your fixings for weatherproofness.
If you want...