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;
///输出:视图创建,结果不正确//