How can the selectedrow of a table be cleared with help of script?

I have two tables and wish to select a record from a single table at a time, how can this functionality be implemented ?

via the script, table-name.selectRow() clears the selection of the table

otherTable.selectRow(index) where index is the row index (starting at 0)