<div dir="ltr"><div><div><div><div><div>Hi,<br><br>I have the following record schema saved in the table(eg)<br><br></div>-record(details,{user,age,hobby,status}).<br><br></div>I want to select the hobby from the mnesia table when the status is "public" or "universal"<br>
<br></div>I have written the following query for testing<br><br></div>mnesia:dirty_select(details,<br>[<br>{<br>#details{ user= "manoj", _ = '_', hobby = '$1', status='$2' },<br></div>[{'==', '$2', "public"}],<br>
<div>['$1']<br>}<br>]).<br><br></div><div>It works fine...How should i add orelse inside the guard sequence...I want to check whether status is equal to "public" or "universal"...<br><br></div>
<div>Is there a way or should i go the qlc way?<br><br>Thank you<br></div></div>