0
我需要確定是否每個客戶從一個給定的公司ID是一個奇怪的人出來這麼說。我傾向於找出「公司ID」的總和是否爲奇數,如果他們共用同一日期,那麼TRUE-需要返回一個真正的價值是共享相同的價值相同的價值是奇數
因此,我們一次爲此數據集添加一行:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134
4/30/2012 4:00 30003134
4/30/2012 4:00 1000009602
4/30/2012 4:00 1075000
4/30/2012 4:00 30003134
4/30/2012 4:00 30003134
其結果將是:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 True
依次爲:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
依次爲:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
4/30/2012 4:00 1000009602 True
其次:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
4/30/2012 4:00 1000009602 True
4/30/2012 4:00 1075000 True
依次爲:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
4/30/2012 4:00 1000009602 True
4/30/2012 4:00 1075000 True
4/30/2012 4:00 30003134 True
最後:
InvoiceableDate CompanyID Single client from this company?
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
4/30/2012 4:00 1000009602 True
4/30/2012 4:00 1075000 True
4/30/2012 4:00 30003134 False
4/30/2012 4:00 30003134 False
對不起,長的帖子,我建我的詞彙來解釋正確的事情。
沒關係,格式根本不起作用 - 讓我再試一次 – newbie2778930