Skip to content

Update table using select and where

I have two tables: table ficha_atendimento int id string cidadaos_cns table cidadaos int id string cns I need do create a column int cidadaos_id on table ficha_atendimento_cidadao and I like to …

How can I get this query when a column is NULL?

I’m trying to execute this query to get a list of all users, groups and emails, but my problem is when the user is not related to any group, so the column radcheck.id_group is = NULL, but I still want …