select Preacher_Id , Name from Preacher_SkillDetail
where Preacher_Id not in (
where Preacher_FK from Event_Preacher
where (@newstartdate <= Start_Date and @newenddate >= Start_Date)
or (@newstartdate <= End_Date and @newenddate >= End_Date)
or (@newstartdate >= End_Date and @newenddate <= End_Date)
or (@newstartdate <= Start_Date and @newenddate >= End_Date)
)
我想bind the output
到ropdowncontrol
我如何解決以下SQL查詢?
我怎麼能做到這一點在C#.NET?我有變數newstartdate and newenddate as Date
@ hims056謝謝....但它仍然不工作 – Luv
@ hims056它是一個子查詢。 – Kaf
您的問題包含多個部分。從數據庫收集數據(SqlDataReader),將數據放入數據傳輸對象,然後在下拉菜單中顯示。伊姆舒爾這些單獨的步驟可以在SO或網上獲得。 –