Jump to content

SQL Syntax issue


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

Recommended Posts

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";

"|"; "¶" )

Link to comment
Share on other sites

This topic is 2309 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
 Share

×
×
  • Create New...

Important Information

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