View previous topic :: View next topic
|
Author |
Message |
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
Hi,
Is there any way where I can select rows from table with low values in the where clause?
There is a text field in my table which will be populated with low value. I want all the rows with low values in that particular column from the table. Is that possible?
Thanks,
Roshnii |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Yes, just compare with x'00'! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
yes. What is the definition of the text field? |
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
the column is char(30) |
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
I am sorry, its not a varchar field, its a char field |
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
I have to pick up rows which are either low values or ---------.
I have tried giving x'60' but it did not pick up the rows with values as ---------. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
x'60' would not be low values! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
is this text column NULLABLE? |
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
yes the field is nullable.
I need rows which have the value --------- also which is '606060' |
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
I am using Column_name IS NULL and its working. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If IS NULL is working, your questions about x'00' and x'60' have nothing to do with the query that you say meets your requirement.
If the requirement is to find rows with te NULL value, why the discussion about the other hex values? Might the query be only partly working? |
|
Back to top |
|
|
|