Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Quantity fields

Former Member
0 Likes
1,436

How can i declare quantity fields initial value (0.000) in the select query where condition.if i declare with in the quotes it shows some error.

Pl any one let me know. urgent

4 REPLIES 4
Read only

Former Member
0 Likes
637

hi try this one,

Select * from mara......

where Qty = 0.

Reward Points If Helpful.....

Regards,

Imran

Read only

Former Member
0 Likes
637

Hi Ramesh,

Declare a variable and then check in the where condition.

Regards

Arun

Read only

Former Member
0 Likes
637

Hi Ramesh,.

Try like this:

SELECT * FROM MARA ...

where qty IS INITIAL.

Reward Points for helpful answers.

Regards,

Hari krishna.

Read only

Former Member
0 Likes
637

Hi,

As the quantity field u are checking is Null.

u can check in select statement as INITIAL.

OR else

declare a constant variable with value as '0.00'

and compare the value with variable in select statement.

but it is better if u try with INITIAL as it is right approach.

Thanks,

Srinivas