aguest Posted July 14, 2015 Posted July 14, 2015 HI, I'm attempting to join two tables in my Select statement for my executeSql function. All I'm getting back is '?' although if I select from each table seperately I get restults I know the select statement is correct as I've tested it seperately (outside of filemaker) with a sample of the data. Is FM capable of working through semi complicated SQL queries? The help seems to suggest it can deal with joins! This is my script and as you'll see it's not very complicated at all. ExecuteSQL("SELECT b.TermDesc, a.ObsDate, a.Grade FROM TutorObservations a INNER JOIN SchoolYear b on (a.ObsDate ≥ b.StartDate) and (a.ObsDate ≤ b.EndDate) ";"|"; "¶" ) TIA
eos Posted July 14, 2015 Posted July 14, 2015 (edited) Try using proper (non-FM style) operators: ExecuteSQL ( " SELECT S.TermDesc, T.ObsDate, T.Grade FROM TutorObservations T JOIN SchoolYear S ON T.ObsDate >= S.StartDate AND T.ObsDate <= S.EndDate " ; "|" ; "") Edited July 14, 2015 by eos
aguest Posted July 14, 2015 Author Posted July 14, 2015 Thank you. I missed that in all the attempts to figure it out.
Recommended Posts
This topic is 3557 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now