Can someone help convert this properly to MySQL. I'm getting an error around partition when i run the SQL.error: right syntax to use near '(Partition By accountID Order By accountID, bookID from rentals ' at line 5create function GetNumberOfRentalsCurrentlyAllowed(accountID int)returns intbegin return (select accttype from Account_Types where accountID= accountID) - (select Row_NUMBER() Over (Partition By accountID Order By accountID, bookID from rentals where accountID = @accountID and checkedout=1 and checkedin=0), 0)endcreate VIEW RentalsRequestedasselect *, Row_NUMBER() Over (Partition By accountID Order By accountID, bookID) as numberOfRentalsRequestedfrom rentalsWHERE Rentals.checkedout = 0 AND Rentals.checkedin = 0