Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Bruce Solomon
Table title:
Television
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Title </th><th colspan=1 rowspan=1 > Role </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <td colspan=1 rowspan=1 > 1973 </td><td colspan=1 rowspan=1 > The Streets of San Francisco </td><td colspan=1 rowspan=1 > Doctor </td><td colspan=1 rowspan=1 > Episode - "Winterkill" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1975 </td><td colspan=1 rowspan=1 > Harry O </td><td colspan=1 rowspan=1 > Official </td><td colspan=1 rowspan=1 > Episode - "Tender Killing Care" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1975 </td><td colspan=1 rowspan=1 > Barney Miller </td><td colspan=1 rowspan=1 > Flag Salesman </td><td colspan=1 rowspan=1 > Episode - "Horse Thief" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1976–77 </td><td class="highlighted"  colspan=1 rowspan=1 > Mary Hartman, Mary Hartman </td><td class="highlighted"  colspan=1 rowspan=1 > Sgt. Dennis Foley </td><td colspan=1 rowspan=1 > Main cast (104 episodes) </td></tr>
<tr> <td colspan=1 rowspan=1 > 1977 </td><td colspan=1 rowspan=1 > Lanigan's Rabbi </td><td colspan=1 rowspan=1 > Rabbi David Small </td><td colspan=1 rowspan=1 > Main cast (4 episodes) </td></tr>
<tr> <td colspan=1 rowspan=1 > 1978 </td><td colspan=1 rowspan=1 > The Love Boat </td><td colspan=1 rowspan=1 > Bill Edwards </td><td colspan=1 rowspan=1 > Episode - "Too Hot to Handle/Family Reunion/Cinderella Story" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1979 </td><td colspan=1 rowspan=1 > One Day at a Time </td><td colspan=1 rowspan=1 > Dr. Grayson </td><td colspan=1 rowspan=1 > Episode - "Between Mother and Daughter" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1979 </td><td colspan=1 rowspan=1 > Eight Is Enough </td><td colspan=1 rowspan=1 > Andre </td><td colspan=1 rowspan=1 > Episode - "Arrivals" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1983 </td><td colspan=1 rowspan=1 > The Fall Guy </td><td colspan=1 rowspan=1 > Charlie Bester </td><td colspan=1 rowspan=1 > Episode - "P.S. I Love You" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1984 </td><td colspan=1 rowspan=1 > The Facts of Life </td><td colspan=1 rowspan=1 > Bill Simpson </td><td colspan=1 rowspan=1 > Episode - "The Summer of '84" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1984–85 </td><td colspan=1 rowspan=1 > E/R </td><td colspan=1 rowspan=1 > Michael Alexander </td><td colspan=1 rowspan=1 > Recurring role (5 episodes) </td></tr>
<tr> <td colspan=1 rowspan=1 > 1985 </td><td colspan=1 rowspan=1 > The A-Team </td><td colspan=1 rowspan=1 > Jorge </td><td colspan=1 rowspan=1 > Episode - "Uncle Buckle-Up" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1986 </td><td colspan=1 rowspan=1 > Fame </td><td colspan=1 rowspan=1 > Dr. Lindstrom </td><td colspan=1 rowspan=1 > Episode - "Choices" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1986 </td><td colspan=1 rowspan=1 > The Twilight Zone </td><td colspan=1 rowspan=1 > Mr. Michaels </td><td colspan=1 rowspan=1 > Episode - "Monsters!" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1986 </td><td colspan=1 rowspan=1 > Simon & Simon </td><td colspan=1 rowspan=1 > Mitch Lewis </td><td colspan=1 rowspan=1 > Episode - "For the People" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1986 </td><td colspan=1 rowspan=1 > Maricela </td><td colspan=1 rowspan=1 > Sam Gannett </td><td colspan=1 rowspan=1 > TV movie </td></tr>
<tr> <td colspan=1 rowspan=1 > 1986 </td><td colspan=1 rowspan=1 > St. Elsewhere </td><td colspan=1 rowspan=1 > Ehrlich's Patient </td><td colspan=1 rowspan=1 > Episode - "Where There's Hope, There's Crosby" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1987 </td><td colspan=1 rowspan=1 > A Year in the Life </td><td colspan=1 rowspan=1 > Ben </td><td colspan=1 rowspan=1 > Episode - "Don't I Know You from Somewhere?" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1991 </td><td colspan=1 rowspan=1 > Knots Landing </td><td colspan=1 rowspan=1 > Tony Gerald </td><td colspan=1 rowspan=1 > Episodes - "1001 Nights of Anne Matheson", "Lost at Sea" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1994 </td><td class="highlighted"  colspan=1 rowspan=1 > Beverly Hills, 90210 </td><td class="highlighted"  colspan=1 rowspan=1 > Kenny Zuckerman </td><td colspan=1 rowspan=1 > Episode - "Scared Very Straight" </td></tr>
</table>
Question:
What roles did Bruce Peter Solomon play in Mary Hartman, Mary Hartman and Beverly Hills, 90210?
Answer:
Bruce Peter Solomon appeared as Sgt. Foley in Mary Hartman, Mary Hartman and as Kenny Zuckerman in Beverly Hills, 90210.