Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering

Status
Not open for further replies.
Apr 11, 2003
50
US
I am doing a Select Count statement and I want to exclude everything in the column ending in an 'x' or an 'e'. With my limited knowledge of this stuff, I would appreciate any help.
 
So you got one F and one N returned? That's suprising. MAX(funding) should return ONLY the MAX value of that column and the letter N is the MAX of the two. So, your query should always return N. Unless once the WHERE eliminates some entries all the FUNDING entries are only F's.

Does this return only a single F?

Select MAX(Funded)
From Table1
Where RIGHT(LocationID,1) <>'X' and RIGHT(LocationID,1) <> 'E'

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top