I wouldn't consider asking something you know but don't remember at your table the same as going on a forum or SE to ask how to solve your issue at work.
At the table, you know it, just miss it at the moment and need a quick, easy answer as not to hold up everyone. You know how to get it, it's just more time consuming than asking someone who is sitting right next to you and can answer from the top off the head.
At work (at least in my field), your job is to figure things out. If you resort to waiting for someone to come and solve your issue without looking, you're wasting time not improving.