I have this query which i am trying to get the top 25% score of the users
but running this i am getting error
SELECT
tblcontact_platform.ContactPlatformID,
tblcontact_platform.ContactID,
tblcontact_platform.PlatformID,
tblcontact_platform.Followers,
tblcontact_platform.Score_Responsiveness,
tblcontact_platform.Score_Responsiveness_UpdatedDateTime,
tblcontact_platform.CreatedDateTime,
tblcontact.ContactID,
tblcontact.ContactHandle,
tblcontact.LastName,
tblcontact.FirstName,
PERCENT_RANK() OVER (ORDER BY tblcontact.Score_Responsiveness) PercentileRank
FROM
tblcontact_platform inner join tblcontact on tblcontact.contactid = tblcontact_platform.contactid
where tblcontact_platform.contactid in (100,101,103)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(ORDER BY tblcontact.Score_Responsiveness) PercentileRank FROM tblcontact_plat' at line 13
I am on mysql 5.7.12 or mariaDB 10.1