0

i have data like this

ID Nu name 1 234 asd 2 566 asd 3 - sdf 4 356 sd 5 NULL sfsg 

now how to get all data with - and null values

2
  • 1
    where nu is null or nu = '-' Commented Dec 2, 2016 at 7:33
  • NULL is not a value - it's the absence of a value .... Commented Dec 2, 2016 at 7:39

3 Answers 3

2
select * from table_name; 

this will give you all the data with - and null value

if you want to fetch only the data where nu is null and - use this:

select * from table_name where nu is null or nu = '-'; 

I think this should help.

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

Comments

0
select * from table_name where Nu is null or Nu='-' 

Comments

0

To get all the info from the table you can use the following query:

select * from table_name; 

To filter by null and dash values, try the where clause:

select * from table_name where nu is null; UNION ALL select * from table_name where nu = '-'; 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.