Incumbent 17th Judicial District Attorney Dave Young narrowly won the Democratic primary for another term Tuesday night in spite of a vigorous challenge from a former employee from his office.

Young defeated challenger Caryn Datz with 11,514 votes to Datz’s 10,740 -- or 52 percent to 48 percent.

Datz is one of three employees who left the DA’s office in 2013 amid allegations uncovered in a 9Wants to Know report that Young discriminated against Senior Deputy District Attorney Corinne Magid by denying her a position because she was a woman.

9NEWS reached out to Datz who responded with this statement: "I concede the results of last night's Democratic primary election. I remain immensely proud of the campaign I ran with the support of so many members of this community. Going forward, I only wish the very best for the Office of the District Attorney and the community it serves."

9NEWS also reached out to Young, who had no comment about his primary victory.

Young will now compete in the general election against Molly Jansen, who ran unopposed for the Republican nomination. Her campaign website describes her as having “extensive experience as a criminal defense attorney."