Asterisk Mysql Real time - how to use "and" "

hello
1.
Do you know how to use “and” and “or” in the mysql query when using "REALTIME"
for example the following comman
Set(row="${REALTIME(sipusers,callerid,${EXTEN})}");
executing SELECT * FROM * WHERE callerid=${EXTEN}

I want to use more filte to the WHERE with "AND"
SELECT * FROM * WHERE callerid=${EXTEN} and username=${lalala}

  1. if there are more then one record that fit the query, how can I go between all the records ?

Thanks
Amos