<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I'm having trouble with a query using multiple joins, one of which is an outer join:<br></div><div><br></div>SELECT * FROM posts<br></div>LEFT OUTER JOIN post_files ON post_files.Post = posts.Key<br></div>JOIN files ON post_files.File = files.Key</div><div><br></div>I think the type system assumes that posts_files.File will exist even though a post might not have any associated files, and end ups with this:<br><br>Can't resolve type class instance<br>       Class constraint:<br>{Post_files :<br>  {File : nullify string string,<br>    Post : nullify int (option int)}}<br>Reduced to unresolvable:<br>{File : nullify string string,<br>  Post : nullify int (option int)}<br><br></div>Is this query resolvable in some way?<br><br></div>Cheers.<br></div>