我必须创建一个具有以下属性的视图

I have to create a view with following attributes

创建一个名为 customer_mobile_details 的视图,它具有以下属性。显示他们购买的手机的客户ID,客户姓名,手机号码,销售ID,净额,型号名称和制造商名称。根据客户id、客户名称、销售id升序排列记录。enter image description here

我的代码如下。

create view customer_mobile_details 
as( select Customer_Info.Customer_ID, Customer_Info.Customer_Name, 
Distributor.Mobilenumber,
Sales_Info.Salesid, Sales_Info.Net_Amount,
Mobile_Master.Model_Name, Mobile_Master.Manufacturer
from Customer_Info
inner join Sales_Info
on Customer_Info.Customer_ID = Sales_Info.Customer_ID
inner join Mobile_Master
on Sales_Info.Price = Mobile_Master.Price
inner join Distributor
on Mobile_Master.Distributor_ID = Distributor.Distributor_ID)
order by Customer_Info.Customer_ID, Customer_Info.Customer_Name, Sales_Info.Salesid asc;

但是我遇到了一些错误。它说 失败的测试 测试用例2:检查属性名称、约束、排序等

谁能帮我找出我哪里出错了?

You can try this one. Works for me.
This is pretty self explanatory.
create view customer_mobile_details as 
(select customer_id,
customer_info.customer_name,
customer_info.mobile,
sales_info.salesid,
sales_info.net_amount,
mobile_master.model_name,
mobile_master.manufacturer
from customer_info
join sales_info using(customer_id)
join mobile_master using(ime_no))

order by customer_id,
customer_info.customer_name,
sales_info.salesid;

问题实际上出在问题中,因为要获取的手机号码是 table 'Customer_info' 中名为“Mobile”的属性,而不是 [=14= 中的“mobilenumber”属性] 'Distributor'.