Below is the test data
http://dummy.com/path1/p.php?keyword=firstcol&country=india#Ref1
My query-
SELECT parse_url(url