Sort/Search/Filter – In each column or one for the whole table?

What are your thoughts on the use of sort/search/filter functionality within each table column vs. a single sort/search/filter that drives the entire table? When is one preferred over the other? What are the benefits and drawbacks of each?

enter image description here