def select_entry_where_column_equals_value(table_name, cursor, column_name, value):
    """Select one entry where the a column has a specific value.
    
    Args:
        table_name (str): Table name.
        cursor (object): pyobdc cursor.
        column_name (str): Column name.
        value (str or integer): Value to query.
    
    Returns:
        list: List of entries for the queried conditions.
    

    **Examples**

    .. code-block:: python

        conn = pyodbc.connect(connection_string)
        cur = conn.cursor()
        data = select_entry_where_column_equals_value(tab_name, cur, col_name, 1)
    """
    query = "SELECT * FROM " + table_name + " WHERE " + column_name + " = ?"
    cursor.execute(query, value)
    data = cursor.fetchone()
    return data