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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -