0

I need to find rows which have a empty values in a column after a CSV import. The column is an INTEGER column, hence the

...
where col = ''

doesn't work for me.

1
  • Where col is null Commented Dec 6, 2021 at 21:51

1 Answer 1

1

You can check for empty values using

where col is null

If you want to select null as 0 (or any other default value) use coalesce

select coalesce(max(col), 0)
Sign up to request clarification or add additional context in comments.

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.