Forum Discussion
Anonymous
5 years agoNot applicable
Conditional relationship for multiple tables
Hi, I have 4 tables logins, ConnectedUsers,FacilityCode, ProviderCode. Basically in ConnectedUsers table i have: Provider_Name System_Code Facility_Code RegisteredUsers AH...
lbendlin
Super User
5 years agoIf you want to be cute you can rewrite
IF(ISBLANK( [Facility_Code]) ,[System_Code], [Facility_Code] )
as
COALESCE ( [Facility_Code]) ,[System_Code] )
but I'm not sure it would make any difference in performance.
d_gosbell
Super User
5 years ago
but I'm not sure it would make any difference in performance.
No, they are identical in terms of performance producing identical query plans. COALESCE is just syntactic sugar over the IF( ISBLANK() ...) format