由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - [转载] 朋友传给我的INTERVIEW问题2...SQL
相关主题
mySQL有多大的市场?印度人还是很牛的
Help on install SQL server2000T-SQL Update Statement Question
抛砖引玉: 谈谈SQL Server locking and blockingSQL中怎样用定制列排序?
代发一个招工启事因该是很普通的要求, 可想不出怎么办
How to use the SQL key word EXISTS?ora-00600:internal error
叹,时也,命也Re: [转载] JDBC用完了oracle的large pool (memor
SQL Server 2008 Interview Q&Ahow to query chinese in mysql?
connection pool 面试题请问isolation level "read comitted"和"serializable"的区别。
相关话题的讨论汇总
话题: each话题: sql话题: customer话题: interview话题: ids
进入Database版参与讨论
1 (共1页)
n****g
发帖数: 76
1
【 以下文字转载自 JobHunting 讨论区,原文如下 】
发信人: njying (嘟嘟), 信区: JobHunting
标 题: 朋友传给我的INTERVIEW问题2...SQL
发信站: The unknown SPACE (Tue Jan 28 18:44:49 2003) WWW-POST
1. There is a table 'T' with order ids ('oi') and customer ids ('ci'). Each
order only belongs to a single customer and each customer may have multiple
orders. How do you find how many orders each customer has? Please provide
the SQL.
2. Users report that the server has become non-responsive. What are the
possible explanations, and how do
a*****i
发帖数: 4391
2

SELECT COUNT(oi) FROM T GROUP BY ci ?
That depends on what he means by "non-responsive" bah.
Isolation level.
Not sure why they might occur in a simple situation. Never had one in my
life.:)

【在 n****g 的大作中提到】
: 【 以下文字转载自 JobHunting 讨论区,原文如下 】
: 发信人: njying (嘟嘟), 信区: JobHunting
: 标 题: 朋友传给我的INTERVIEW问题2...SQL
: 发信站: The unknown SPACE (Tue Jan 28 18:44:49 2003) WWW-POST
: 1. There is a table 'T' with order ids ('oi') and customer ids ('ci'). Each
: order only belongs to a single customer and each customer may have multiple
: orders. How do you find how many orders each customer has? Please provide
: the SQL.
: 2. Users report that the server has become non-responsive. What are the
: possible explanations, and how do

g***o
发帖数: 297
3

Each
multiple
provide
in
A
normally
simple
two transactions are waiting for each other when they try to act to the same
data object since DBMA will put a lock on the data object before it was
accessed by any transactions

【在 a*****i 的大作中提到】
:
: SELECT COUNT(oi) FROM T GROUP BY ci ?
: That depends on what he means by "non-responsive" bah.
: Isolation level.
: Not sure why they might occur in a simple situation. Never had one in my
: life.:)

1 (共1页)
进入Database版参与讨论
相关主题
请问isolation level "read comitted"和"serializable"的区别。How to use the SQL key word EXISTS?
Re: A question for SQL Server叹,时也,命也
你们喜欢用哪个SQL Tools?SQL Server 2008 Interview Q&A
Re: 数据库真烦人connection pool 面试题
mySQL有多大的市场?印度人还是很牛的
Help on install SQL server2000T-SQL Update Statement Question
抛砖引玉: 谈谈SQL Server locking and blockingSQL中怎样用定制列排序?
代发一个招工启事因该是很普通的要求, 可想不出怎么办
相关话题的讨论汇总
话题: each话题: sql话题: customer话题: interview话题: ids