我有这些数据:-
----------------------- 1 -------------- -------------------------------------------
select Com.CountryName+', '+Cm.CityName+', '+Fac.FacilityName+', '+FM.FloorCode as Details
from MC_MeetingRoom_Master MR join MC_Floor_Master FM on MR.FloorID=FM.FloorID AND FM.IsActive=1
JOIN MC_Building_Master BM on BM.BuildingID=FM.BuildingID AND BM.IsActive=1
JOIN MC_Facility_Master Fac on BM.FacilityID=Fac.FacilityID and Fac.IsActive=1
join MC_City_Master Cm on Fac.CityID = Cm.CityID and Cm.IsActive=1
join MC_Country_Master Com on Cm.CountryID=Com.CountryID and Com.IsActive=1
WHERE MeetingRoomID=1000
上面的查询显示:-
India, Chennai, CHN - DLF Infocity - SEZ, 3rd Floor
-------------------------- 2 ----------- --------------------------------------
另一张桌子
select [MeetingRoomID],[Capacity],[MeetingRoomVNET],
CASE WHEN [HasProjector] =0 then 'No'
ELSE 'Yes'
END [HasProjector],
CASE WHEN [HasLan]=0
then 'No'
ELSE 'Yes'
END [HasLan],
CASE WHEN [HasComputer]=0
then 'No'
ELSE 'Yes'
END [HasComputer],
CASE WHEN [HasWhiteBoard]=0
then 'No'
ELSE 'Yes'
END [HasWhiteBoard],
[MeetingRoomAdminMail]
from MC_MeetingRoom_Master
where [MeetingRoomID]=1023
上面的查询显示列:-
1023 25 0 No No No No Admin.Helpdesk@cognizant.com
但我想加入这两个查询......??
我需要创建存储过程..??