[Gfoss] Dubbio case when con campo lunghezza >di 0

Ciao a tutti,
avrei bisogno idi una mano per risolvere questa stringa per il popolamento
dei campi su una tabella attributi rispetto al campo lunghezza che
dovrebbe>= 0:

CASE
WHEN "NUM_" = '1' and "LUNG" <= '0' then "DIAM"= '5'

END

Il campo lunghezza è stato calcolato con $lenght

Grazie mille

gissara wrote

Ciao a tutti,
avrei bisogno idi una mano per risolvere questa stringa per il popolamento
dei campi su una tabella attributi rispetto al campo lunghezza che
dovrebbe>= 0:

CASE
WHEN "NUM_" = '1' and "LUNG" <= '0' then "DIAM"= '5'

END

Il campo lunghezza è stato calcolato con $lenght

Ciao,
che software usi? immagino QGIS.

immagino, inoltre, che il campo "LUNG" sia un REAL quindi perchè metti gli
apici nello zero?

prova cosi:

CASE
WHEN "NUM_" = '1' and "LUNG" >= 0 then "DIAM"= '5'

saluti

-----
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/

pigreco wrote

prova cosi:

CASE
WHEN "NUM_" = '1' and "LUNG" >= 0 then "DIAM"= '5'

saluti

Piccola correzione:

CASE
WHEN "NUM_" = '1' and "LUNGH" >= 0 then 5
else null end

saluti

-----
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/

Risolto,

Grazie a tutti

Lucia Argento
luciaargento89@gmail.com
Skype: lucia_argento

Il giorno 1 dicembre 2017 09:36, Lucia Argento <luciaargento89@gmail.com>
ha scritto:

Ciao a tutti,
avrei bisogno idi una mano per risolvere questa stringa per il popolamento
dei campi su una tabella attributi rispetto al campo lunghezza che
dovrebbe>= 0:

CASE
WHEN "NUM_" = '1' and "LUNG" <= '0' then "DIAM"= '5'

END

Il campo lunghezza è stato calcolato con $lenght

Grazie mille