Slide the legs of a table
Press P key with the table leg selected and choose Selection,

to separate it by selection and then Shift select the table and press CtrlJ to join them back together, now you can move it however you like.
-don't forget to exit the edit mode of the table before you join them