1

Using Postgresql 9.2

What select statement would be used to find all numeric results that end with .00

Say, from this example:

 Trans Amt
|-------|
-57059.44
-239.00
-100.61
-181.33
-100.00

I would only want to see the -100.00 and -239.00

3 Answers 3

1

Try SELECT * from TABLE where TRANS_AMT = floor(TRANS_AMT);

Sign up to request clarification or add additional context in comments.

Comments

1

May be

select * from Table1 where TransAmt = TransAmt::int

sql fiddle demo

Comments

0

Why do you think you need regular expressions?

select n from t where n = trunc(n);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.