如何显示客户 XX 使用哪个塔(Towerid、位置)进行第一次呼叫?
我无法从特定客户那里获得第一次呼叫的结果。我可以从这个特定客户那里获得所有呼叫的结果。
Table 1: Tower: TowerID, Location
Table 2: Connect: Tower ID, CallsID
Table 3: Calls: CallsID, MoBileID, CallDate
Table 4: Mobile: MobileID, CustomerID
我希望第一次打电话给客户xx,塔里德,位置
I cannot get the result for the first call from a specific customer. I can get the result for all the calls from this specific customer.
Table 1: Tower: TowerID, Location
Table 2: Connect: Tower ID, CallsID
Table 3: Calls: CallsID, MoBileID, CallDate
Table 4: Mobile: MobileID, CustomerID
I expected to have the first call for a customer XX, Towerid, Location
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,您可以使用分区。我没有测试以下查询,但我希望它有效。
You can use
partition by
in this case. I've not tested the below query but I hope it works.