0
請幫助一個查詢查詢SQL數據庫
我Student_Master Table
: -
ID Name
1 AAA
2 BBB
3 CCC
4 DDD
My Student Details Table
ID MastID Address
1 1 Address 1
2 2 Address 2
現在我已經被綁定到學生主表一個gridview,現在我想在我的GridView的自定義列調用,所以說:「誰擁有地址的學生有狀態應該是‘應對當前’,爲學生,其地址是不是他們有存在於表狀態將是‘地址不存在’ EG。
ID Name Status
1 AAA Address Present
2 BBB Address Present
3 CCC Address NOT Present
4 DDD Address NOT Present