作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/04/19 05:58:10
帮我写个联合查询语句

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


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