帮我写个联合查询语句写一条select语句,把title,area,year联合查询出来select year,area,title from film,filmtitle如果用这个查询语句,如何解决重复问题?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 11:14:02

帮我写个联合查询语句写一条select语句,把title,area,year联合查询出来select year,area,title from film,filmtitle如果用这个查询语句,如何解决重复问题?
帮我写个联合查询语句

写一条select语句,把title,area,year联合查询出来


select year,area,title from film,filmtitle
如果用这个查询语句,如何解决重复问题?

帮我写个联合查询语句写一条select语句,把title,area,year联合查询出来select year,area,title from film,filmtitle如果用这个查询语句,如何解决重复问题?
select t2.title,t.area,t.year film t left join filmtitle t2 on t.pid=t2.id
 解决重复用 distinct 关键词
select distinct  t2.title,t.area,t.year film t ,filmtitle t2 where t.pid=t2.id