Re: Using subquery for two different tables to get data based on the first query
Hi Freind,as above said, just merge or inner join two table in inner query and get output result .
View ArticleRe: Using subquery for two different tables to get data based on the first query
To join 2 tables use join"SELECT TOP 6 * from Message M, USERPROFILE U where M.Msg_S='" + Session["user"].ToString() + "' AND M.S_Del=0 AND (M.Msg_R='" + HFieldFriend.Value + "' OR M.Msg_R='" +...
View ArticleUsing subquery for two different tables to get data based on the first query
I have two tables one for message and another for user profile. I want to select top 6 messages and then based on these messages I want to select the Fname and Lname from UserPro table. I am able to...
View Article
More Pages to Explore .....