sql 查詢一列和另外一列的關係是否是一對一

業務邏輯講, 報價編號和產品編號scheduleindex 一對一, 系統出現問題出現不是1:1狀況, 查出來:產品 select distinct  pm.BookingNote,  count( distinct pm.ScheduleIndex) from  pricemain  pm, priceport  pp  where pm.priceid = pp.priceid and pm.
相關文章
相關標籤/搜索