This Table can be built in a Slab floor, using full blocks for legs (or something like piston blocks as seen above). And Slabs to make the table-top.
Using Stair Blocks that blend into the floor give a smaller Leg look…
See the Table being built in the video below…