当前在线人数11660
首页 - 分类讨论区 - 电脑网络 - 数据库版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:面试回来发考题1
[同主题阅读] [版面: 数据库] [作者:neil222966] , 2008年12月02日19:53:02
neil222966
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: neil222966 (Wei), 信区: Database
标  题: 面试回来发考题1
发信站: BBS 未名空间站 (Tue Dec  2 19:53:02 2008)

Position: Database Developer/DBA

Requirements:
postgreSQL,Oracle
Linux/Unix/Solaris
Perl, Ruby, Shell scripting

Many Question, mostly focused on SQL basic concept, coding logic, logic in
trouble shooting and tuning

Concept Questions:
1. Difference between Having and Where
2. Difference between Delete and Truncate
3. Joins
4. Difference between IN and Exist (I was not sure about the difference in interview. I just answered: I use IN for assigned value, I use exist for query.)

Coding logic: Interesting questions.

Table
ID, ..., NewID
1,  ..., 2
2,  ..., NULL
8,  ..., 9
9,  ..., 10
10, ..., 13
13, ..., 18
......., M
M,  ..., N

Update ID for a couple of times and want the original ID for which the final
NewID may be NULL or a specific value N.

Question: write query to get all the expected ID (e.g. ID = 8)
I used one cursor within another cursor.

Interviewer asked me if I have heard about the recursive function. I did not
come up with recursive in the first second then realize it. A function call
itself.


... continued


--
※ 修改:·neil222966 於 Dec  2 20:02:26 2008 修改本文·[FROM: 71.163.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996