Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3185 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I'm loading some data into filemaker and the date field is coming is as text (23 November 2015). During my import routine to move it from a temp table to the correct table I want to convert it to a proper date.

I've used the following code but I'm getting a syntax error in my conversion. I know this is correct syntax for SQL so why doesn't Filemaker recognise it? Any help is greatly appreciated.

TIA

ExecuteSQL ( "
 SELECT LegalForname, LegalSurname, MiddleName
        , PreferredForename, PreferredSurname, UPN
        , ULN, convert(datetime,convert(varchar(30),DateofBirth),103) as DOB, Gender, House, RegistrationDate
        , YearTaughtIn, SIMSAdmissionNo, YearGroup, Ethnicity, Nationality
        , HomeLanguage, FirstLanguage, EligibleforFSM, FSMStartDate
        , FSMEndate, LEACare, PPIndicator, EnrolmentStatus, SENStatus
        , SENStartDate, QuickNote, RegGroup
       
 FROM Loading_StudentDetails";

"|"; "¶" )

Posted (edited)

The convert function is not be supported by FM SQL.

FM SQL is a subset of standard SQL.

Google FileMaker 14 SQL Reference

Edited by Kris M

This topic is 3185 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.