def is_uid_in_all_keys(uid, uids):
    """
    Check if uid is found in each of the uid lists for each SQL table
    :param uid: study instance uid
    :type uid: str
    :param uids: lists of study instance uids organized by SQL table
    :type uids: dict
    :return: True only if uid is found in each of the tables
    :rtype: bool
    """
    table_answer = {}
    for table in list(uids):
        table_answer[table] = False
    for table, value in uids.items():
        if uid in value:
            table_answer[table] = True
    final_answer = True
    for table, value in table_answer.items():
        if table not in 'unique':
            final_answer *= value
    return final_answer
