如何解决视图问题,请检查我的代码

时间:2019-06-05 13:50:53

标签: view rdbms

Q。以user_travel_details创建视图,其id,名称,源,目的地为user_id.user_name,源和目的地

create or replace view user_travel_details
as
select u.user_id as user_id,
       u.name as user_name,
       s.source as source,
       s.destination as destination
       from users u join tickets t on
       u.user_id=t.user_id join schedule s
       on s.schedule_id=t.schedule_id; 

///输出:视图创建,结果不正确//

enter image description here

0 个答案:

没有答案