Redian新闻
>
[转载] 朋友传给我的INTERVIEW问题2...SQL
avatar
[转载] 朋友传给我的INTERVIEW问题2...SQL# Database - 数据库
n*g
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
avatar
a*i
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

avatar
g*o
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.:)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。