Dynamodb db doesn't support relationship like RDBMS, If you want reference like RDBMS stlye then you have to query multiple times based on skill id for an employee.
Lets take an example for implementing RDBMS approach in NoSQL (Not Recommended),
List of Records Skill Table
{ "skillId": 1, "name": "HTML" },
{ "skillId": 2, "name": "CSS" },
{ "skillId": 3, "name": "JS" }
List of records in Employee table with skillId
{ "employeeId ": 1, "name": "ONE", "skillId": [1,2,3] }
If your application frequently retrieves Employee data, you have query additionally to fetch skill details by skill id. It increases more complexity in development and also not recommended one.
Recommended Approach
An optimal approach is to include the skill info as a list in Employee data.
Employee record with skill list
{
"employeeId": 1,
"name": "ONE",
"skill": [ //Adding skills as a list
{
"skillId": 1,
"name": "HTML"
},
{
"skillId": 2,
"name": "CSS"
}
]
}
By adding skills in Employee table, you can retrieve Employee details with the list of skills in single query.