看板 Database 關於我們 聯絡資訊
select t1.barcode from user t1 left join employ t2 on t1.barcode = t2.barcode where t2.barcode is null ※ 引述《LMGG (聯盟GG)》之銘言: : (針對 SQL 語言的問題,用這個標題。請用 Ctrl+Y 砍掉這行) : 資料庫名稱:MySql : 資料庫版本:5.1.33 : 內容/問題描述: : 有兩張表分別是user跟employ, : employ表是紀錄員工登錄票券號碼, : user表是紀錄顧客登錄票券號碼, : 例如:員工登錄100張,顧客登錄50張,那兩邊的票券號碼相同的有38張, : 想要篩選出顧客有登錄的剩下12張,請問該如何下語法? : http://i.imgur.com/yknukiB.jpg : ----- : Sent from JPTT on my Samsung SM-G9208. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.221.80.36 ※ 文章網址: https://www.ptt.cc/bbs/Database/M.1463557033.A.DAF.html