Filtering a result set to show or hide specific result in SQL Server -


using "select [users],[stars] [table]", here example result set returned:

<table border="1">   <th>users</th>   <th>stars</th>   <tr>      <td>admin</td><td>3</td>   </tr>   <tr>      <td>worker</td><td>4</td>   </tr>   <tr>      <td>student</td><td>2</td>   </tr> </table> 

how show admin if has more 3 stars , not part of result set if 3 stars or less?

my best guess case when statement go in select or clause?

i'm still quite new development , appreciated.

this should cover using clause

select     [users],     [stars]     [table]     [users] != 'admin'     or [stars] > 3 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -