Salve a tutti i nottambuli.![]()
Ho un problemino con access.
Qualcuno saprebbe dirmi come posso tradurre una query del genere, funzionante in mysql, in una sintassi compatibile con access? A quanto mi è parso di capire il case non è contemplato in questo dbms. Grazie per l'attenzione.![]()
codice:select case when year(curdate()) - year(data_iscr_colloc) between 1 and 2 then 'meno di 2' when year(curdate()) - year(data_iscr_colloc) between 3 and 4 then 'tra 3 e 4' else 'più di 4' end as anzianita, count(*) as quanti from tabella group by anzianita

Rispondi quotando