This is my query
select PhoneNumber as _data,PhoneType as _type from contact_phonenumbers where ContactID = 3 and Type = 'R' and PT = 'M'
union
SELECT EmailID,Type from contact_emails where ContactID = 3 and Type = 'P'
UNION
SELECT EmailID,Type from contact_emails where ContactID = 3 and Type = 'O'
Here my problem is i need to fetch only one row from each select statement. Is it possible to fetch it through “limit”.
According to MySQL website you can apply limit to an individual select like that
http://dev.mysql.com/doc/refman/5.0/en/union.html