A group of friends are sitting at a table while drinking alcohol at their local pub.
a group of friends are at the table
Sitting at a table means that you are at the table.
If a group of friends are sitting at the local pub, it would make the most sense for them to sit at a table.
"At the table" is a shorter way of saying the groups of friends is "at a table while drinking alcohol".