I want to display another merged table on the same datalist showing another merged table so that any of the displayed merged table that recieves data first will show on top of the datalist.
This is the first merged table showing on datalist
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[GetMessage]
@UserName VARCHAR(200)
AS
BEGIN
SELECT u.Name,u.ImageName,u.UserName,up.UserName,up.FriendUserName,up.ContentPost,up.ImageName1,up.ImageName2,up.ImageName3,up.SendDate
FROM USERPost up
JOIN User3 u ON u.UserName = up.USERNAME
WHERE up.USERNAME IN(
SELECT uf.UserName FROM USERFollow uf
WHERE (uf.UserName = @UserName OR uf.FriendUserName = @UserName) AND uf.FollowStatus = 'true'
UNION
SELECT uf.FriendUserName FROM USERFollow uf
WHERE (uf.UserName = @UserName OR uf.FriendUserName = @UserName) AND uf.FollowStatus = 'true'
)
ORDER BY up.SendDate DESC
--------------------------------------------------------------------------------------------------------------------------------------
This is another merged table i want to show on same datalist
SELECT u.Name,u.ImageName,u.UserName,up.UserName,up.FriendUserName,up.ContentPost,up.ImageName1,up.ImageName2,up.ImageName3,up.SendDate,
s.ImageName01,s.ImageName02,s.ImageName03,s.ContentPost1,s.UserName1,s.FriendUserName1,s.SendDate1
FROM SharePost up, User3 as u