Looks like you need to pick an Expression for the input as P1 has no value to query… Or remove the Parameter and run he query again, make sure to hit the little ‘Play’ button icon to fetch the schema.
SELECT nome, data_nasc
FROM pacientes
WHERE EXTRACT(MONTH FROM data_nasc) = ({{NOW.formatDate(‘MM’)}}) AND EXTRACT(DAY FROM data_nasc) = ({{NOW.formatDate(‘dd’)}})
How can I select value with some data from $_SESSION ?
For example :
SELECT nome, data_nasc, pk_clinica
FROM pacientes
WHERE EXTRACT(MONTH FROM data_nasc) = ({{NOW.formatDate(‘MM’)}}) AND EXTRACT(DAY FROM data_nasc) = ({{NOW.formatDate(‘dd’)}}) AND (pk_clinic = {{$_SESSION.clinic}})