Table leg assembly horizontally displaceable along a longitudinal groove with adaptable attachment