There are many, many types of tables like this out there. I’ve created a few, but this was my most recent and was featured on Instructables.
The table was created with some scrap wood I had in my shed. The piece is a 2×8 cut to 7 feet length, which was about the width of the window opening in which it was going to sit in front of. The legs consist of 1″ steel plumbing pipe.