i have column smoking the value of it in database is 0,1 how to display Yes, No on the view when execute the query on database its work fine
SELECT IF('somke' == 0, 'No', 'Yes') as isSmoking FROM patients
this code not work for me any help should be apricated
protected function setup()
{
$this->src('jbcpDB')
->query(
DB::table("patients")
->select(
'patients.patientsID',
'patients.patientsName',
IF('patients.somke' == 0, 'No', 'Yes') as isSmoking
)
->pipe($this->dataStore('patientsList'));
}