`
sakakokiya
  • 浏览: 507367 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

英文SQL面试十七问

阅读更多
   1. What are two methods of retrieving SQL?
   2. What cursor type do you use to retrieve multiple recordsets?
   3. What is the difference between a “where” clause and a “having” clause? - “Where” is a kind of restiriction statement. You use where clause to restrict all the data from DB.Where clause is using before result retrieving. But Having clause is using after retrieving the data.Having clause is a kind of filtering command.
   4. What is the basic form of a SQL statement to read data out of a table? The basic form to read data out of table is ‘SELECT * FROM table_name; ‘ An answer: ‘SELECT * FROM table_name WHERE xyz= ‘whatever’;’ cannot be called basic form because of WHERE clause.
   5. What structure can you implement for the database to speed up table reads? - Follow the rules of DB tuning we have to: 1] properly use indexes ( different types of indexes) 2] properly locate different DB objects across different tablespaces, files and so on.3] create a special space (tablespace) to locate some of the data with special datatype ( for example CLOB, LOB and …)
   6. What are the tradeoffs with having indexes? - 1. Faster selects, slower updates. 2. Extra storage space to store indexes. Updates are slower because in addition to updating the table you have to update the index.
   7. What is a “join”? - ‘join’ used to connect two or more tables logically with or without common field.
   8. What is “normalization”? “Denormalization”? Why do you sometimes want to denormalize? - Normalizing data means eliminating redundant information from a table and organizing the data so that future changes to the table are easier. Denormalization means allowing redundancy in a table. The main benefit of denormalization is improved performance with simplified data retrieval and manipulation. This is done by reduction in the number of joins needed for data processing.
   9. What is a “constraint”? - A constraint allows you to apply simple referential integrity checks to a table. There are four primary types of constraints that are currently supported by SQL Server: PRIMARY/UNIQUE - enforces uniqueness of a particular table column. DEFAULT - specifies a default value for a column in case an insert operation does not provide one. FOREIGN KEY - validates that every value in a column exists in a column of another table. CHECK - checks that every value stored in a column is in some specified list. Each type of constraint performs a specific type of action. Default is not a constraint. NOT NULL is one more constraint which does not allow values in the specific column to be null. And also it the only constraint which is not a table level constraint.
  10. What types of index data structures can you have? - An index helps to faster search values in tables. The three most commonly used index-types are: - B-Tree: builds a tree of possible values with a list of row IDs that have the leaf value. Needs a lot of space and is the default index type for most databases. - Bitmap: string of bits for each possible value of the column. Each bit string has one bit for each row. Needs only few space and is very fast.(however, domain of value cannot be large, e.g. SEX(m,f); degree(BS,MS,PHD) - Hash: A hashing algorithm is used to assign a set of characters to represent a text string such as a composite of keys or partial keys, and compresses the underlying data. Takes longer to build and is supported by relatively few databases.
  11. What is a “primary key”? - A PRIMARY INDEX or PRIMARY KEY is something which comes mainly from
      database theory. From its behavior is almost the same as an UNIQUE INDEX, i.e. there may only be one of each value in this column. If you call such an INDEX PRIMARY instead of UNIQUE, you say something about
      your table design, which I am not able to explain in few words. Primary Key is a type of a constraint enforcing uniqueness and data integrity for each row of a table. All columns participating in a primary key constraint must possess the NOT NULL property.
  12. What is a “functional dependency”? How does it relate to database table design? - Functional dependency relates to how one object depends upon the other in the database. for example, procedure/function sp2 may be called by procedure sp1. Then we say that sp1 has functional dependency on sp2.
  13. What is a “trigger”? - Triggers are stored procedures created in order to enforce integrity rules in a database. A trigger is executed every time a data-modification operation occurs (i.e., insert, update or delete). Triggers are executed automatically on occurance of one of the data-modification operations. A trigger is a database object directly associated with a particular table. It fires whenever a specific statement/type of statement is issued against that table. The types of statements are insert,update,delete and query statements. Basically, trigger is a set of SQL statements A trigger is a solution to the restrictions of a constraint. For instance: 1.A database column cannot carry PSEUDO columns as criteria where a trigger can. 2. A database constraint cannot refer old and new values for a row where a trigger can.
  14. Why can a “group by” or “order by” clause be expensive to process? - Processing of “group by” or “order by” clause often requires creation of Temporary tables to process the results of the query. Which depending of the result set can be very expensive.
  15. What is “index covering” of a query? - Index covering means that “Data can be found only using indexes, without touching the tables”
  16. What types of join algorithms can you have?
  17. What is a SQL view? - An output of a query can be stored as a view. View acts like small table which meets our criterion. View is a precomplied SQL query which is used to select data from one or more tables. A view is like a table but it doesn’t physically take any space. View is a good way to present data in a particular format if you use that query quite often. View can also be used to restrict users from accessing the tables directly.
分享到:
评论

相关推荐

    SQL 面试问题大全英文版

    根据提供的文件信息,我们可以归纳出一系列重要的SQL知识点及其相关内容。这份资料主要面向已经掌握SQL基础知识的...这些内容不仅有助于读者更好地理解SQL的核心概念,也为准备SQL面试的开发者提供了宝贵的参考材料。

    Java/J2EE面试400问 英文版

    本书《Java/J2EE面试400问 英文版》是一本针对Java和Java Enterprise Edition(J2EE)面试问题的英文资料集,由K.Arulkumaran和A.Sivayini编写。该书旨在帮助初、中级Java程序员准备面试,涵盖了Java/J2EE的核心概念...

    Java面试题目汇总英文Java面试题(核心知识).doc

    Java面试题目涵盖了许多核心知识点,包括面向对象编程、并发处理、数据结构、网络通信、持久化、JSP、Servlet、EJB、数据库管理和WebLogic服务器的配置。以下是对这些主题的详细阐述: 1. **面向对象的三个基本特征...

    保研面试题目200题(计算机&人工智能)(含中英文)

    10. **英语能力**:由于计算机和人工智能领域国际交流频繁,良好的英语听说读写能力是必备的,面试中可能会有英文提问。 在准备保研面试时,除了掌握以上知识,还要锻炼自己的逻辑思维能力,学会用简洁明了的语言...

    JAVA面试宝典英文版

    《JAVA面试宝典英文版》是一本专门为Java开发者准备的面试指南,旨在帮助他们更好地应对英语面试场景。这本书涵盖了Java语言的基础知识、J2EE框架以及软件工程的相关问题,并提供了详细的英文答案,对于提升候选人的...

    Java英文面试资料以及思科学院电子资料合集

    本合集主要包含两部分:Java英文面试资料和思科学院的电子教材,旨在帮助求职者或自学者提升在英文环境下的Java技术理解与应用能力。 首先,让我们深入探讨Java英文面试中的常见知识点。在"java英文面试.docx"和...

    j2ee英文面试

    在讨论j2ee英文面试的时候,特别是涉及struts、spring、hibernate、oracle和agile这几个技术点时,我们将会讨论这些技术的概念、应用以及优缺点。 首先,Hibernate是一个开放源代码的对象关系映射(ORM)框架,它让...

    mainframe面试常问问题(英文)

    面试时,可能会问到以下问题: 1. 如何在COBOL程序中处理错误? 2. 描述一下CICS的交易生命周期。 3. DB2的恢复机制是什么? 4. 如何在CICS中实现安全性控制? 5. 如何在DB2中创建和优化索引? 6. COBOL中的文件处理...

    Hibernate 50个 英文面试题和答案

    Hibernate支持两种查询语言:HQL(Hibernate Query Language),类似于SQL但面向对象;以及Criteria API,提供更类型安全和可读性强的查询方式。 8. Hibernate如何处理关联? Hibernate支持多种关联映射,包括一...

    香港JAVA面试笔试题目

    3. **异常处理**:Java的异常处理机制是面试中经常被问到的话题,包括try-catch-finally语句块、异常类型、自定义异常以及如何优雅地处理异常。 4. **集合框架**:熟悉ArrayList、LinkedList、HashSet、HashMap等...

    经典面试问题(英文)

    "经典面试问题(英文)"这个主题通常涵盖了一系列旨在测试技术能力、解决问题的能力、沟通技巧以及团队合作精神的题目。以下是一些可能出现在外企面试中的经典问题,以及它们所涉及的知识点: 1. **数据结构与算法**...

    java面试题大全(英文版).doc

    《Java/J2EE面试题大全》是一本专为准备Java和J2EE职位面试者编写的指南,由K. Arulkumaran和A. Sivayini撰写,并由多位技术审阅者协助完成。这本书旨在帮助读者掌握Java和J2EE的核心概念以及关键领域,以提高面试...

    java中文英文面试题

    面试时,能够流利地用英文回答这些问题将极大地展示你的专业能力和沟通技巧。对于Java开发者来说,理解和掌握这些知识点是至关重要的,因为它们涵盖了从基础到高级的多个层次,包括数据库操作、框架应用和并发控制...

    Java面试题目汇总英文Java面试题核心知识.pdf

    【Java面试核心知识详解】 Java面试题涵盖了众多关键知识点,以下是对这些知识点的详细解析: 1. **面向对象的三个基本特征**:封装、继承和多态。封装是将数据和操作数据的方法捆绑在一起,保护数据不受外部非法...

    sql行列互换

    ### SQL 行列互换详解 在日常的数据处理与...掌握这些技巧,不仅能帮助我们在实际工作中更灵活地处理数据,还能在技术面试中展现我们的专业能力。 在实践中,可以根据具体的业务需求和数据库特性选择最合适的方法。

    .net 面试题系列(网上收集)很全

    2008/06/17 18:49 1,497 软件公司常问的技术面试题(.net sql css js html).txt 2008/06/17 18:48 3,782 雅虎公司C#面试题.txt 2008/06/17 18:50 978 面试题库网收集的.NET面试题.txt 2008/06/17 18:34 2,340 面试...

    jsp+sql毕业生招聘系统毕业设计(系统+论文+英文文献+综合材料).zip

    该压缩包文件“jsp+sql毕业生招聘系统毕业设计(系统+论文+英文文献+综合材料).zip”包含了一个基于JSP和SQL技术的毕业生招聘系统的设计项目,该项目可能包括了系统的实现、学术论文、相关的英文文献以及综合性的辅助...

    Java面试宝典和大学生面试宝典

    如果对方在电话面试中要求你 做英文的自我介绍,或者干脆用英文和你对话,那在电话面试结束后一 定要好好准备英文面试的内容。 笔者曾经参加过 Thoughtworks 、Sybase、 SAP、麒麟原创等公司的电 话面试。外企一般...

Global site tag (gtag.js) - Google Analytics