**Category:** Geometry  
**Subtype:** 3D Geometry (specifically related to pyramids)  
**Problem Description:** Calculate the distance between the line segment \(S A\) and the line segment \(C D\) in a square pyramid where the base is a square with side length \(a\) and the height from the apex \(S\) to the base is also \(a\).