Related media fileds store a link between the items that are related, in this case related are a document and employee.
Document: stored in table sf_media_content (the table stored images, videos, documents)
Employee: (I guess it is a module created with module builder)table sf_dynamic_content (stored all dynamic module items)
Relation link: table sf_content_links (stores all relations)
To query related data in Sitefinity refer to the related Data API
, since the table relations may get complex since the DB structure is complex.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal
and vote to affect the priority of the items