April 24, 2008 at 1:13 pm
guys
I have a query that returno value null when tha condition not validates.
select prod.*, B.Qtd as Qtd from ([select modelo, classe from tabela group by modelo, classe] AS prod
LEFT JOIN [select modelo, Count(modelo) AS Qtd from tabela where tipo ='A']. AS B ON prod.modelo = B.modelo)
How Can I replace cell null for 0 using sql?
Tks!
Ayres
April 25, 2008 at 2:31 am
April 29, 2008 at 4:03 am
you can use the NZ function in MS access
Nz ( YourVariable, [ value_if_null ] )
or
Nz (YourVariable)
will return 0 or empty string if variable is null
April 29, 2008 at 5:34 am
Gooa idea 🙂
this is working
tks!
but a saw other situation...
Is possible have two condition in the IIF ?
April 29, 2008 at 5:47 am
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply