Eliam
Eliam was the father of Bath-sheba, who was married to Uriah the Hittite when David first inquired about her. His name forms part of the identification given to the king: the woman was already known through her father and her husband. The passage supplies this family relationship without describing Eliam's own occupation or actions. (2 Samuel 11:2–3)
The account in which Eliam is named belongs to the royal scandal. David sent for Bath-sheba, and she became pregnant; after Uriah died, the king took her as his wife. Eliam is identified as her father before these events, but the narrative does not assign him a part in the king's actions or in his son-in-law's death. (2 Samuel 11:3–5; 2 Samuel 11:26–27)
The royal genealogy uses the name Ammiel for the father of David's wife. In the KJV she is called Bath-shua here, whereas BG1940 retains the form used in the earlier account. She is the mother of Shimea, Shobab, Nathan and Solomon, four sons born to David in Jerusalem. Read alongside the earlier identification of Bath-sheba, this preserves Eliam under the alternative name Ammiel and places him in the maternal ancestry of these sons. (1 Chronicles 3:5; 2 Samuel 11:3)