troubleshooting Question

error problem with 1582 Incorrect parameter count in the call to native function 'ISNULL'

Avatar of badr s
badr s asked on
Visual Basic.NET* mysq
2 Comments1 Solution258 ViewsLast Modified:
hello everyone
i have 2 tables one (visits) and other one (patients) with relationship by mysql (patients) is with PK as and as index
and i wanted to use code in my app to get the last datetime record to check the patient if still inside the hospital admitted or discharge
so far i have this code with help of you guys
SELECT,MAX(ISNULL(b.sdat,'1901-01-01')),MAX(ISNULL(b.edat,'1901-01-01')) from patients a left join visits b on Where ddatediff(now(),b.edat) <=365 group by
but when i execute in sql builder using php myadmin  or another app i get error
(1582 - Incorrect parameter count in the call to native function 'ISNULL')
i tried to find out the error cause but no luck until now
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros