Dubbio case when con campo lunghezza >di 0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Dubbio case when con campo lunghezza >di 0

gissara
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Dubbio case when con campo lunghezza >di 0

pigreco
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/
_______________________________________________
[hidden email]
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.
801 iscritti al 19/07/2017
Reply | Threaded
Open this post in threaded view
|

Re: Dubbio case when con campo lunghezza >di 0

pigreco
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/
_______________________________________________
[hidden email]
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.
801 iscritti al 19/07/2017
Reply | Threaded
Open this post in threaded view
|

Re: Dubbio case when con campo lunghezza >di 0

gissara
This post was updated on .
In reply to this post by gissara
CONTENTS DELETED
The author has deleted this message.