sql server - Fetch data from table using SQL -


i have table named "orders" 1-1000 rows , 3 columns (s.no, order , status). need fetch order 50-1000 has status "cancelled". how can in sql server?

logic operator:

select order  orders  status = 'cancelled'   , (s.no > 50 , s.no < 1000) 

between:

select order  orders  status = 'cancelled'   , (s.no between 50 , 1000) 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -