<div dir="ltr">Thanks for the code sir<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"></span>...It works great...<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 25, 2013 at 11:10 PM, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@feuerlabs.com" target="_blank">ulf@feuerlabs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Try [ {'or', {'==', '$2', "public"}, {'==', '$2', "universal"}} ]</div>
<div><br></div><div>BR,</div><div>Ulf W</div><br><div><div><div class="h5"><div>On 25 May 2013, at 13:50, Manoj Raj wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><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></div></div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
<div>Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div><a href="http://feuerlabs.com" target="_blank">http://feuerlabs.com</a></div></div><div><br></div></span><br>
</div>
<br></div></blockquote></div><br></div>