MySQL equivalents assignment