Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    139

    Arrow Unanswered: Compare Fields In Query

    I have two fields in my query. One represents wks of stock and is titled WKS, the other is minimum weeks of stock and is titled MIN. I would like to put something in the criteria field that says, show me the lines where WKS is = to or < MIN. I have tried all different combinations and cannot get it to work. It seems simple but go figure. I have set each of the fields to fixed number.

    Thanks,
    B&R

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    select foo, bar
      from yourtable
     where WKS <= [MIN]
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •