View Source to see the actual HTML used for these strings.
SQL: SELECT * FROM Restaraunts WHERE Name = 'Ray''s'
Encoded Querystring: http://aspalliance.com/cookbook/default.aspx?Jay%26Bob%27s+Great+Adventure
HTML Encoded input: If x < y Then Print x & <y>