由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 请教:SQL面试题。
相关主题
急问一个关于T-SQL的问题,谢谢Urgent SQL problem!
难。想了一天了。大牛请进。1. Oracle vs. SQL92 Re: Just
aks a simple SQL questionhow to see all the tables in SQL*PLUS?
求助SQL高手,这个join怎么做比较好Can I create thousands table in one...
新手请教:无数据库,有数据,需要SQL 做表joininterview question (SQL)
再来一个SQL Server的面试题SQL combine two columns from two different tables no shared (转载)
借宝地问个面试中的sql的问题。Help on migrating oracle to db2, outerjoin
SQL combine two tables into one table and add a new column 如何在将学生成绩排序后,再加一个rank域
相关话题的讨论汇总
话题: join话题: outer话题: sql话题: table话题: record
进入Database版参与讨论
1 (共1页)
x****y
发帖数: 252
1
电话面试,在这道题上栽了很多次。
what is outer join? what is different between inner join and outer join?
如果,是写SQL,没问题。但是,口述,就是闷葫芦--倒不出.
有没有谁给个标准答案?
"An outer join does not require each record in the two joined tables to have
a matching record. " --- From Wikipedia, the free encyclopedia
My answer"An outer join doesn't require that two join tables have a match
record." 这个答案被批。
c*****d
发帖数: 6045
2
你的回答不对

have

【在 x****y 的大作中提到】
: 电话面试,在这道题上栽了很多次。
: what is outer join? what is different between inner join and outer join?
: 如果,是写SQL,没问题。但是,口述,就是闷葫芦--倒不出.
: 有没有谁给个标准答案?
: "An outer join does not require each record in the two joined tables to have
: a matching record. " --- From Wikipedia, the free encyclopedia
: My answer"An outer join doesn't require that two join tables have a match
: record." 这个答案被批。

m**********2
发帖数: 2252
3
Outer joins are inclusive in nature. what specifically gets included depends
on which side of the join you have emphasized. A left outer join includes
all the information from the table on the left, and a right outer join
includes all the information from the table on the right.
哈哈,抄书滴。。。不知道行不行。。。

have

【在 x****y 的大作中提到】
: 电话面试,在这道题上栽了很多次。
: what is outer join? what is different between inner join and outer join?
: 如果,是写SQL,没问题。但是,口述,就是闷葫芦--倒不出.
: 有没有谁给个标准答案?
: "An outer join does not require each record in the two joined tables to have
: a matching record. " --- From Wikipedia, the free encyclopedia
: My answer"An outer join doesn't require that two join tables have a match
: record." 这个答案被批。

t*********i
发帖数: 217
4
a left outer join will return all records from left table and only such
records from right table which matches the join condition to the left table.
a right outer join...
Don't know if this works or not, my own words.
B*****g
发帖数: 34098
5
举例是最好的回答

have

【在 x****y 的大作中提到】
: 电话面试,在这道题上栽了很多次。
: what is outer join? what is different between inner join and outer join?
: 如果,是写SQL,没问题。但是,口述,就是闷葫芦--倒不出.
: 有没有谁给个标准答案?
: "An outer join does not require each record in the two joined tables to have
: a matching record. " --- From Wikipedia, the free encyclopedia
: My answer"An outer join doesn't require that two join tables have a match
: record." 这个答案被批。

j*****n
发帖数: 1781
B*****g
发帖数: 34098
7
顶,所以学习DB,必须提前来本版蹲点。

【在 j*****n 的大作中提到】
: http://www.mitbbs.com/article_t/Database/31139187.html
j*****n
发帖数: 1781
8
mm 永远是对的... :)

【在 B*****g 的大作中提到】
: 顶,所以学习DB,必须提前来本版蹲点。
x****y
发帖数: 252
9
蹲过点。
当时觉得,outer join 简单,没想到,用语言描述的时候,就不利索了。:(
1 (共1页)
进入Database版参与讨论
相关主题
如何在将学生成绩排序后,再加一个rank域新手请教:无数据库,有数据,需要SQL 做表join
tbl1.col1 = tbl2.col2 (+)再来一个SQL Server的面试题
新手请教:为什么这个Query不work借宝地问个面试中的sql的问题。
MS SQL Group By QuestionSQL combine two tables into one table and add a new column
急问一个关于T-SQL的问题,谢谢Urgent SQL problem!
难。想了一天了。大牛请进。1. Oracle vs. SQL92 Re: Just
aks a simple SQL questionhow to see all the tables in SQL*PLUS?
求助SQL高手,这个join怎么做比较好Can I create thousands table in one...
相关话题的讨论汇总
话题: join话题: outer话题: sql话题: table话题: record