Greater than statement for 2 columns

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • napjohn8
    New Member
    • Mar 2008
    • 2

    Greater than statement for 2 columns

    hi guys,

    i am doing an SQL question where the table is item and the two columns i have are reorderlevel and QOH

    The question is List details for the items where the qty on hand exceeds the reorder level by 10 or more.

    I have so far

    select * from item
    where QOH >
  • SharpDeveloper
    New Member
    • Feb 2008
    • 12

    #2
    qty on hand exceeds the reorder level by 10 or more

    select * from item
    where QOH >reorderlevel+1 0

    Originally posted by napjohn8
    hi guys,

    i am doing an SQL question where the table is item and the two columns i have are reorderlevel and QOH

    The question is List details for the items where the qty on hand exceeds the reorder level by 10 or more.

    I have so far

    select * from item
    where QOH >

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Originally posted by SharpDeveloper
      qty on hand exceeds the reorder level by 10 or more

      select * from item
      where QOH >reorderlevel+1 0
      If it's "10 or more", you might want to use greater or equal to operator, not just greater than.

      -- CK

      Comment

      Working...