<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6187872174798176445</id><updated>2011-11-27T15:25:25.689-08:00</updated><category term='Oracle Concepts and Architecture'/><category term='Database Modal'/><category term='Objective Questions'/><category term='Database Management'/><category term='SQL Server 2008 Top New Features'/><category term='MySQL Database Tutorial'/><category term='SQL / PL SQL Questions'/><category term='Oracle Interview Questions Answer'/><category term='Oracle Account Payables'/><category term='Ask a Expert'/><category term='oracle'/><category term='Database Design'/><title type='text'>Database Interview Question</title><subtitle type='html'>Database interview questions and answers asked in various interviews, faqs,tutorial and articles..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://db-interviewquestion.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default?start-index=101&amp;max-results=100'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>281</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5429892060958759569</id><published>2010-07-09T03:37:00.000-07:00</published><updated>2010-07-09T03:39:37.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Is finalize( ) similar to a destructor?</title><content type='html'>&lt;strong&gt;I know that C++ defines things called destructors, which are automatically executed when an object is destroyed. Is finalize( ) similar to a destructor?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Java does not have destructors. Although it is true that the finalize( ) method approximates the function of a destructor, it is not the same. For example, a C++ destructor is always called just before an object goes out of scope, but you can’t know when finalize( ) will be called for any specific object. Frankly, because of Java’s use of garbage colle ction,there is little need for a destructor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5429892060958759569?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5429892060958759569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5429892060958759569'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/is-finalize-similar-to-destructor.html' title='Is finalize( ) similar to a destructor?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-401488331298546763</id><published>2010-07-09T03:36:00.000-07:00</published><updated>2010-07-09T03:37:37.708-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Java :Question with Answer</title><content type='html'>&lt;strong&gt;You say that once created, String objects are immutable. I understand that, from a&lt;br /&gt;practical point of view, this is not a serious restriction, but what if I want to create a string that can be changed?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You’re in luck. Java offers a class called StringBuffer, which creates string objects&lt;br /&gt;that can be changed. For example, in addition to the charAt( ) method, which obtains&lt;br /&gt;the character at a specific location, StringBuffer defines setCharAt( ), which sets a&lt;br /&gt;character within the string. However, for most purposes you will want to use String,&lt;br /&gt;not StringBuffer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-401488331298546763?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/401488331298546763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/401488331298546763'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/java-question-with-answer.html' title='Java :Question with Answer'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7207438059692604501</id><published>2010-07-09T03:35:00.000-07:00</published><updated>2010-07-09T03:36:35.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Why does String define the equals( ) method? Can’t I just use ==?</title><content type='html'>The equals( ) method compares the character sequences of two String objects for&lt;br /&gt;equality. Applying the == to two String references simply determines whether the two&lt;br /&gt;references refer to the same object.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7207438059692604501?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7207438059692604501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7207438059692604501'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/why-does-string-define-equals-method.html' title='Why does String define the equals( ) method? Can’t I just use ==?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2051906898093578105</id><published>2010-07-09T03:34:00.000-07:00</published><updated>2010-07-09T03:35:46.091-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>When should I make an instance variable private?</title><content type='html'>There are no hard and fast rules, but here are two general principles. If an instance&lt;br /&gt;variable is to be used only by methods defined within its class, then it should be made private. If an instance variable must be within certain bounds, then it should be private and made available only through accessor methods. This way, you can prevent invalid values from being assigned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2051906898093578105?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2051906898093578105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2051906898093578105'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/when-should-i-make-instance-variable.html' title='When should I make an instance variable private?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-615947133232627063</id><published>2010-07-09T03:31:00.000-07:00</published><updated>2010-07-09T03:34:35.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>The javadoc Tags</title><content type='html'>&lt;strong&gt;Tag                         Meaning&lt;/strong&gt;&lt;br /&gt;@author                 Identifies the author of a class.&lt;br /&gt;@deprecated             Specifies that a class or member is deprecated.&lt;br /&gt;{@docRoot}              Specifies the path to the root directory of the current documentation. (Added by Java&lt;br /&gt;2, version 1.3.)&lt;br /&gt;@exception             Identifies an exception thrown by a method.&lt;br /&gt;{@inheritDoc}            Inherits a comment from the immediate superclass. (Added by Java 2, version 1.4, butnot currently implemented.)&lt;br /&gt;{@link}               Inserts an in-line link to another topic.&lt;br /&gt;{@linkplain}            Inserts an in-line link to another topic, but the link is displayed in a plain-text font.(Added by Java 2, version 1.4.)&lt;br /&gt;@param            Documents a method’s parameter.&lt;br /&gt;@return           Documents a method’s return value.&lt;br /&gt;@see              Specifies a link to another topic.&lt;br /&gt;@serial            Documents a default serializable field.&lt;br /&gt;@serialData          Documents the data written by the writeObject( ) or writeExternal( ) methods.&lt;br /&gt;@serialField             Documents an ObjectStreamField component.&lt;br /&gt;@since            States the release when a specific change was introduced.&lt;br /&gt;@throws           Same as @exception.&lt;br /&gt;{@value}          Displays the value of a constant, which must be a static field. (Added by Java 2,version 1.4.)&lt;br /&gt;@version          Specifies the version of a class.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-615947133232627063?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/615947133232627063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/615947133232627063'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/javadoc-tags.html' title='The javadoc Tags'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5387579341920194376</id><published>2010-07-09T03:29:00.000-07:00</published><updated>2010-07-09T03:31:30.323-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Java : Fundamental Question and Answer</title><content type='html'>&lt;strong&gt;To address the issues of portability and security, why was it necessary to create a&lt;br /&gt;new computer language such as Java; couldn’t a language like C++ be adapted? In&lt;br /&gt;other words, couldn’t a C++ compiler that outputs bytecode be created?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;While it would be possible for a C++ compiler to generate bytecode rather than&lt;br /&gt;executable code, C++ has features that discourage its use for the creation of&lt;br /&gt;applets—the most important feature being C++’s support for pointers. A pointer is the&lt;br /&gt;address of some object stored in memory. Using a pointer, it would be possible to access resources outside the program itself, resulting in a security breach. Java does not support pointers, thus eliminating this problem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5387579341920194376?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5387579341920194376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5387579341920194376'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/java-fundamental-question-and-answer_1768.html' title='Java : Fundamental Question and Answer'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-821281589931377102</id><published>2010-07-09T03:28:00.000-07:00</published><updated>2010-07-09T03:29:45.258-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Java : Fundamental Question and Answer</title><content type='html'>&lt;strong&gt;Does the use of a code block introduce any run-time inefficiencies? In other words,&lt;br /&gt;does Java actually execute the { and }?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;No. Code blocks do not add any overhead whatsoever. In fact, because of their ability&lt;br /&gt;to simplify the coding of certain algorithms, their use generally increases speed and&lt;br /&gt;efficiency. Also, the { and } exist only in your program’s source code. Java does not,per se, execute the { or }.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-821281589931377102?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/821281589931377102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/821281589931377102'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/java-fundamental-question-and-answer_09.html' title='Java : Fundamental Question and Answer'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8959680347395895381</id><published>2010-07-09T03:25:00.000-07:00</published><updated>2010-07-09T03:28:24.725-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ask a Expert'/><title type='text'>Java : Fundamental Question and Answer</title><content type='html'>&lt;strong&gt;You state that object-oriented programming is an effective way to manage large programs. However, it seems that it might add substantial overhead to relatively&lt;br /&gt;small ones. Since you say that all Java programs are, to some extent, object-oriented,does this impose a penalty for smaller programs?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;No. As you will see, for small programs, Java’s object-oriented features are nearly&lt;br /&gt;transparent. Although it is true that Java follows a strict object model, you have&lt;br /&gt;wide latitude as to the degree to which you employ it. For smaller programs, their&lt;br /&gt;“object-orientedness” is barely perceptible. As your programs grow, you will integrate&lt;br /&gt;more object-oriented features effortlessly&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8959680347395895381?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8959680347395895381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8959680347395895381'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/07/java-fundamental-question-and-answer.html' title='Java : Fundamental Question and Answer'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4662353419273210366</id><published>2010-03-27T10:25:00.000-07:00</published><updated>2010-03-27T10:26:12.878-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Semantic Data Model</title><content type='html'>A semantic data model in software engineering is a technique to define the meaning of data within the context of its interrelationships with other data. A semantic data model is an abstraction which defines how the stored symbols relate to the real world. A semantic data model is sometimes called a conceptual data model.&lt;br /&gt;&lt;br /&gt;The logical data structure of a database management system (DBMS), whether hierarchical, network, or relational, cannot totally satisfy the requirements for a conceptual definition of data because it is limited in scope and biased toward the implementation strategy employed by the DBMS. Therefore, the need to define data from a conceptual view has led to the development of semantic data modeling techniques. That is, techniques to define the meaning of data within the context of its interrelationships with other data. As illustrated in the figure. The real world, in terms of resources, ideas, events, etc., are symbolically defined within physical data stores. A semantic data model is an abstraction which defines how the stored symbols relate to the real world. Thus, the model must be a true representation of the real world&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4662353419273210366?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4662353419273210366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4662353419273210366'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/semantic-data-model.html' title='Semantic Data Model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5059001162575495719</id><published>2010-03-27T10:24:00.002-07:00</published><updated>2010-03-27T10:25:22.656-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Generic data model</title><content type='html'>Generic data models are generalizations of conventional data models. They define standardised general relation types, together with the kinds of things that may be related by such a relation type. Generic data models are developed as an approach to solve some shortcomings of conventional data models. For example, different modelers usually produce different conventional data models of the same domain. This can lead to difficulty in bringing the models of different people together and is an obstacle for data exchange and data integration. Invariably, however, this difference is attributable to different levels of abstraction in the models and differences in the kinds of facts that can be instantiated (the semantic expression capabilities of the models). The modelers need to communicate and agree on certain elements which are to be rendered more concretely, in order to make the differences less significant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5059001162575495719?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5059001162575495719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5059001162575495719'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/generic-data-model.html' title='Generic data model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8553772994724551308</id><published>2010-03-27T10:24:00.001-07:00</published><updated>2010-03-27T10:24:45.508-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Geographic data model</title><content type='html'>A data model in Geographic information systems is a mathematical construct for representing geographic objects or surfaces as data. For example, the vector data model represents geography as collections of points, lines, and polygons; the raster data model represent geography as cell matrixes that store numeric values; and the Triangulated irregular network (TIN) data model represents geography as sets of contiguous, nonoverlapping triangles&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8553772994724551308?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8553772994724551308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8553772994724551308'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/geographic-data-model.html' title='Geographic data model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2982641238440596600</id><published>2010-03-27T10:23:00.000-07:00</published><updated>2010-03-27T10:24:09.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Entity-relationship model</title><content type='html'>An entity-relationship model is an abstract conceptual data model (or semantic data model) used in software engineering to represent structured data. Entity relationship models (ERMs) produce a conceptual data model of a system, and its requirements in a top-down fashion. There are several notations for data modeling. The actual model is frequently called "Entity relationship model", because it depicts data in terms of the entities and relationships described in the data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2982641238440596600?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2982641238440596600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2982641238440596600'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/entity-relationship-model.html' title='Entity-relationship model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5809972574539082699</id><published>2010-03-27T10:22:00.000-07:00</published><updated>2010-03-27T10:23:16.892-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Data Structure Diagram</title><content type='html'>Example of a Data Structure Diagram.&lt;br /&gt;&lt;br /&gt;A data structure diagram (DSD) is a diagram and data model used to describe conceptual data models by providing graphical notations which document entities and their relationships, and the constraints that binds them. The basic graphic elements of DSDs are boxes, representing entities, and arrows, representing relationships. Data structure diagrams are most useful for documenting complex data entities.&lt;br /&gt;&lt;br /&gt;Data structure diagrams are an extension of the entity-relationship model (ER model). In DSDs, attributes are specified inside the entity boxes rather than outside of them, while relationships are drawn as boxes composed of attributes which specify the constraints that bind entities together. The E-R model, while robust, doesn't provide a way to specify the constraints between relationships, and becomes visually cumbersome when representing entities with several attributes. DSDs differ from the ER model in that the ER model focuses on the relationships between different entities, whereas DSDs focus on the relationships of the elements within an entity and enable users to fully see the links and relationships between each entity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5809972574539082699?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5809972574539082699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5809972574539082699'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/data-structure-diagram.html' title='Data Structure Diagram'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2899170282384723338</id><published>2010-03-27T10:21:00.000-07:00</published><updated>2010-03-27T10:22:36.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Database model :Types of data models</title><content type='html'>A database model is a theory or specification describing how a database is structured and used. Several such models have been suggested.&lt;br /&gt;&lt;br /&gt;    * Flat model: This may not strictly qualify as a data model. The flat (or table) model consists of a single, two-dimensional array of data elements, where all members of a given column are assumed to be similar values, and all members of a row are assumed to be related to one another.&lt;br /&gt;    * Hierarchical model: In this model data is organized into a tree-like structure, implying a single upward link in each record to describe the nesting, and a sort field to keep the records in a particular order in each same-level list.&lt;br /&gt;    * Network model: This model organizes data using two fundamental constructs, called records and sets. Records contain fields, and sets define one-to-many relationships between records: one owner, many members.&lt;br /&gt;    * Relational model: is a database model based on first-order predicate logic. Its core idea is to describe a database as a collection of predicates over a finite set of predicate variables, describing constraints on the possible values and combinations of values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2899170282384723338?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2899170282384723338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2899170282384723338'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/database-model.html' title='Database model :Types of data models'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-9037762648375863484</id><published>2010-03-27T10:19:00.002-07:00</published><updated>2010-03-27T10:20:40.420-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Modal'/><title type='text'>Data Model</title><content type='html'>A data model in software engineering is an abstract model that describes how data are represented and accessed. Data models formally define data elements and relationships among data elements for a domain of interest. According to Hoberman (2009), "A data model is a wayfinding  tool for both business and IT professionals, which uses a set of symbols and text to precisely explain a subset of real information to improve communication within the organization and thereby lead to a more flexible and stable application environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-9037762648375863484?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/9037762648375863484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/9037762648375863484'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/data-model.html' title='Data Model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4252958583204225631</id><published>2010-03-27T10:19:00.001-07:00</published><updated>2010-03-27T10:19:39.848-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><title type='text'>Database Design :Design process</title><content type='html'>The process of doing database design generally consists of a number of steps which will be carried out by the database designer. Not all of these steps will be necessary in all cases. Usually, the designer must:&lt;br /&gt;&lt;br /&gt;    * Determine the relationships between the different data elements&lt;br /&gt;    * Superimpose a logical structure upon the data on the basis of these relationships.&lt;br /&gt;&lt;br /&gt;Within the relational model the final step can generally be broken down into two further steps, that of determining the grouping of information within the system, generally determining what are the basic objects about which information is being stored, and then determining the relationships between these groups of information, or objects. This step is not necessary with an Object database.&lt;br /&gt;&lt;br /&gt;The tree structure of data may enforce a hierarchical model organization, with a parent-child relationship table. An Object database will simply use a one-to-many relationship between instances of an object class. It also introduces the concept of a hierarchical relationship between object classes, termed inheritance&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4252958583204225631?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4252958583204225631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4252958583204225631'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/database-design-design-process.html' title='Database Design :Design process'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-993370913243683786</id><published>2010-03-27T10:18:00.001-07:00</published><updated>2010-03-27T10:18:48.975-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><title type='text'>Database Design :Physical database design</title><content type='html'>The physical design of the database specifies the physical configuration of the database on the storage media. This includes detailed specification of data elements, data types, indexing options and other parameters residing in the DBMS data dictionary. It is the detailed design of a system that includes modules &amp; the database's hardware &amp; software specifications of the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-993370913243683786?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/993370913243683786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/993370913243683786'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/database-design-physical-database.html' title='Database Design :Physical database design'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1048161411316990258</id><published>2010-03-27T10:16:00.004-07:00</published><updated>2010-03-27T10:18:09.590-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><title type='text'>DatabaseDesign :Logically structuring data</title><content type='html'>Once the relationships and dependencies amongst the various pieces of information have been determined, it is possible to arrange the data into a logical structure which can then be mapped into the storage objects supported by the database management system. In the case of relational databases the storage objects are tables which store data in rows and columns.&lt;br /&gt;&lt;br /&gt;Each table may represent an implementation of either a logical object or a relationship joining one or more instances of one or more logical objects. Relationships between tables may then be stored as links connecting child tables with parents. Since complex logical relationships are themselves tables they will probably have links to more than one parent.&lt;br /&gt;&lt;br /&gt;In an Object database the storage objects correspond directly to the objects used by the Object-oriented programming language used to write the applications that will manage and access the data. The relationships may be defined as attributes of the object classes involved or as methods that operate on the object classes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1048161411316990258?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1048161411316990258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1048161411316990258'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/databasedesign-logically-structuring.html' title='DatabaseDesign :Logically structuring data'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1015742322737649675</id><published>2010-03-27T10:16:00.003-07:00</published><updated>2010-03-27T10:16:55.373-07:00</updated><title type='text'>Database :Conceptual schema</title><content type='html'>Once a database designer is aware of the data which is to be stored  within the database, they must then determine where dependancy is within  the data. Sometimes when data is changed you can be changing other data  that is not visible. For example, in a list of names and addresses,  assuming a situation where multiple people can have the same address,  but one person cannot have more than one addresses, the name is  dependent upon the address, because if the address is different then the  associated name is different too. However, the other way around is  different. One attribute can change and not another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1015742322737649675?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1015742322737649675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1015742322737649675'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/database-conceptual-schema_27.html' title='Database :Conceptual schema'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4581489719153534161</id><published>2010-03-27T10:16:00.001-07:00</published><updated>2010-03-27T10:16:54.621-07:00</updated><title type='text'>Database :Conceptual schema</title><content type='html'>Once a database designer is aware of the data which is to be stored  within the database, they must then determine where dependancy is within  the data. Sometimes when data is changed you can be changing other data  that is not visible. For example, in a list of names and addresses,  assuming a situation where multiple people can have the same address,  but one person cannot have more than one addresses, the name is  dependent upon the address, because if the address is different then the  associated name is different too. However, the other way around is  different. One attribute can change and not another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4581489719153534161?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4581489719153534161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4581489719153534161'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2010/03/database-conceptual-schema.html' title='Database :Conceptual schema'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-9038201544656430078</id><published>2009-09-25T00:27:00.000-07:00</published><updated>2009-09-25T00:28:12.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL : Restore Database From the Command Prompt</title><content type='html'>mysql - u user_name -p your_password database_name &lt; file_name.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-9038201544656430078?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/9038201544656430078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/9038201544656430078'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-restore-database-from-command.html' title='MySQL : Restore Database From the Command Prompt'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2122939834798318523</id><published>2009-09-25T00:26:00.000-07:00</published><updated>2009-09-25T00:27:05.038-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL : Backup Database From the Command Prompt</title><content type='html'>mysqldump -u user_name -p your_password database_name &gt; File_name.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2122939834798318523?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2122939834798318523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2122939834798318523'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-backup-database-from-command.html' title='MySQL : Backup Database From the Command Prompt'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8718770654775182596</id><published>2009-09-25T00:21:00.000-07:00</published><updated>2009-09-25T00:24:19.309-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL Function : mysql_affected_rows</title><content type='html'>Get number of affected rows in previous MySQL operation&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;int mysql_affected_rows ([ resource $link_identifier ] )&lt;br /&gt;&lt;br /&gt;Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query associated with link_identifier .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example #&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="example-contents programlisting"&gt; &lt;div class="phpcode"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_connect&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'localhost'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_user'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_password'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;if (!&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$link&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) {&lt;br /&gt;  die(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'Could not connect: ' &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;. &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mydb'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* this should return the correct numbers of deleted records */&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'DELETE FROM mytable WHERE id &lt;&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Records deleted: %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_affected_rows&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* with a where clause that is never true, it should return 0 */&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'DELETE FROM mytable WHERE 0'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Records deleted: %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_affected_rows&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;     &lt;/div&gt;&lt;br /&gt;The above example will output something similar to:&lt;br /&gt;&lt;br /&gt;Records deleted: 10&lt;br /&gt;Records deleted: 0&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8718770654775182596?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8718770654775182596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8718770654775182596'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-function-mysqlaffectedrows.html' title='MySQL Function : mysql_affected_rows'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4934294629203916486</id><published>2009-09-25T00:18:00.002-07:00</published><updated>2009-09-25T00:19:13.648-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL : Have the new Query Analyzer graphs helped you solve development problems internally?</title><content type='html'>We use it about every day for our own products, specifically for finding performance issues in development. For example, one of the things we found in this release was that we had more updates than we expected compared to the previous version. We learned it because we saw a peak in “updates” in the row activity graph in the Enterprise Monitor. We highlighted the peak in the updates, and we figured out exactly which part of our code related to these updates through the Query Analyzer, and finally we fixed the problem. This process would have taken much longer if we did it manually because it was actually a certain set of updates that were increasing at a certain point of time, while other normal updates were happening at the same time. If we just looked at the logs, it wouldn't have been as obvious which one was causing that increase.&lt;br /&gt;&lt;br /&gt;In addition, our support team also runs the Query Analyzer on internal servers, and they actually found some problem queries. In some occasions they solve performance issues that they didn't know the root cause; in other situations they see the performance drop and have actually been able to tune some queries that they didn't even know were problematic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4934294629203916486?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4934294629203916486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4934294629203916486'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-have-new-query-analyzer-graphs.html' title='MySQL : Have the new Query Analyzer graphs helped you solve development problems internally?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4998519255467489637</id><published>2009-09-25T00:18:00.001-07:00</published><updated>2009-09-25T00:18:37.916-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL : How do the Query Analyzer graphs benefit customers?</title><content type='html'>It saves a lot of time. The first release of the Query Analyzer saved a lot of time by removing the need to send query activity to logs, gather all that information, and post-process the data in order to figure out which queries were running, how often and for how long. The logical next step was correlating this information with the metrics the Enterprise Monitor collects and displays the data with graphs. If you see something happening performance-wise in the Enterprise Monitor, using the correlation graphs you can very quickly see what queries were happening at that time, before that time or even after that time from a query perspective in the Query Analyzer. That was possible to do in our earlier release, except that it was a very manual process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4998519255467489637?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4998519255467489637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4998519255467489637'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-how-do-query-analyzer-graphs.html' title='MySQL : How do the Query Analyzer graphs benefit customers?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-478098520879904287</id><published>2009-09-25T00:14:00.000-07:00</published><updated>2009-09-25T00:18:03.592-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Database Tutorial'/><title type='text'>MySQL : What type of metrics can be correlated with the Query Analyzer?</title><content type='html'>Any graph you see, anything we collect – that could be anything from operating system metrics, such as CPU usage, memory usage, I/O counters, to MySQL-specific counters. You can look at the query profiles over time, i.e. how many selects and updates and other classes of queries were running at any point of time, connections created, threads created, InnoDB row accesses, buffer pool, locks taken over time -- all of these are implemented in this correlation graph feature.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-478098520879904287?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/478098520879904287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/478098520879904287'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/mysql-what-type-of-metrics-can-be.html' title='MySQL : What type of metrics can be correlated with the Query Analyzer?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1344737383816528790</id><published>2009-09-23T00:31:00.001-07:00</published><updated>2009-09-23T00:31:44.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Extended Events</title><content type='html'>&lt;p class="cueParagraph"&gt;The extended events infrastructure provides an in-depth troubleshooting tool that enables administrators to address difficult-to-solve problems more efficiently. Administrators can investigate excessive CPU usage, deadlocks, and application time outs as well as many other issues. Extended events data can be correlated with Windows events data to obtain a more complete picture that will aid in problem resolution.&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Provides detailed information about low level events in SQL Server&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Reduces the time required to troubleshoot complex problems&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Provides access to event data that has previously been difficult to obtain&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1344737383816528790?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1344737383816528790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1344737383816528790'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_4216.html' title='SQL Server 2008 Top New Features :Extended Events'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6853456756125115464</id><published>2009-09-23T00:30:00.000-07:00</published><updated>2009-09-23T00:31:10.070-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Backup Compression</title><content type='html'>Backup compression enables the backup of a database to be compressed without having to compress the database itself. All backup types, including log backups, are supported and data is automatically uncompressed upon restore.&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Save storage space&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Compressed backups can be stored on tape or on disk&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Simple configuration using SQL Server Management Studio&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Default state of all backups on a server to be compressed can be configured&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6853456756125115464?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6853456756125115464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6853456756125115464'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-backup.html' title='SQL Server 2008 Top New Features :Backup Compression'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7198756905988667011</id><published>2009-09-23T00:29:00.002-07:00</published><updated>2009-09-23T00:30:31.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Partition Aligned Indexed Views</title><content type='html'>&lt;p class="cueParagraph"&gt;Indexed Views let SQL Server persist the results of a view, instead of having to dynamically combine the results from the individual queries in the view definition. Indexed Views can now be created to follow the partitioning scheme of the table that they reference. Indexed views that are aligned in this manner do not need to be dropped before a partition is switched out of the partitioned table, as was the case with SQL Server 2005 indexed views.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Indexed views improve performance with very large partitioned tables, such as fact tables in data warehouses.&lt;/li&gt;&lt;/ul&gt;&lt;p class="cueParagraph"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7198756905988667011?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7198756905988667011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7198756905988667011'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_1458.html' title='SQL Server 2008 Top New Features :Partition Aligned Indexed Views'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-341211845223793906</id><published>2009-09-23T00:29:00.001-07:00</published><updated>2009-09-23T00:29:49.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Upgrade Advisor</title><content type='html'>The Upgrade Advisor generates a report that highlights any issues that might hinder an upgrade. This provides administrators detailed information that can be used to prepare for upgrades.&lt;br /&gt;&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Helps streamline the upgrade process by identifying upgrade issues in advance&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Can be used to analyze both local and remote systems&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Upgrade Advisor reports provide links to technical information that assist in addressing upgrade problems&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-341211845223793906?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/341211845223793906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/341211845223793906'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_5047.html' title='SQL Server 2008 Top New Features :Upgrade Advisor'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4793499074600357987</id><published>2009-09-23T00:28:00.000-07:00</published><updated>2009-09-23T00:29:06.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Server Group Management</title><content type='html'>&lt;p class="cueParagraph"&gt;Server Group management enables T-SQL queries to be issued against multiple servers from a single Central Management Server, which simplifies administration. Stream results of multi-server queries into a single result set or into multiple result sets enables the option of evaluating policies against a server group.&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Management is centralized, so servers do not need to be configured individually&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Provides a simpler administration model for policy evaluation&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4793499074600357987?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4793499074600357987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4793499074600357987'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-server.html' title='SQL Server 2008 Top New Features :Server Group Management'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6057352247702452598</id><published>2009-09-23T00:27:00.000-07:00</published><updated>2009-09-23T00:28:27.940-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features : Streamlined Installation</title><content type='html'>The SQL Server 2008 installation process has been streamlined to be easier and more efficient. Individual SQL Server components, such as Database Services, Analysis Services, and Integration Services, can be optionally selected for installation. Failover cluster support configuration has also been added to the installation.&lt;br /&gt;&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Easier to install SQL Server&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Setup now advises of configuration problems such as installation pre-requisites, which helps streamline the installation process&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6057352247702452598?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6057352247702452598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6057352247702452598'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_4491.html' title='SQL Server 2008 Top New Features : Streamlined Installation'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8311770790413704167</id><published>2009-09-23T00:26:00.002-07:00</published><updated>2009-09-23T00:27:35.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features: Hot-Add CPUs and Hot-Add Memory</title><content type='html'>&lt;p class="cueParagraph"&gt;Hot-add CPUs, a feature available with the 64-bit edition SQL Server Enterprise, allows CPUs to be dynamically added to servers as needed, without the need to shut down the server or limit client connections. Hot-add memory enables memory to be added in the same way.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Dynamically add memory and processors to servers without incurring downtime&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8311770790413704167?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8311770790413704167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8311770790413704167'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-hot.html' title='SQL Server 2008 Top New Features: Hot-Add CPUs and Hot-Add Memory'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1497605012193123776</id><published>2009-09-23T00:26:00.001-07:00</published><updated>2009-09-23T00:26:46.990-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features : Data Auditing</title><content type='html'>&lt;p class="cueParagraph"&gt;Data Auditing provides a simple way to track and log events relating to your databases and servers. You can audit logons, password changes, data access and modification, and many other events. Tracking these events helps maintain security and can also provide valuable troubleshooting information. The results of audits can be saved to file or to the Windows Security or Application logs for later analysis or archiving.&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Enables compliance with security regulations&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Simple configuration using SQL Server Management Studio&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Minimal impact on performance because audit data is stored outside of SQL Server database files&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1497605012193123776?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1497605012193123776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1497605012193123776'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-data_23.html' title='SQL Server 2008 Top New Features : Data Auditing'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6808073512482744640</id><published>2009-09-23T00:25:00.001-07:00</published><updated>2009-09-23T00:25:59.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>External Key Management / Extensible Key Management</title><content type='html'>External Key Management enables certificates and encryption keys to be stored using third-party hardware security modules that are designed specifically for this purpose. Storing the keys separately from the data enables a more extensible and robust security architecture.&lt;br /&gt;&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Helps organizations comply with data privacy regulations&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Reduces administration requirements when there are multiple keys and certificates to manage&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Standard interface supports third party hardware security modules&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6808073512482744640?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6808073512482744640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6808073512482744640'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/external-key-management-extensible-key.html' title='External Key Management / Extensible Key Management'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7585851928272306345</id><published>2009-09-23T00:24:00.002-07:00</published><updated>2009-09-23T00:25:23.138-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features : Transparent Data Encryption</title><content type='html'>&lt;p class="cueParagraph"&gt;Transparent Data Encryption enables data to be stored securely by encrypting the database files. If the disks that contain database files become compromised, data in those files is protected because that data can only be de-encrypted by an authorized agent. SQL Server performs the encryption and de-encryption directly, so the process is entirely transparent to connecting applications. Applications can continue to read and write data to and from the database as they normally would. Backup copies of encrypted database files are also automatically encrypted.&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Implements strong encryption keys and certificates to secure data&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Applications do not need to be modified to support Transparent Data Encryption&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Enables compliance with data privacy regulations&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Does not increase the size of the database&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7585851928272306345?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7585851928272306345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7585851928272306345'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_6902.html' title='SQL Server 2008 Top New Features : Transparent Data Encryption'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7218294574967220982</id><published>2009-09-23T00:24:00.001-07:00</published><updated>2009-09-23T00:24:42.227-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Resource Governor</title><content type='html'>&lt;p class="cueParagraph"&gt;The Resource Governor enables administrators to control and allocate CPU and memory resources to high priority applications. This enables predictable performance to be maintained and helps avoid performance from being negatively affected by resource-intense applications or processes&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Prioritize applications, users, and computers competing for the same resources&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Prevent runaway queries that hold resources for extended periods of time&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Limitations are not enforced when there is no competition for resources&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7218294574967220982?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7218294574967220982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7218294574967220982'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features_23.html' title='SQL Server 2008 Top New Features :Resource Governor'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5338120027682587464</id><published>2009-09-23T00:23:00.001-07:00</published><updated>2009-09-23T00:23:57.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features :Data Compression</title><content type='html'>&lt;p class="cueParagraph"&gt;Data compression reduces the amount of storage space needed to store tables and indexes, which enables more efficient storage of data. Data Compression does not require changes be made to applications in order to be enabled.&lt;br /&gt;&lt;/p&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Save disk storage&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Enable compression option for individual tables or indexes&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Configuration is easy using the Data Compression wizard&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Applications do not need to be reconfigured as SQL Server handles compression and decompression of data&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Compression can improve disk I/O and memory utilization&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p class="cueParagraph"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5338120027682587464?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5338120027682587464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5338120027682587464'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-data.html' title='SQL Server 2008 Top New Features :Data Compression'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2102847513753154612</id><published>2009-09-23T00:22:00.000-07:00</published><updated>2009-09-23T00:23:12.051-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features : Performance Data Collection (Data Collector)</title><content type='html'>The Data Collector provides a convenient way to collect, store, and view performance data automatically. It collects disk usage, server activity, and query statistics data, which it loads in a management data warehouse and performance data can be reviewed in SQL Server Management Studio or by using third-party tools.&lt;br /&gt;&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Setup wizard makes configuration simple&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Data collection is automated by using set of SQL Server Agent jobs and SQL Server Integration Services packages&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Management is centralized so data collection can be easily configured and results can be viewed in one place&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Performance impact is minimal because the data collected can be cached and uploaded to the data warehouse later&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2102847513753154612?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2102847513753154612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2102847513753154612'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features.html' title='SQL Server 2008 Top New Features : Performance Data Collection (Data Collector)'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6374441153612585357</id><published>2009-09-23T00:20:00.000-07:00</published><updated>2009-09-23T00:22:08.081-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Top New Features'/><title type='text'>SQL Server 2008 Top New Features : Policy-Based Management</title><content type='html'>Policy-Based Management enables the efficient management of multiple SQL Server instances from a single location. Easily create policies that control security, database options, object naming conventions, and other settings at a highly granular level. Policies can evaluate servers for compliance with a set of predefined conditions and prevent undesirable changes being made to servers.&lt;br /&gt;&lt;br /&gt;&lt;div class="cueListContainer"&gt;&lt;ul class="cueUnorderedList"&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Management is centralized, thereby reducing the need to configure each server separately&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Administration is simplified, reducing the effort required to maintain standardization and compliance, even in complex environments&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Configuration is straightforward and can be done entirely within SQL Server Management Studio&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Out-of-the-box predefined policies make it easy to get started&lt;/p&gt;&lt;/li&gt;&lt;li class="cueListItem"&gt;&lt;p class="cueParagraph"&gt;Backwards compatibility supports managing instances of SQL Server 2008, SQL Server 2005, and SQL Server 2000&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6374441153612585357?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6374441153612585357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6374441153612585357'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/09/sql-server-2008-top-new-features-policy.html' title='SQL Server 2008 Top New Features : Policy-Based Management'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2401702706063936836</id><published>2009-08-04T01:59:00.001-07:00</published><updated>2009-08-04T01:59:47.832-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Management'/><title type='text'>When a query is sent to the database and an index is notbeing used, what type of execution is taking place?</title><content type='html'>A table scans&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2401702706063936836?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2401702706063936836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2401702706063936836'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/08/when-query-is-sent-to-database-and.html' title='When a query is sent to the database and an index is notbeing used, what type of execution is taking place?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5439663425573105804</id><published>2009-08-04T01:58:00.001-07:00</published><updated>2009-08-04T01:59:09.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Management'/><title type='text'>What are the pros and cons of using triggers?</title><content type='html'>Expected answer:&lt;br /&gt;&lt;br /&gt;A trigger is one or more statements of SQL that are being executed in event of data modification in a table to which the trigger belongs. Triggers enhance the security, efficiency, and standardization of databases.&lt;br /&gt;Triggers can be beneficial when used:&lt;br /&gt;&lt;br /&gt;– to check or modify values before they are actually updated or inserted in the database. This is useful if you need to transform data from the way the user sees it to some internal database format.&lt;br /&gt;&lt;br /&gt;– to run other non-database operations coded in user-defined functions&lt;br /&gt;&lt;br /&gt;– to update data in other tables. This is useful for maintaining relationships between data or in keeping audit trail information.&lt;br /&gt;&lt;br /&gt;– To check against other data in the table or in other tables. This is useful to ensure data integrity when referential integrity constraints aren’t appropriate, or when table check constraints limit checking to the current table only.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5439663425573105804?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5439663425573105804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5439663425573105804'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/08/what-are-pros-and-cons-of-using.html' title='What are the pros and cons of using triggers?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5383737418258702493</id><published>2009-03-25T23:19:00.001-07:00</published><updated>2009-03-25T23:19:33.065-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What are the advantages of views?</title><content type='html'>- Provide an additional level of table security, by restricting access to a predetermined set of rows and columns of a table.&lt;br /&gt;- Hide data complexity.&lt;br /&gt;- Simplify commands for the user.&lt;br /&gt;- Present the data in a different perspective from that of the base table.&lt;br /&gt;- Store complex queries.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5383737418258702493?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5383737418258702493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5383737418258702493'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-are-advantages-of-views.html' title='What are the advantages of views?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8848034936039799472</id><published>2009-03-25T23:18:00.002-07:00</published><updated>2009-03-25T23:19:05.697-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is an Oracle sequence?</title><content type='html'>A sequence generates a serial list of unique numbers for numerical columns of a database's tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8848034936039799472?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8848034936039799472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8848034936039799472'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-oracle-sequence.html' title='What is an Oracle sequence?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2022796281375827979</id><published>2009-03-25T23:18:00.001-07:00</published><updated>2009-03-25T23:18:37.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>Can a view based on another view?</title><content type='html'>Can a view based on another view?&lt;br /&gt;Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2022796281375827979?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2022796281375827979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2022796281375827979'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/can-view-based-on-another-view.html' title='Can a view based on another view?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5777210498933430230</id><published>2009-03-25T23:17:00.004-07:00</published><updated>2009-03-25T23:18:17.606-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>Do a view contain data?</title><content type='html'>Views do not contain or store data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5777210498933430230?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5777210498933430230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5777210498933430230'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/do-view-contain-data.html' title='Do a view contain data?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1433162757641766786</id><published>2009-03-25T23:17:00.003-07:00</published><updated>2009-03-25T23:17:55.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is an Oracle view?</title><content type='html'>A view is a virtual table. Every view has a query attached to it. (The query is a SELECT statement that identifies the columns and rows of the table(s) the view uses.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1433162757641766786?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1433162757641766786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1433162757641766786'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-oracle-view.html' title='What is an Oracle view?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8440541753542526450</id><published>2009-03-25T23:17:00.001-07:00</published><updated>2009-03-25T23:17:24.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is Oracle table?</title><content type='html'>A table is the basic unit of data storage in an Oracle database. The tables of a database hold all of the user accessible data. Table data is stored in rows and columns.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8440541753542526450?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8440541753542526450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8440541753542526450'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-oracle-table.html' title='What is Oracle table?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7838281379414417782</id><published>2009-03-25T23:16:00.003-07:00</published><updated>2009-03-25T23:16:59.078-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>Can a tablespace hold objects from different schemes?</title><content type='html'>Can a tablespace hold objects from different schemes?&lt;br /&gt;Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7838281379414417782?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7838281379414417782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7838281379414417782'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/can-tablespace-hold-objects-from.html' title='Can a tablespace hold objects from different schemes?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1811053021779606828</id><published>2009-03-25T23:16:00.001-07:00</published><updated>2009-03-25T23:16:37.958-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>Can objects of the same schema reside in different table spaces?</title><content type='html'>Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1811053021779606828?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1811053021779606828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1811053021779606828'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/can-objects-of-same-schema-reside-in.html' title='Can objects of the same schema reside in different table spaces?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8963683885173505994</id><published>2009-03-25T23:15:00.002-07:00</published><updated>2009-03-25T23:16:14.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What are Schema Objects?</title><content type='html'>Schema objects are the logical structures that directly refer to the database's data. Schema objects include tables, views, sequences, synonyms, indexes, clusters, database triggers, procedures, functions packages and database links.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8963683885173505994?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8963683885173505994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8963683885173505994'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-are-schema-objects.html' title='What are Schema Objects?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-482584125540693896</id><published>2009-03-25T23:15:00.001-07:00</published><updated>2009-03-25T23:15:36.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is schema?</title><content type='html'>A schema is collection of database objects of a user.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-482584125540693896?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/482584125540693896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/482584125540693896'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-schema.html' title='What is schema?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2176814739336339884</id><published>2009-03-25T23:14:00.002-07:00</published><updated>2009-03-25T23:15:15.503-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>Explain the relationship among database, tablespace and data file.</title><content type='html'>Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2176814739336339884?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2176814739336339884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2176814739336339884'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/explain-relationship-among-database.html' title='Explain the relationship among database, tablespace and data file.'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5777924975665974343</id><published>2009-03-25T23:14:00.001-07:00</published><updated>2009-03-25T23:14:36.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is SYSTEM tablespace and when is it created?</title><content type='html'>Every Oracle database contains a tablespace named SYSTEM, which is automatically&lt;br /&gt;created when the database is created. The SYSTEM tablespace always contains the data&lt;br /&gt;dictionary tables for the entire database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5777924975665974343?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5777924975665974343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5777924975665974343'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-system-tablespace-and-when-is.html' title='What is SYSTEM tablespace and when is it created?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3980346368917853464</id><published>2009-03-25T23:13:00.000-07:00</published><updated>2009-03-25T23:14:06.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What is a tablespace?</title><content type='html'>A database is divided into Logical Storage Unit called tablespaces.&lt;br /&gt;A tablespace is used to grouped related logical structures together.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3980346368917853464?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3980346368917853464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3980346368917853464'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-is-tablespace.html' title='What is a tablespace?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3577249857337137194</id><published>2009-03-25T23:12:00.000-07:00</published><updated>2009-03-25T23:13:23.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What are the components of logical database structure of Oracle database?</title><content type='html'>There are tablespaces and database's schema objects.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3577249857337137194?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3577249857337137194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3577249857337137194'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-are-components-of-logical-database.html' title='What are the components of logical database structure of Oracle database?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5500300451458427960</id><published>2009-03-25T23:11:00.000-07:00</published><updated>2009-03-25T23:12:45.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts and Architecture'/><title type='text'>What are the components of physical database structure of Oracle database?</title><content type='html'>Oracle database is comprised of three types of files. One or more data files, two are more redo log files, and one or more control files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5500300451458427960?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5500300451458427960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5500300451458427960'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/03/what-are-components-of-physical.html' title='What are the components of physical database structure of Oracle database?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3735445705878743237</id><published>2009-02-26T03:16:00.001-08:00</published><updated>2009-02-26T03:16:58.724-08:00</updated><title type='text'>Introduction to Full-Text Search -In Microsoft SQL Server 2005</title><content type='html'>Full-text search allows fast and flexible indexing for keyword-based query of text data stored in a Microsoft SQL Server database. In contrast to the LIKE predicate, which only works on character patterns, full-text queries perform linguistic searches against this data, by operating on words and phrases based on rules of a particular language.&lt;br /&gt;&lt;br /&gt;In Microsoft SQL Server 2005, full-text search delivers enterprise search functionality. Significant enhancements in the areas of performance, manageability, and functionality deliver exceptional search capabilities for applications of any size.&lt;br /&gt;&lt;br /&gt;The performance benefit of using full-text search can be best realized when querying against a large amount of unstructured text data. A LIKE query against millions of rows of text data can take minutes to return; whereas a full-text query can take only seconds or less against the same data, depending on the number of rows that are returned.&lt;br /&gt;&lt;br /&gt;You can build full-text indexes on columns that contain char, varchar and nvarchar data. Full-text indexes can also be built on columns that contain formatted binary data, such as Microsoft Word documents, stored in a varbinary(max) or image column. You cannot use the LIKE predicate to query formatted binary data.&lt;br /&gt;&lt;br /&gt;To create a full-text index on a table, the table must have a single, unique not null column. For example, consider a full-text index for the Document table in Adventure Works in which the DocumentID column is the primary key column. A full-text index indicates that the word "instructions" is found at word number 24 and word number 44 in the DocumentSummary column for the row associated with a DocumentID of 3. This index structure supports an efficient search for all items containing indexed words and advanced search operations, such as phrase searches and proximity searches. For more information, see Document Table (AdventureWorks).&lt;br /&gt;&lt;br /&gt;When processing a full-text query, the search engine returns to SQL Server the key values of the rows that match the search criteria. If you want to use a full-text query to find the documents that include the word "instructions", the DocumentID values of 3, 4, 6, 7 and 8 are obtained from the full-text index. SQL Server then uses these keys to return the matching rows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3735445705878743237?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3735445705878743237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3735445705878743237'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/introduction-to-full-text-search-in.html' title='Introduction to Full-Text Search -In Microsoft SQL Server 2005'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5662704839299319410</id><published>2009-02-26T03:12:00.000-08:00</published><updated>2009-02-26T03:14:59.608-08:00</updated><title type='text'>Using SESSION_USER to return the user name of the current session</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Examples&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following example declares a variable as nchar, assigns the current value of SESSION_USER to that variable, and then prints the variable with a text description.&lt;br /&gt;&lt;br /&gt;DECLARE @session_usr nchar(30);&lt;br /&gt;SET @session_usr = SESSION_USER;&lt;br /&gt;SELECT 'This session''s current user is: '+ @session_usr;&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5662704839299319410?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5662704839299319410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5662704839299319410'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/using-sessionuser-to-return-user-name.html' title='Using SESSION_USER to return the user name of the current session'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4412192801095126219</id><published>2009-02-26T03:11:00.000-08:00</published><updated>2009-02-26T03:12:46.455-08:00</updated><title type='text'>ISDATE() TSQL Return Value</title><content type='html'>&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;Column value (varchar)              &lt;/th&gt;&lt;th&gt;               ISDATE return value             &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;NULL&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;Abc&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;100, -100, 100 a, or 100.00&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;.01&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;-100.1234e-123&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;.231e90&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;$100.12345, - $100.12345, or $-1000.123&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;as100 or 1a00&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;1995-10-1, 1/20/95, 1995-10-1 12:00pm, Feb 7 1995 11:00pm, 1995-10-1, or 1/23/95&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;1&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;13/43/3425 or 1995-10-1a&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;           &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;             &lt;p&gt;$1000, $100, or $100 a&lt;/p&gt;           &lt;/td&gt;&lt;td&gt;             &lt;p&gt;0&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4412192801095126219?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4412192801095126219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4412192801095126219'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/isdate-tsql-return-value.html' title='ISDATE() TSQL Return Value'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4390050090326092443</id><published>2009-02-26T03:10:00.001-08:00</published><updated>2009-02-26T03:10:59.186-08:00</updated><title type='text'>HOST_ID() -TSQL Example</title><content type='html'>The following example creates a table that uses HOST_ID() in a DEFAULT definition to record the terminal ID of computers that insert rows into a table recording orders.&lt;br /&gt;&lt;br /&gt;CREATE TABLE Orders&lt;br /&gt;   (OrderID     int       PRIMARY KEY,&lt;br /&gt;    CustomerID  nchar(5)  REFERENCES Customers(CustomerID),&lt;br /&gt;    TerminalID  char(8)   NOT NULL DEFAULT HOST_ID(),&lt;br /&gt;    OrderDate   datetime  NOT NULL,&lt;br /&gt;    ShipDate    datetime  NULL,&lt;br /&gt;    ShipperID   int       NULL REFERENCES Shippers(ShipperID));&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4390050090326092443?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4390050090326092443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4390050090326092443'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/hostid-tsql-example.html' title='HOST_ID() -TSQL Example'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1007188814118802909</id><published>2009-02-26T03:08:00.000-08:00</published><updated>2009-02-26T03:10:15.107-08:00</updated><title type='text'>HOST_NAME() T-SQL Example</title><content type='html'>&lt;pre class="libCScode" style="white-space: pre-wrap;" id="ctl00_rs1_mainContentContainer_ctl14other" space="preserve"&gt;Examples  &lt;a id="sectionToggle1"&gt;&lt;!----&gt;&lt;/a&gt;&lt;br /&gt;     &lt;/pre&gt;&lt;p&gt;The following example creates a table that uses &lt;code style="font-weight: bold;"&gt;HOST_NAME()&lt;/code&gt; in a &lt;code&gt;DEFAULT&lt;/code&gt; definition to record the workstation name of computers that insert rows into a table recording orders.&lt;br /&gt;&lt;/p&gt;&lt;pre class="libCScode" style="white-space: pre-wrap;" id="ctl00_rs1_mainContentContainer_ctl14other" space="preserve"&gt;CREATE TABLE Orders&lt;br /&gt;  (OrderID     int        PRIMARY KEY,&lt;br /&gt;   CustomerID  nchar(5)   REFERENCES Customers(CustomerID),&lt;br /&gt;   Workstation nchar(30)  NOT NULL DEFAULT HOST_NAME(),&lt;br /&gt;   OrderDate   datetime   NOT NULL,&lt;br /&gt;   ShipDate    datetime   NULL,&lt;br /&gt;   ShipperID   int        NULL REFERENCES Shippers(ShipperID));&lt;br /&gt;GO&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1007188814118802909?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1007188814118802909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1007188814118802909'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/hostname-t-sql-example.html' title='HOST_NAME() T-SQL Example'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5803045877416641137</id><published>2009-02-26T03:06:00.000-08:00</published><updated>2009-02-26T03:07:16.450-08:00</updated><title type='text'>Wildcard character - TSQL</title><content type='html'>&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;Wildcard character                 &lt;/th&gt;&lt;th&gt;                   Description                 &lt;/th&gt;&lt;th&gt;                   Example                 &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;                 &lt;p&gt;%&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;Any string of zero or more characters.&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;WHERE title LIKE '%computer%' finds all book titles with the word 'computer' anywhere in the book title.&lt;/p&gt;               &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;                 &lt;p&gt;_ (underscore)&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;Any single character.&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;WHERE au_fname LIKE '_ean' finds all four-letter first names that end with ean (Dean, Sean, and so on).&lt;/p&gt;               &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;                 &lt;p&gt;[ ]&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;Any single character within the specified range ([a-f]) or set ([abcdef]).&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;WHERE au_lname LIKE '[C-P]arsen' finds author last names ending with arsen and starting with any single character between C and P, for example Carsen, Larsen, Karsen, and so on.&lt;/p&gt;               &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;                 &lt;p&gt;[^]&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;Any single character not within the specified range ([^a-f]) or set ([^abcdef]).&lt;/p&gt;               &lt;/td&gt;&lt;td&gt;                 &lt;p&gt;WHERE au_lname LIKE 'de[^l]%' all author last names starting with de and where the following letter is not l.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5803045877416641137?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5803045877416641137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5803045877416641137'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/wildcard-character-tsql.html' title='Wildcard character - TSQL'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-4846995711763856666</id><published>2009-02-25T09:17:00.001-08:00</published><updated>2009-02-25T09:17:37.140-08:00</updated><title type='text'>Example:t-SQL Using generic syntax for finding gaps in identity values</title><content type='html'>-- Here is the generic syntax for finding identity value gaps in data.&lt;br /&gt;-- The illustrative example starts here.&lt;br /&gt;SET IDENTITY_INSERT tablename ON&lt;br /&gt;DECLARE @minidentval column_type&lt;br /&gt;DECLARE @maxidentval column_type&lt;br /&gt;DECLARE @nextidentval column_type&lt;br /&gt;SELECT @minidentval = MIN($IDENTITY), @maxidentval = MAX($IDENTITY)&lt;br /&gt;    FROM tablename&lt;br /&gt;IF @minidentval = IDENT_SEED('tablename')&lt;br /&gt;   SELECT @nextidentval = MIN($IDENTITY) + IDENT_INCR('tablename')&lt;br /&gt;   FROM tablename t1&lt;br /&gt;   WHERE $IDENTITY BETWEEN IDENT_SEED('tablename') AND &lt;br /&gt;      @maxidentval AND&lt;br /&gt;      NOT EXISTS (SELECT * FROM tablename t2&lt;br /&gt;         WHERE t2.$IDENTITY = t1.$IDENTITY + &lt;br /&gt;            IDENT_INCR('tablename'))&lt;br /&gt;ELSE&lt;br /&gt;   SELECT @nextidentval = IDENT_SEED('tablename')&lt;br /&gt;SET IDENTITY_INSERT tablename OFF&lt;br /&gt;-- Here is an example to find gaps in the actual data.&lt;br /&gt;-- The table is called img and has two columns: the first column &lt;br /&gt;-- called id_num, which is an increasing identification number, and the &lt;br /&gt;-- second column called company_name.&lt;br /&gt;-- This is the end of the illustration example.&lt;br /&gt;&lt;br /&gt;-- Create the img table.&lt;br /&gt;-- If the img table already exists, drop it.&lt;br /&gt;-- Create the img table.&lt;br /&gt;IF OBJECT_ID ('dbo.img', 'U') IS NOT NULL&lt;br /&gt;   DROP TABLE img&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE img (id_num int IDENTITY(1,1), company_name sysname)&lt;br /&gt;INSERT img(company_name) VALUES ('New Moon Books')&lt;br /&gt;INSERT img(company_name) VALUES ('Lucerne Publishing')&lt;br /&gt;-- SET IDENTITY_INSERT ON and use in img table.&lt;br /&gt;SET IDENTITY_INSERT img ON&lt;br /&gt;&lt;br /&gt;DECLARE @minidentval smallint&lt;br /&gt;DECLARE @nextidentval smallint&lt;br /&gt;SELECT @minidentval = MIN($IDENTITY) FROM img&lt;br /&gt; IF @minidentval = IDENT_SEED('img')&lt;br /&gt;    SELECT @nextidentval = MIN($IDENTITY) + IDENT_INCR('img')&lt;br /&gt;    FROM img t1&lt;br /&gt;    WHERE $IDENTITY BETWEEN IDENT_SEED('img') AND 32766 AND&lt;br /&gt;      NOT    EXISTS (SELECT * FROM img t2&lt;br /&gt;          WHERE t2.$IDENTITY = t1.$IDENTITY + IDENT_INCR('img'))&lt;br /&gt; ELSE&lt;br /&gt;    SELECT @nextidentval = IDENT_SEED('img')&lt;br /&gt;SET IDENTITY_INSERT img OFF&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-4846995711763856666?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4846995711763856666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/4846995711763856666'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/examplet-sql-using-generic-syntax-for.html' title='Example:t-SQL Using generic syntax for finding gaps in identity values'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6553002675313289311</id><published>2009-02-25T09:15:00.000-08:00</published><updated>2009-02-25T09:16:39.509-08:00</updated><title type='text'>Examples :Using the IDENTITY property with CREATE TABLE</title><content type='html'>T-SQL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;USE AdventureWorks&lt;br /&gt;IF OBJECT_ID ('dbo.new_employees', 'U') IS NOT NULL&lt;br /&gt;   DROP TABLE new_employees&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE new_employees&lt;br /&gt;(&lt;br /&gt; id_num int IDENTITY(1,1),&lt;br /&gt; fname varchar (20),&lt;br /&gt; minit char(1),&lt;br /&gt; lname varchar(30)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;INSERT new_employees&lt;br /&gt;   (fname, minit, lname)&lt;br /&gt;VALUES&lt;br /&gt;   ('Karin', 'F', 'Josephs')&lt;br /&gt;&lt;br /&gt;INSERT new_employees&lt;br /&gt;   (fname, minit, lname)&lt;br /&gt;VALUES&lt;br /&gt;   ('Pirkko', 'O', 'Koskitalo')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6553002675313289311?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6553002675313289311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6553002675313289311'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/examples-using-identity-property-with.html' title='Examples :Using the IDENTITY property with CREATE TABLE'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6549869372252265255</id><published>2009-02-25T09:14:00.000-08:00</published><updated>2009-02-25T09:15:15.094-08:00</updated><title type='text'>Examples :Listing the advanced configuration options</title><content type='html'>USE master;&lt;br /&gt;GO&lt;br /&gt;EXEC sp_configure 'show advanced option', '1';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6549869372252265255?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6549869372252265255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6549869372252265255'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/examples-listing-advanced-configuration.html' title='Examples :Listing the advanced configuration options'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7268915014388427152</id><published>2009-02-25T09:13:00.001-08:00</published><updated>2009-02-25T09:13:58.798-08:00</updated><title type='text'>Example : Using nested cursors to produce report output</title><content type='html'>SET NOCOUNT ON&lt;br /&gt;&lt;br /&gt;DECLARE @vendor_id int, @vendor_name nvarchar(50),&lt;br /&gt;    @message varchar(80), @product nvarchar(50)&lt;br /&gt;&lt;br /&gt;PRINT '-------- Vendor Products Report --------'&lt;br /&gt;&lt;br /&gt;DECLARE vendor_cursor CURSOR FOR &lt;br /&gt;SELECT VendorID, Name&lt;br /&gt;FROM Purchasing.Vendor&lt;br /&gt;WHERE PreferredVendorStatus = 1&lt;br /&gt;ORDER BY VendorID&lt;br /&gt;&lt;br /&gt;OPEN vendor_cursor&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM vendor_cursor &lt;br /&gt;INTO @vendor_id, @vendor_name&lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0&lt;br /&gt;BEGIN&lt;br /&gt;    PRINT ' '&lt;br /&gt;    SELECT @message = '----- Products From Vendor: ' + &lt;br /&gt;        @vendor_name&lt;br /&gt;&lt;br /&gt;    PRINT @message&lt;br /&gt;&lt;br /&gt;    -- Declare an inner cursor based   &lt;br /&gt;    -- on vendor_id from the outer cursor.&lt;br /&gt;&lt;br /&gt;    DECLARE product_cursor CURSOR FOR &lt;br /&gt;    SELECT v.Name&lt;br /&gt;    FROM Purchasing.ProductVendor pv, Production.Product v&lt;br /&gt;    WHERE pv.ProductID = v.ProductID AND&lt;br /&gt;    pv.VendorID = @vendor_id  -- Variable value from the outer cursor&lt;br /&gt;&lt;br /&gt;    OPEN product_cursor&lt;br /&gt;    FETCH NEXT FROM product_cursor INTO @product&lt;br /&gt;&lt;br /&gt;    IF @@FETCH_STATUS &lt;&gt; 0 &lt;br /&gt;        PRINT '         &lt;&lt;None&gt;&gt;'     &lt;br /&gt;&lt;br /&gt;    WHILE @@FETCH_STATUS = 0&lt;br /&gt;    BEGIN&lt;br /&gt;&lt;br /&gt;        SELECT @message = '         ' + @product&lt;br /&gt;        PRINT @message&lt;br /&gt;        FETCH NEXT FROM product_cursor INTO @product&lt;br /&gt;        END&lt;br /&gt;&lt;br /&gt;    CLOSE product_cursor&lt;br /&gt;    DEALLOCATE product_cursor&lt;br /&gt;        -- Get the next vendor.&lt;br /&gt;    FETCH NEXT FROM vendor_cursor &lt;br /&gt;    INTO @vendor_id, @vendor_name&lt;br /&gt;END &lt;br /&gt;CLOSE vendor_cursor&lt;br /&gt;DEALLOCATE vendor_cursor&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7268915014388427152?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7268915014388427152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7268915014388427152'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/example-using-nested-cursors-to-produce.html' title='Example : Using nested cursors to produce report output'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8849706354128671249</id><published>2009-02-25T09:12:00.000-08:00</published><updated>2009-02-25T09:13:16.808-08:00</updated><title type='text'>Examples :Using simple cursor and syntax</title><content type='html'>Examples :Using simple cursor and syntax&lt;br /&gt;&lt;br /&gt;DECLARE vend_cursor CURSOR&lt;br /&gt;    FOR SELECT * FROM Purchasing.Vendor&lt;br /&gt;OPEN vend_cursor&lt;br /&gt;FETCH NEXT FROM vend_cursor&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8849706354128671249?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8849706354128671249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8849706354128671249'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/examples-using-simple-cursor-and-syntax.html' title='Examples :Using simple cursor and syntax'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-845961963876045169</id><published>2009-02-25T09:10:00.000-08:00</published><updated>2009-02-25T09:12:03.643-08:00</updated><title type='text'>System stored procedures Description</title><content type='html'>sp_cursor_list&lt;br /&gt;Returns a list of cursors currently visible on the connection and their attributes.&lt;br /&gt;&lt;br /&gt;sp_describe_cursor&lt;br /&gt;Describes the attributes of a cursor, such as whether it is a forward-only or scrolling cursor.&lt;br /&gt;&lt;br /&gt;sp_describe_cursor_columns&lt;br /&gt;Describes the attributes of the columns in the cursor result set.&lt;br /&gt;&lt;br /&gt;sp_describe_cursor_tables&lt;br /&gt;Describes the base tables accessed by the cursor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-845961963876045169?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/845961963876045169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/845961963876045169'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2009/02/system-stored-procedures-description.html' title='System stored procedures Description'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1313289301596090858</id><published>2008-12-18T09:08:00.000-08:00</published><updated>2008-12-18T09:12:35.905-08:00</updated><title type='text'>LINQ programming model</title><content type='html'>&lt;div style="text-align: justify;"&gt;LINQ is a programming model that introduces queries as a first-class concept into any Microsoft .NET language. However, complete support for LINQ requires some extensions in the language used. These extensions boost productivity, thereby providing a shorter, meaningful,and expressive syntax to manipulate data.&lt;br /&gt;&lt;br /&gt;Following is a simple LINQ query for a typical software solution that returns the names of customers in Italy:&lt;br /&gt;var query =&lt;br /&gt;from c in Customers&lt;br /&gt;where c.Country == "Italy"&lt;br /&gt;select c.CompanyName;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do not worry about syntax and keywords (such as var) for now. The result of this query is a&lt;br /&gt;list of strings. You can enumerate these values with a foreach loop in C#:&lt;br /&gt;&lt;br /&gt;foreach ( string name in query ) {&lt;br /&gt;Console.WriteLine( name );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Both the query definition and the foreach loop just shown are regular C# 3.0 statements. At&lt;br /&gt;this point, you might wonder what we are querying. What is Customers? Is this query a new&lt;br /&gt;form of embedded SQL? Not at all. The same query (and the following foreach code) can be&lt;br /&gt;applied to an SQL database, to a DataSet, to an array of objects in memory, or to many other&lt;br /&gt;kinds of data. Customers could be a collection of objects:&lt;br /&gt;&lt;br /&gt;Customer[] Customers;&lt;br /&gt;Customers could be a DataTable in a DataSet:&lt;br /&gt;DataSet ds = GetDataSet();&lt;br /&gt;DataTable Customers = ds.Tables["Customers"];&lt;br /&gt;&lt;br /&gt;Customers could be an entity class that describes a physical table in a relational database:&lt;br /&gt;DataContext db = new DataContext( ConnectionString );&lt;br /&gt;Table&lt;customer&gt; Customers = db.GetTable&lt;customer&gt;();&lt;br /&gt;Finally, Customers could be an entity class that describes a conceptual model and is mapped to&lt;br /&gt;a relational database:&lt;br /&gt;NorthwindModel dataModel = new NorthwindModel();&lt;br /&gt;ObjectQuery&lt;customer&gt; Customers = dataModel.Customers;&lt;br /&gt;&lt;br /&gt;As you will see, the SQL-like syntax used in LINQ is called a query expression. Languages thatimplement embedded SQL define only a simplified syntax to put SQL statements into a different language, but these statements are not integrated into the language’s native syntax and&lt;br /&gt;type system. For example, you cannot call a function written using the host language in the middle of an SQL statement, although this is possible in LINQ. Moreover, LINQ is not limited to querying databases, as embedded SQL&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1313289301596090858?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1313289301596090858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1313289301596090858'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/12/linq-programming-model.html' title='LINQ programming model'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-16860546834542839</id><published>2008-09-27T03:34:00.000-07:00</published><updated>2008-09-27T03:43:34.949-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Objective Questions'/><title type='text'>Oracle9i AS: Basic Administrations</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;Exam : 1Z0-301&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Title : Oracle9i AS: Basic Administrations&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Sample 3- Questions With Answe&lt;/span&gt;r&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 1&lt;/span&gt;&lt;br /&gt;The machine hosting your Oracle9iAS Infrastructure has been stopped and the&lt;br /&gt;operating system has been restarted.&lt;br /&gt;Which three steps do you need to take to get Oracle Internet Directory working?&lt;br /&gt;(Choose three)&lt;br /&gt;A. Start Enterprise Manager daemon.&lt;br /&gt;B. Start the Oracle9iAS metadata repository and the database listener.&lt;br /&gt;C. Start Oracle Management Server in order to get connected to OEM Web site.&lt;br /&gt;D. Navigate to the infrastructure homepage, select Oracle Internet Directory, and then&lt;br /&gt;click Start.&lt;br /&gt;E. Navigate to the Farm page, select the Oracle9iAS Infrastructure instance, and click&lt;br /&gt;Start All to start Oracle9iAS metadata repository and the database listener and all OID&lt;br /&gt;components.&lt;br /&gt;F. Navigate to the Oracle Internet Directory home page and start the Distributed&lt;br /&gt;Administration Service.&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold; font-style: italic;"&gt;Answer: E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 2&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;Examine the configuration context in which Oracle HTTP Server configuration&lt;br /&gt;directives can be used.&lt;br /&gt;Not all directives can be used everywhere. The Oracle HTTP Server distinguishes&lt;br /&gt;between the configuration context and a per-directive basis. (Every directive has a fixed&lt;br /&gt;set of contexts in which it is allowed.)&lt;br /&gt;Which three statements are true? (Choose three)&lt;br /&gt;A. The &lt;files&gt; or &lt;filesmatch&gt; container is allowed inside a directory container.&lt;br /&gt;B. If you want to match URLs you need to use &lt;location&gt; or &lt;locationmatch&gt;&lt;br /&gt;directives.&lt;br /&gt;C. Box 1 represents the directory container built by &lt;directory&gt; or &lt;directorymatch&gt;&lt;br /&gt;directives.&lt;br /&gt;D. The &lt;files&gt; or &lt;filesmatch&gt; container is allowed inside a &lt;location&gt; or&lt;br /&gt;&lt;locationmatch&gt; container.&lt;br /&gt;E. Box 1 represents a &lt;location&gt; or &lt;locationmatch&gt; container with directives that are&lt;br /&gt;applied to a particular URL and its subareas.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, B, C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 3&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;You have a single installation of J2EE and Web Cache on a single host.&lt;br /&gt;Which two Web server types does this topology support? (Choose two)&lt;br /&gt;A. A Web server that has enabled single sign-on functionality.&lt;br /&gt;B. A Web server that has a central user management repository.&lt;br /&gt;C. A Web server that is preconfigured for caching of Web pages.&lt;br /&gt;D. A Web server that is enabled to connect to an Oracle Directory Server.&lt;br /&gt;E. A Web server that supports the deployment of J2EE-compliant applications.&lt;br /&gt;F. A Web server that supports the deployment of Oracle Forms-based applications.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0); font-style: italic;"&gt;Answer: C, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 4&lt;/span&gt;&lt;br /&gt;Which two are appropriate directives for the default-web-site.xml file? (Choose two)&lt;br /&gt;A. &lt;clister id="-3551400422"&gt;&lt;br /&gt;B. &lt;principals path="./principals.xml"&gt;&lt;br /&gt;C. &lt;tranaction-config timeout="30000"&gt;&lt;br /&gt;D. &lt;web-app application="default" name="dms" root="/dmsoc4j"&gt;&lt;br /&gt;E. &lt;web-module id="dms" path="./../home/applications/dms.war"&gt;&lt;br /&gt;F. &lt;access-log path="../log/home_default_island_1/default-web-access.log"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic; font-weight: bold;"&gt;Answer: D, F&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# QUESTION 5&lt;br /&gt;Which three metrics can you get from the OC4J Instance page on OEM? (Choose three)&lt;br /&gt;A. CPU usage&lt;br /&gt;B. JDBC Connections&lt;br /&gt;C. Application up time&lt;br /&gt;D. 9iAS Instance up time&lt;br /&gt;E. OC4J Instance up time&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, B, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 6&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;You are managing an Oracle9iAS Cluster as illustrated un the image.&lt;br /&gt;During a period of high volume activity, an OC4J process on one of the nodes goes&lt;br /&gt;down.&lt;br /&gt;How is this detected, and which two activities takes place at that time? (Choose two)&lt;br /&gt;A. The OC4J process death will be detected by the DCM process, and that process will&lt;br /&gt;automatically start a replacement OC4J process.&lt;br /&gt;B. The OC4J process death will be detected by an OHS process, which updates the&lt;br /&gt;routing tables.&lt;br /&gt;New OC4J requests will be routed to surviving OC4J processes.&lt;br /&gt;C. The OC4J process death will be detected by the OPMN process, which updates the&lt;br /&gt;routing tables.&lt;br /&gt;New OC4J requests will be routed to surviving OC4J processes.&lt;br /&gt;D. The OC4J process death will be detected by the DCM process, which updates the&lt;br /&gt;routing tables.&lt;br /&gt;New OC4J requests will be routed to surviving OC4J processes.&lt;br /&gt;E. The OC4J process death will be detected by the OPMN process, and that process will&lt;br /&gt;automatically start a replacement OC4J process.&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold; color: rgb(0, 102, 0);"&gt;Answer: C, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 7&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;dcmctl deployApplication -file name -a app_name&lt;br /&gt;[-co comp_name] [-rc root_context]&lt;br /&gt;Examine the syntax of the dcmctl deployApplication command.&lt;br /&gt;You want to deploy the Web application module packages in simple-web-war to your&lt;br /&gt;OC4J instance j2ee1. The Web archive is stored on the application server under the&lt;br /&gt;directory /home/user/to_deploy. The application should be named simple-web and the&lt;br /&gt;application should be accessible as mysimpleweb.&lt;br /&gt;Which is the correct approach using dcmctl to deploy your application?&lt;br /&gt;A. Wrap the Web application into J2EE application (.ear file) before deployment because&lt;br /&gt;dcmctl supports only ear files.&lt;br /&gt;Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deploy/Application \&lt;br /&gt;-f /home/users/to_deploy/simple-web.ear \&lt;br /&gt;-a simple-web -co oc4j -rc mysumpleweb&lt;br /&gt;B. Wrap the Web application into a J2EE application (.ear file) before deployment&lt;br /&gt;because dcmctl supports only ear files.&lt;br /&gt;Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple-web-ear \&lt;br /&gt;-a mysimpleweb -co j2ee1 -rc simple-web&lt;br /&gt;C. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;D. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple-web.war \&lt;br /&gt;-a simple-web -co j2ee1 -rc mysimpleweb&lt;br /&gt;E. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deploy/Application \&lt;br /&gt;-f /home/users/to_deploy/simple-web.war \&lt;br /&gt;-a mysimpleweb -co j2ee1 -rc simple-web&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 8&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;dcmctl deployApplication -file name -a app_name&lt;br /&gt;[-co comp_name] [-rc root_context]&lt;br /&gt;Examine the syntax of the dcmctl deployApplication command.&lt;br /&gt;You want to deploy a J2EE application to your default OC4J instance that consists of a&lt;br /&gt;Web module named simple-app and that is packaged in the file simple.ear.&lt;br /&gt;The J2EE application should be deployed to your Oracle9iAS Instance named&lt;br /&gt;j2ee.1prod1.us. CertKing .com.&lt;br /&gt;The J2EE archive is stored on the application server under the directory&lt;br /&gt;/home/users/to_deploy. The application should be administered under the name simpletest.&lt;br /&gt;Which is the correct approach using dcmctl to deploy your application?&lt;br /&gt;A. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple.ear \&lt;br /&gt;-a simple-test-co j2ee1.prod1.us. CertKing .com \&lt;br /&gt;-rc simple-test&lt;br /&gt;B. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deploy/Application \&lt;br /&gt;-f /home/users/to_deploy/simple.ear \&lt;br /&gt;-a simple-test -i j2ee1.prod.us. CertKing .com \&lt;br /&gt;-rf simple-app&lt;br /&gt;C. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple.ear \&lt;br /&gt;-a simple-test -i j2ee1.prod1.use. CertKing .com&lt;br /&gt;D. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple-app.war \&lt;br /&gt;-a simple-test -i j2ee1.prod1.us. CertKing .com&lt;br /&gt;E. Enter the following commands on your application server:&lt;br /&gt;$&gt; cd $ORACLE_HOME/dcm/bin&lt;br /&gt;$&gt; dcmctl deployApplication \&lt;br /&gt;-f /home/users/to_deploy/simple-app.war \&lt;br /&gt;-a simple-app -i j2ee1.prod1.us. CertKing .com&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 9&lt;/span&gt;&lt;br /&gt;A user authenticated to a partner application by Oracle9iAS Single Sign-On accesses&lt;br /&gt;another partner application in the same session.&lt;br /&gt;What does the second application do?&lt;br /&gt;A. Checks the htaccess file to authenticate the user.&lt;br /&gt;B. Uses the mod_osso cookie to authenticate the user.&lt;br /&gt;C. Rewrites the URL and stores it in the SSO database.&lt;br /&gt;D. Checks for the correct URL from the Single Sign-On server.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 153, 0);"&gt;Answer: D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;# QUESTION 10&lt;/span&gt;&lt;br /&gt;Most J2EE applications use a database to have a persistent storage for data. Servlets, as&lt;br /&gt;well as JSPs and EJBs, need to communicate with the database.&lt;br /&gt;Which two statements are true? (Choose two)&lt;br /&gt;A. To be portable across application servers J2EE applications use DataSource objects.&lt;br /&gt;B. The JDBC DriverManager class has logical names that make applications that use it&lt;br /&gt;portable.&lt;br /&gt;C. JDBC DriverManager class objects enable portable J2EE applications across&lt;br /&gt;application servers.&lt;br /&gt;D. Every JDBC 2.0 driver has its own implementation of DataSource objects that can be&lt;br /&gt;bound into an external JNDI namespace.&lt;br /&gt;E. Every JDBC 2.0 driver has its own implementation of DriverManager class objects&lt;br /&gt;that can be bound into an external JNDI namespace.&lt;br /&gt;F. Using the JDBC DriverManager class is the recommended way for a J2EE application&lt;br /&gt;to get a connection.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 11&lt;/span&gt;&lt;br /&gt;Which Oracle9iAS capabilities require an Infrastructure? (Choose all that apply)&lt;br /&gt;A. Single Sign-On&lt;br /&gt;B. Application Server Clusters&lt;br /&gt;C. All Oracle9iAS installation types&lt;br /&gt;D. Oracle9iAS Web Cache Clusters&lt;br /&gt;E. Invoking PL/SQL code via Database Access Descriptors&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, B, D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 12&lt;/span&gt;&lt;br /&gt;Most J2EE applications, servlets as well as JSPs and EJBs, need to communicate with&lt;br /&gt;the database.&lt;br /&gt;Which two are true regarding data sources? (Choose two)&lt;br /&gt;A. J2EE applications use JNDI to look up DataSource objects.&lt;br /&gt;B. J2EE applications retrieve connections to the database through DataSource objects.&lt;br /&gt;C. DataSource objects include the mapping between the logical database connection and&lt;br /&gt;the physical database information.&lt;br /&gt;D. J2EE applications retrieve database connections from the application code itself, that&lt;br /&gt;includes the physical database information.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: B, C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 13&lt;/span&gt;&lt;br /&gt;When stopping the Infrastructure instance, which option is correct?&lt;br /&gt;A. Stopping the Infrastructure will stop all of the Oracle9iAS Application Server&lt;br /&gt;instances that use it.&lt;br /&gt;B. You should stop the Infrastructure first, and then stop all of the Oracle9iAS&lt;br /&gt;Application Server instances that use it.&lt;br /&gt;C. You should first stop all of the Oracle9iAS Application Server Instances that use the&lt;br /&gt;Infrastructure, then stop the Infrastructure.&lt;br /&gt;D. Stopping the Infrastructure does not affect the Oracle9iAS Application Server&lt;br /&gt;instances that use it.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;# QUESTION 14&lt;/span&gt;&lt;br /&gt;Which process of an Oracle9iAS Instance is responsible for managing and tracking the&lt;br /&gt;process in the Instance, as well as propagating events among other Instances in the&lt;br /&gt;Farm?&lt;br /&gt;A. DCM&lt;br /&gt;B. OPMN&lt;br /&gt;C. OC4J&lt;br /&gt;D. The OHS Parent process&lt;br /&gt;E. An OHS Child process&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 15&lt;/span&gt;&lt;br /&gt;Which six correctly match the item to its description? (Choose six)&lt;br /&gt;A. Dispatcher: Listens for LDAP requests.&lt;br /&gt;B. LDAP server process: Processes LDAP requests.&lt;br /&gt;C. Dispatcher: Sends changes to other OID nodes.&lt;br /&gt;D. Oracle Director Manager: Displays configuration sets.&lt;br /&gt;E. OID Replication process: Sends changes to other OID nodes.&lt;br /&gt;F. LDAP server process: Initiates and terminates OID server processes.&lt;br /&gt;G. OID Control Utility: Accepts commands to start and stop OID instances.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: F&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;# QUESTION 16&lt;/span&gt;&lt;br /&gt;Which two OC4J configuration files are server configuration files? (Choose two)&lt;br /&gt;A. rmi.xml&lt;br /&gt;B. web.xml&lt;br /&gt;C. jms.xml&lt;br /&gt;D. ejb.xml&lt;br /&gt;E. orion-web.xml&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 17&lt;/span&gt;&lt;br /&gt;Which statement is true about the Oracle9iAS Single Sign-On session duration?&lt;br /&gt;A. It is applicable to partner applications only.&lt;br /&gt;B. It is applicable to external applications only.&lt;br /&gt;C. It is applicable to all single sign-on sessions.&lt;br /&gt;D. It is applicable to administrative sessions only.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 18&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;You installed one J2EE and Web Cache instance, which is running. Because your&lt;br /&gt;company wants to use the Oracle Internet Directory as a central repository for user&lt;br /&gt;information for an application that should be single sign-on enabled you installed&lt;br /&gt;Oracle9iAS Infrastructure.&lt;br /&gt;Which actions are required in order to use Oracle Internet Directory? (Choose all that&lt;br /&gt;apply)&lt;br /&gt;A. Ensure that the Oracle9iAS Infrastructure instance is up and running.&lt;br /&gt;B. Using Oracle Enterprise Manager Website select the J2EE and Web Cache instance&lt;br /&gt;and associate the J2EE and Web Cache Instance with Oracle9iAS Infrastructure.&lt;br /&gt;C. Using the Oracle Enterprise Manager Web site, select the Oracle9iAS metadata&lt;br /&gt;repository and associate the metadata repository with the J2EE and Web Cache&lt;br /&gt;instance.&lt;br /&gt;D. Stop both instances, J2EE and Web Cache and Oracle9iAS Infrastructure.&lt;br /&gt;Then start the J2EE and Web Cache instance before you start the Oracle9iAS&lt;br /&gt;Infrastructure instance.&lt;br /&gt;E. Restart the J2EE and Web Cache instance to have the instance recognized by&lt;br /&gt;Oracle9iAS Infrastructure.&lt;br /&gt;F. The only required step is to restart both instances, J2EE and Web Cache and&lt;br /&gt;Oracle9iAS Infrastructure.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 19&lt;/span&gt;&lt;br /&gt;During the installation process, you can choose to install Oracle9iAS Infrastructure.&lt;br /&gt;Which two statements describe the relationship between Oracle9iAS Infrastructure and&lt;br /&gt;Oracle9i Application Server? (Choose two)&lt;br /&gt;A. Oracle9iAS Infrastructure is a prerequisite for all Oracle9i Application Server&lt;br /&gt;Installation types.&lt;br /&gt;B. All Oracle9iAS Instances except the Installation type Portal and Wireless use&lt;br /&gt;Oracle9iAS Infrastructure.&lt;br /&gt;C. Oracle9i Application Server Installation type J2EE and Web Cache does NOT need an&lt;br /&gt;Oracle9iAS Infrastructure as a prerequisite.&lt;br /&gt;D. Oracle9iAS Infrastructure contains Oracle Internet Directory and Oracle Internet&lt;br /&gt;Filesystem to centralized user management.&lt;br /&gt;E. Oracle9i Application Server instances like J2EE and Web Cache need to be single&lt;br /&gt;Oracle9iAS Infrastructure.&lt;br /&gt;F. Oracle9iAS Infrastructure contains a preconfigured database to store all metadata&lt;br /&gt;information necessary for Oracle9iAS instances.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: C, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 20&lt;/span&gt;&lt;br /&gt;Which two are files that Oracle9iAS Web Cache reads at startup? (Choose two)&lt;br /&gt;A. httpd.conf&lt;br /&gt;B. mod_oc4j.xml&lt;br /&gt;C. internal.xml&lt;br /&gt;D. webcache.xml&lt;br /&gt;E. webcacheroot.orc&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic; font-weight: bold;"&gt;Answer: A, D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 21&lt;/span&gt;&lt;br /&gt;Which two statements describe features of the servlet support in Oracle9iAS Containers&lt;br /&gt;for J2EE (OC4J)? (Choose two)&lt;br /&gt;A. Allows use of WAR files to deploy packaged applications.&lt;br /&gt;B. Requires code changes for distributable web applications.&lt;br /&gt;C. Retains translated servlet code for extended error reporting.&lt;br /&gt;D. Provides simple and complex object relational mapping for entity beans.&lt;br /&gt;E. Replicates state of Web Applications to other servers in the same cluster.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 153, 0);"&gt;Answer: A, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 22&lt;/span&gt;&lt;br /&gt;Which mod_plsql directive enables you to provide access to a specific PL/SQL&lt;br /&gt;procedure without specifying it in the URL?&lt;br /&gt;A. PlsqlDefaultPage&lt;br /&gt;B. PlsqlDatabaseName&lt;br /&gt;C. PlsqlDatabaseUsername&lt;br /&gt;D. PlsqlDatabasePassword&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 23&lt;/span&gt;&lt;br /&gt;What does the Delegated Administration Service or Oracle9iAS SSO enable&lt;br /&gt;nonadministrative users to do?&lt;br /&gt;A. Create new SSO servers.&lt;br /&gt;B. Modify SSO user's personal data.&lt;br /&gt;C. Create new Oracle Internet Directories.&lt;br /&gt;D. Modify SSO administrator's schema location.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0); font-style: italic;"&gt;Answer: B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 24&lt;/span&gt;&lt;br /&gt;Exhibit:&lt;br /&gt;Examine the image showing the Oracle Directory Manager Menu and navigation bar.&lt;br /&gt;Oracle Directory Manager has a double window interface. You want to obtain password&lt;br /&gt;credentials about the user appuser created with the Distributed Administration Service&lt;br /&gt;(DAS).&lt;br /&gt;Where do you get the appropriate information?&lt;br /&gt;A. Click the plus sign next to Server Management to expand the subtree, then navigate to&lt;br /&gt;Directory Server, where you get information about the user.&lt;br /&gt;B. Click the plus sign next to Access Control Management, then navigate to the entry&lt;br /&gt;cn=DAS, where you get the information about the user.&lt;br /&gt;C. Click the plus sign next to Entry Management to expand the subtree, then drill down to&lt;br /&gt;the level of cn=Users to obtain the wanted information.&lt;br /&gt;D. Click the plus sign next to Schema Management, then navigate to the entry cn=Users,&lt;br /&gt;where you get the information about the user.&lt;br /&gt;E. Click the plus sign next to Password Policy Management, then navigate to the entry&lt;br /&gt;cn=DAS where you get the information about the user.&lt;br /&gt;F. Click the plus sign next to Password Verifier Management, then navigate to the entry&lt;br /&gt;cn=DAS where you get the information about the user.&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold; color: rgb(0, 153, 0);"&gt;Answer: E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 25&lt;/span&gt;&lt;br /&gt;You want to use Basic Authentication to protect access to your web site using Oracle&lt;br /&gt;HTTP Server password files. To accomplish this, you will use a &lt;location&gt; or&lt;br /&gt;&lt;directory&gt; block container in your httpd.conf configuration file.&lt;br /&gt;Which three Require directives are correct? (Choose three)&lt;br /&gt;A. Require valid-user&lt;br /&gt;B. Require valid_user&lt;br /&gt;C. Require user &lt;user_list&gt;&lt;br /&gt;D. Require group &lt;group_list&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: A, C, D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;# QUESTION 26&lt;/span&gt;&lt;br /&gt;Which component of an Oracle9iAS instance is responsible for accessing the&lt;br /&gt;configuration information for the Farm, reading changes that need to be propagated&lt;br /&gt;throughout the Farm, and updating the configuration information?&lt;br /&gt;A. DCM&lt;br /&gt;B. OPMN&lt;br /&gt;C. OC4J&lt;br /&gt;D. The OHS parent process&lt;br /&gt;E. An OHS child process&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;Answer: B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 27&lt;/span&gt;&lt;br /&gt;Which two protocols are available by default for the Oracle9iAS Containers for J2EE&lt;br /&gt;(OC4J) to receive communication when it is installed as a part of an Oracle9iAS&lt;br /&gt;Instance? (Choose two)&lt;br /&gt;A. HTTP&lt;br /&gt;B. ORMI&lt;br /&gt;C. HTTPS&lt;br /&gt;D. AJP12&lt;br /&gt;E. AJP13&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: B, E&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 28&lt;/span&gt;&lt;br /&gt;In which two directories would you typically find the mod_plsql configuration files?&lt;br /&gt;(Choose two)&lt;br /&gt;A. $ORACLE_HOME/network/admin&lt;br /&gt;B. $ORACLE_HOME/Apache/Apache/conf&lt;br /&gt;C. $ORACLE_HOME/Apache/dads/conf&lt;br /&gt;D. $ORACLE_HOME/Apache/modplsql/conf&lt;br /&gt;E. $ORACLE_HOME/Apache/Apache/htdocs&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);"&gt;Answer: B, D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 29&lt;/span&gt;&lt;br /&gt;A collection of Oracle9iAS Instances that share the same Infrastructure but do not have&lt;br /&gt;identical configurations is referred to as a _______.&lt;br /&gt;A. Cluster&lt;br /&gt;B. Farm&lt;br /&gt;C. Instance&lt;br /&gt;D. Component Cluster&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold; color: rgb(0, 102, 0);"&gt;Answer: B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# QUESTION 30&lt;/span&gt;&lt;br /&gt;When you configure your application to run in Single Sign-On environment, you should&lt;br /&gt;register _______.&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold; font-style: italic;"&gt;A. mod_osso as a partner application.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-16860546834542839?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/16860546834542839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/16860546834542839'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/09/oracle9i-as-basic-administrations.html' title='Oracle9i AS: Basic Administrations'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-669402769410792084</id><published>2008-08-03T00:46:00.001-07:00</published><updated>2008-08-03T00:46:34.279-07:00</updated><title type='text'>Database :What are the types of indexes available with SQL Server?</title><content type='html'>&lt;div dir="ltr"&gt;There are basically two types of indexes that we use with the SQL Server. Clustered and the Non-Clustered.  &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-669402769410792084?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/669402769410792084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/669402769410792084'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/08/database-what-are-types-of-indexes.html' title='Database :What are the types of indexes available with SQL Server?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1910517340207188090</id><published>2008-08-03T00:44:00.001-07:00</published><updated>2008-08-03T00:44:12.332-07:00</updated><title type='text'>Database : What is a trigger?</title><content type='html'>&lt;div dir="ltr"&gt;Triggers are basically used to implement business rules. Triggers is also similar to stored procedures. The difference is that it can be activated when data is added or edited or deleted from a table in a database.   &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1910517340207188090?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1910517340207188090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1910517340207188090'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/08/database-what-is-trigger.html' title='Database : What is a trigger?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3566886686848994596</id><published>2008-08-03T00:43:00.001-07:00</published><updated>2008-08-03T00:43:21.786-07:00</updated><title type='text'>Can you give an example of system defined Stored Procedure?</title><content type='html'>&lt;div dir="ltr"&gt; sp_helpdb , sp_who2, sp_renamedb are a set of system defined stored procedures. We can also have user defined stored procedures which can be called in similar way.   &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3566886686848994596?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3566886686848994596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3566886686848994596'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/08/can-you-give-example-of-system-defined.html' title='Can you give an example of system defined Stored Procedure?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6272274597878840877</id><published>2008-08-03T00:41:00.001-07:00</published><updated>2008-08-03T00:41:27.202-07:00</updated><title type='text'>Database : What is a Stored Procedure?</title><content type='html'>&lt;div dir="ltr"&gt;&lt;span style=""&gt; &lt;/span&gt;Its nothing but a set of T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements.   &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6272274597878840877?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6272274597878840877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6272274597878840877'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/08/database-what-is-stored-procedure.html' title='Database : What is a Stored Procedure?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5818980513490644896</id><published>2008-08-03T00:36:00.001-07:00</published><updated>2008-08-03T00:36:24.996-07:00</updated><title type='text'>Database Performance Monitor (ST04)</title><content type='html'>&lt;div dir="ltr"&gt;Database Performance Monitor (ST04) provides a database-independent tool to analyze&lt;br&gt;and tune the following components:&lt;br&gt;&amp;lt; Memory and buffer usage&lt;br&gt;&amp;lt; Space usage&lt;br&gt;&amp;lt; CPU usage&lt;br&gt;&amp;lt; SQL requests&lt;br&gt; &amp;lt; Detailed SQL items&lt;br&gt;&lt;br&gt;1. In the Command field, enter transaction ST04 and choose Enter (or from the SAP standard menu, choose Tools &amp;reg; Administration &amp;reg; Monitor &amp;reg; Performance &amp;reg; Database &amp;reg;&lt;br&gt;ST04 - Activity).&lt;br&gt;&lt;br&gt; 2. An initial overview of database activity is provided which pertains to database,operating system, CPU, and memory.Microsoft SQL Server allows the analysis of specific attributes pertaining to memory, space, I/O, and quality of table reads and writes. This information can signal adjustments necessary to improve performance of the database. &lt;br&gt; &lt;br&gt;a. Memory Usage Procedure cache and Data cache hit ratio can reflect memory problems.These values should be greater than95 percent for optimal memory usage.&lt;br&gt;b. Server Engine/Elapsed Shows how hard the CPU has beenworking on Microsoft SQL Serverprocesses. You are interested in theratio of busy : idle time.&lt;br&gt; c. SQL Requests Allows for snapshots of how SQL queries are utilizing table access pertaining to full table or index scans.A high ratio of full table scans vs. index scans can indicate performance bottlenecks.&lt;br&gt;d. Detail analysis menu&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5818980513490644896?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5818980513490644896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5818980513490644896'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/08/database-performance-monitor-st04.html' title='Database Performance Monitor (ST04)'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5626418108970837591</id><published>2008-07-14T23:14:00.001-07:00</published><updated>2008-07-14T23:14:27.894-07:00</updated><title type='text'>T-SQL Query : How to retrieve only the Nth row from a table?</title><content type='html'>&lt;div dir="ltr"&gt;&lt;u&gt;&lt;b&gt;Method 1&lt;/b&gt;&lt;/u&gt;&lt;br&gt;&lt;br&gt;SELECT * FROM t1 a&lt;br&gt;WHERE &amp;nbsp;n = (SELECT COUNT(rowid)&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM t1 b&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE a.rowid &amp;gt;= b.rowid);&lt;br&gt;&lt;u&gt;&lt;b&gt;&lt;br&gt;Method 2&lt;/b&gt;&lt;/u&gt;&lt;br&gt;&lt;br&gt;SELECT * FROM (&lt;br&gt;  &amp;nbsp; SELECT ENAME,ROWNUM RN FROM EMP WHERE ROWNUM &amp;lt; 101 )&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5626418108970837591?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5626418108970837591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5626418108970837591'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/t-sql-query-how-to-retrieve-only-nth.html' title='T-SQL Query : How to retrieve only the Nth row from a table?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6173479100269737224</id><published>2008-07-14T23:06:00.001-07:00</published><updated>2008-07-14T23:06:10.854-07:00</updated><title type='text'>SQL statement : How to Delete duplicates rows from a table?</title><content type='html'>&lt;div dir="ltr"&gt;Choose one of the following queries to identify or remove duplicate rows from a table leaving only unique records in the table:&lt;br&gt;&lt;br&gt;&lt;b&gt;Method 1:&lt;/b&gt;&lt;br&gt;&lt;br&gt;Delete all rowids that is BIGGER than the SMALLEST rowid value (for a given key):&lt;br&gt; &lt;br&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SQL&amp;gt; DELETE FROM table_name A WHERE ROWID &amp;gt; (&lt;/span&gt;&lt;br style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;SELECT min(rowid) FROM table_name B&lt;/span&gt;&lt;br style="color: rgb(51, 51, 255);"&gt; &lt;span style="color: rgb(51, 51, 255);"&gt; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;WHERE A.key_values = B.key_values);&lt;/span&gt;&lt;br&gt;&lt;b&gt;&lt;br&gt;Method 2:&lt;/b&gt;&lt;br&gt;&lt;br&gt;This method is usually faster. However, remember to recreate all indexes, constraints, triggers, etc. on the table when done.&lt;br&gt; &lt;br&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SQL&amp;gt; create table table_name2 as select distinct * from table_name1;&lt;br&gt;SQL&amp;gt; drop table table_name1;&lt;br&gt;SQL&amp;gt; rename table_name2 to table_name1;&lt;/span&gt;&lt;br&gt;&lt;b&gt;&lt;br&gt;Method 3:&lt;/b&gt;&lt;br&gt; &lt;br&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SQL&amp;gt; delete from my_table t1&lt;br&gt;SQL&amp;gt; where &amp;nbsp;exists (select &amp;#39;x&amp;#39; from my_table t2&lt;br&gt;SQL&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where t2.key_value1 = t1.key_value1&lt;br&gt;SQL&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and t2.key_value2 = t1.key_value2&lt;br&gt; SQL&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and t2.rowid &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt; t1.rowid);&lt;/span&gt;&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6173479100269737224?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6173479100269737224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6173479100269737224'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-statement-how-to-delete-duplicates.html' title='SQL statement : How to Delete duplicates rows from a table?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7421313770385719918</id><published>2008-07-14T23:02:00.001-07:00</published><updated>2008-07-14T23:02:13.560-07:00</updated><title type='text'>Oracle FAQ : How can one dump/ examine the exact content of a database column?</title><content type='html'>&lt;div dir="ltr"&gt;Table data can be extracted from the database as octal, decimal or hex values:&lt;br&gt;&lt;br&gt;SELECT DUMP(col1, 10)&lt;br&gt;FROM tab1&lt;br&gt;WHERE cond1 = val1;&lt;br&gt;DUMP(COL1)&lt;br&gt;-------------------------------------&lt;br&gt;Typ=96 Len=4: 65,66,67,32&lt;br&gt; &lt;br&gt;For this example, type=96 is indicating a CHAR column. The last byte in the column is 32, which is the ASCII code for a space. This tells us that this column is blank-padded.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7421313770385719918?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7421313770385719918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7421313770385719918'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/oracle-faq-how-can-one-dump-examine.html' title='Oracle FAQ : How can one dump/ examine the exact content of a database column?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5309744507717778552</id><published>2008-07-14T23:00:00.001-07:00</published><updated>2008-07-14T23:00:23.813-07:00</updated><title type='text'>Oracle FAQ : How to select a random collection of rows from a table?</title><content type='html'>&lt;div dir="ltr"&gt; &lt;p&gt;The following methods can be used to select a random collection of rows from a table: &lt;/p&gt;&lt;p&gt;&lt;b&gt;The SAMPLE Clause&lt;/b&gt; &lt;/p&gt;&lt;p&gt;From Oracle 8i, the easiest way to randomly select rows from a table is to use the SAMPLE clause with a SELECT statement. Examples: &lt;/p&gt; &lt;pre&gt;SELECT * FROM emp SAMPLE(10);&lt;br&gt;&lt;/pre&gt; &lt;p&gt;In the above example, Oracle is instructed to randomly return 10% of the rows in the table.  &lt;/p&gt; &lt;pre&gt;SELECT * FROM emp SAMPLE(5) BLOCKS;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;This example will sample 5% of all formatted database blocks instead of rows.  &lt;/p&gt;&lt;p&gt;This clause only works for single table queries on local tables. If you include the SAMPLE clause within a multi-table or remote query, you will get a parse error or &amp;quot;ORA-30561: SAMPLE option not allowed in statement with multiple table references&amp;quot;. One way around this is to create an inline view on the driving table of the query with the SAMPLE clause. Example: &lt;/p&gt; &lt;pre&gt;SELECT t1.dept, t2.emp&lt;br&gt;  FROM (SELECT * FROM dept SAMPLE(5)) t1,&lt;br&gt;       emp t2&lt;br&gt; WHERE t1.dep_id = t2.dep_id;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If you examine the execution plan of a &amp;quot;Sample Table Scan&amp;quot;, you should see a step like this: &lt;/p&gt; &lt;pre&gt;TABLE ACCESS (SAMPLE) OF &amp;#39;EMP&amp;#39; (TABLE)&lt;br&gt;&lt;/pre&gt; &lt;p&gt;&lt;b&gt;ORDER BY dbms_random.value()&lt;/b&gt; &lt;/p&gt;&lt;p&gt;This method orders the data by a random column number. Example: &lt;/p&gt; &lt;pre&gt;SQL&amp;gt; SELECT * FROM (SELECT ename&lt;br&gt;  2                   FROM emp&lt;br&gt;  3                  ORDER BY dbms_random.value())&lt;br&gt;  4   WHERE rownum &amp;lt;= 3;&lt;br&gt;ENAME&lt;br&gt;----------&lt;br&gt;WARD&lt;br&gt;MILLER&lt;br&gt;TURNER&lt;br&gt;&lt;/pre&gt;  &lt;p&gt;&lt;b&gt;The ORA_HASH() function&lt;/b&gt; &lt;/p&gt;&lt;p&gt;The following example retrieves a subset of the data in the emp table by specifying 3 buckets (0 to 2) and then returning the data from bucket 1: &lt;/p&gt; &lt;pre&gt;SELECT * FROM emp WHERE ORA_HASH(empno, 2) = 1;&lt;br&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5309744507717778552?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5309744507717778552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5309744507717778552'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/oracle-faq-how-to-select-random.html' title='Oracle FAQ : How to select a random collection of rows from a table?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8048445364461251317</id><published>2008-07-14T22:58:00.001-07:00</published><updated>2008-07-14T22:58:08.048-07:00</updated><title type='text'>Oracle FAQ : How does one escape special characters when writing SQL queries?</title><content type='html'>&lt;div dir="ltr"&gt; &lt;p&gt;&lt;b&gt;Escape quotes&lt;/b&gt; &lt;/p&gt;&lt;p&gt;Use two quotes for every one displayed. Examples: &lt;/p&gt; &lt;pre&gt;SQL&amp;gt; SELECT &amp;#39;Frank&amp;#39;&amp;#39;s Oracle site&amp;#39; AS text FROM DUAL;&lt;br&gt; TEXT&lt;br&gt; --------------------&lt;br&gt; Franks&amp;#39;s Oracle site&lt;br&gt;&lt;br&gt; SQL&amp;gt; SELECT &amp;#39;A &amp;#39;&amp;#39;quoted&amp;#39;&amp;#39; word.&amp;#39; AS text FROM DUAL;&lt;br&gt;  TEXT&lt;br&gt; ----------------&lt;br&gt; A &amp;#39;quoted&amp;#39; word.&lt;br&gt;&lt;br&gt; SQL&amp;gt; SELECT &amp;#39;A &amp;#39;&amp;#39;&amp;#39;&amp;#39;double quoted&amp;#39;&amp;#39;&amp;#39;&amp;#39; word.&amp;#39; AS text FROM DUAL;&lt;br&gt; TEXT&lt;br&gt; -------------------------&lt;br&gt; A &amp;#39;&amp;#39;double quoted&amp;#39;&amp;#39; word.&lt;br&gt; &lt;/pre&gt; &lt;p&gt;&lt;b&gt;Escape wildcard characters&lt;/b&gt; &lt;/p&gt;&lt;p&gt;The LIKE keyword allows for string searches. The &amp;#39;_&amp;#39; wild card character is used to match exactly one character, while &amp;#39;%&amp;#39; is used to match zero or more occurrences of any characters. These characters can be escaped in SQL. Examples: &lt;/p&gt; &lt;pre&gt;SELECT name FROM emp &lt;br&gt; WHERE id LIKE &amp;#39;%/_%&amp;#39; ESCAPE &amp;#39;/&amp;#39;;&lt;br&gt;&lt;/pre&gt; &lt;pre&gt;SELECT name FROM emp &lt;br&gt; WHERE id LIKE &amp;#39;%\%%&amp;#39; ESCAPE &amp;#39;\&amp;#39;;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;&lt;b&gt;Escape ampersand (&amp;amp;) characters in SQL*Plus&lt;/b&gt; &lt;/p&gt;&lt;p&gt;When using SQL*Plus, the DEFINE setting can be changed to allow &amp;amp;&amp;#39;s (ampersands) to be used in text: &lt;/p&gt; &lt;pre&gt;SET DEFINE ~&lt;br&gt;SELECT &amp;#39;Lorel &amp;amp; Hardy&amp;#39; FROM dual;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;&lt;b&gt;Other methods:&lt;/b&gt; &lt;/p&gt;&lt;p&gt;Define an escape character: &lt;/p&gt; &lt;pre&gt;SET ESCAPE &amp;#39;\&amp;#39;&lt;br&gt;SELECT &amp;#39;\&amp;amp;abc&amp;#39; FROM dual;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Don&amp;#39;t scan for substitution variables: &lt;/p&gt; &lt;pre&gt;SET SCAN OFF&lt;br&gt;SELECT &amp;#39;&amp;amp;ABC&amp;#39; x FROM dual;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Use the 10g Quoting mechanism: &lt;/p&gt; &lt;pre&gt;Syntax&lt;br&gt; q&amp;#39;[QUOTE_CHAR]Text[QUOTE_CHAR]&amp;#39;&lt;br&gt; Make sure that the QUOTE_CHAR doesnt exist in the text.&lt;br&gt;&lt;/pre&gt; &lt;pre&gt;SELECT q&amp;#39;{This is Orafaq&amp;#39;s &amp;#39;quoted&amp;#39; text field}&amp;#39; FROM DUAL;&lt;br&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8048445364461251317?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8048445364461251317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8048445364461251317'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/oracle-faq-how-does-one-escape-special.html' title='Oracle FAQ : How does one escape special characters when writing SQL queries?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3114909936332915939</id><published>2008-07-14T22:56:00.000-07:00</published><updated>2008-07-14T22:57:14.396-07:00</updated><title type='text'>What are the difference between DDL, DML and DCL commands?</title><content type='html'>&lt;div dir="ltr"&gt; &lt;p&gt;&lt;b&gt;DDL&lt;/b&gt; - Data Definition Language: statements used to define the database structure or schema. Some examples: &lt;/p&gt; &lt;ul&gt;&lt;li&gt; CREATE - to create objects in the database &lt;/li&gt;&lt;li&gt; ALTER - alters the structure of the database &lt;/li&gt;&lt;li&gt; DROP - delete objects from the database &lt;/li&gt;&lt;li&gt; TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed &lt;/li&gt;&lt;li&gt; COMMENT - add comments to the data dictionary &lt;/li&gt;&lt;li&gt; RENAME - rename an object &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;b&gt;DML&lt;/b&gt; - Data Manipulation Language: statements used for managing data within schema objects. Some examples: &lt;/p&gt; &lt;ul&gt;&lt;li&gt; SELECT - retrieve data from the a database &lt;/li&gt;&lt;li&gt; INSERT - insert data into a table &lt;/li&gt;&lt;li&gt; UPDATE - updates existing data within a table &lt;/li&gt;&lt;li&gt; DELETE - deletes all records from a table, the space for the records remain &lt;/li&gt;&lt;li&gt; MERGE - UPSERT operation (insert or update) &lt;/li&gt;&lt;li&gt; CALL - call a PL/SQL or Java subprogram &lt;/li&gt;&lt;li&gt; EXPLAIN PLAN - explain access path to data &lt;/li&gt;&lt;li&gt; LOCK TABLE - control concurrency &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;b&gt;DCL&lt;/b&gt; - Data Control Language. Some examples: &lt;/p&gt; &lt;ul&gt;&lt;li&gt; GRANT - gives user&amp;#39;s access privileges to database &lt;/li&gt;&lt;li&gt; REVOKE - withdraw access privileges given with the GRANT command &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;b&gt;TCL&lt;/b&gt; - Transaction Control: statements used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions. &lt;/p&gt; &lt;ul&gt;&lt;li&gt; COMMIT - save work done &lt;/li&gt;&lt;li&gt; SAVEPOINT -  identify a point in a transaction to which you can later roll back &lt;/li&gt;&lt;li&gt; ROLLBACK - restore database to original since the last COMMIT &lt;/li&gt;&lt;li&gt; SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;DML are not auto-commit. i.e. you can roll-back the operations, but DDL are auto-commit &lt;/p&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3114909936332915939?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3114909936332915939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3114909936332915939'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/what-are-difference-between-ddl-dml-and.html' title='What are the difference between DDL, DML and DCL commands?'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1908429932615353666</id><published>2008-07-14T22:34:00.001-07:00</published><updated>2008-07-14T22:34:32.818-07:00</updated><title type='text'>SQL server 2008 : LAMBDA EXPRESSIONS</title><content type='html'>&lt;div dir="ltr"&gt;C# 2.0 provided a shorthand method of creating methods and instantiating delegates all in one construct, known as anonymous delegates. C# 3.0 expanded on this idea with a more compact syntactical construct for creating anonymous methods known as lambda expressions. On its most basic level, a lambda expression is simply an anonymous function or method. In Listing 13-8, I've used lambda expressions in two places as arguments to the Average method. The lambda expressions I used were as follows:&lt;br&gt; &lt;i&gt;&lt;b&gt;p =&amp;gt; (float)p.Element(&amp;quot;open&amp;quot;)&lt;br&gt;p =&amp;gt; (float)p.Element(&amp;quot;close&amp;quot;)&lt;/b&gt;&lt;/i&gt;&lt;br&gt;In both of the preceding lambda expressions, the anonymous function is both declared and instantiated in one expression. Query methods, like the Average method, can accept anonymous functions as parameters— a very powerful feature. Lambda expressions offer many advantages (apart from terseness of code) that .NET 2.0 anonymous delegates do not provide:&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1908429932615353666?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1908429932615353666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1908429932615353666'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-lambda-expressions.html' title='SQL server 2008 : LAMBDA EXPRESSIONS'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8724448863650772698</id><published>2008-07-14T22:33:00.001-07:00</published><updated>2008-07-14T22:33:36.562-07:00</updated><title type='text'>SQL server 2008 :LINQ TO XML NAMESPACES</title><content type='html'>&lt;div dir="ltr"&gt;LINQ to XML provides namespace support through the XNamespace object. To create a namespace, just assign the Uniform Resource Identifier (URI) to an XNamespace variable. To use the namespace, just concatenate it to the element name when querying. LINQ to XML automatically expands the namespace-qualified element name out to its fully qualified name internally, so you don't have to worry about it. &lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8724448863650772698?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8724448863650772698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8724448863650772698'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-linq-to-xml-namespaces.html' title='SQL server 2008 :LINQ TO XML NAMESPACES'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1226586865347922889</id><published>2008-07-14T22:32:00.001-07:00</published><updated>2008-07-14T22:32:37.444-07:00</updated><title type='text'>SQL server 2008 : SQLXML XPATH LIMITATIONS</title><content type='html'>&lt;div dir="ltr"&gt;SQLXML supports a subset of XPath queries. Following is a list of limitations imposed on the SQLXML XPath implementation:&lt;br&gt;&lt;br&gt;• The only axis specifiers supported are child, parent, attribute, and self.&lt;br&gt; • Only element and attribute node types are supported.&lt;br&gt;• Only predicates that return a boolean result are supported. Numeric predicates like [1] are not supported.&lt;br&gt;• Only the three XPath data types are supported: string, number, and boolean.&lt;br&gt; • SQLXML 4 does not support the root query (specified by a forward slash /), or descendant-or-self queries (specified by double slashes //). Every query must begin at a top-level schema element type.&lt;br&gt;• SQLXML does not support queries that generate a Cartesian product.&lt;br&gt; • The mod and union (|) operators, string functions, and numeric functions are not supported.&lt;br&gt;&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1226586865347922889?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1226586865347922889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1226586865347922889'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-sqlxml-xpath.html' title='SQL server 2008 : SQLXML XPATH LIMITATIONS'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8499010444661692509</id><published>2008-07-14T22:31:00.001-07:00</published><updated>2008-07-14T22:31:29.891-07:00</updated><title type='text'>SQL server 2008 : GML</title><content type='html'>&lt;div dir="ltr"&gt;GML is the OGC standard for representation of geospatial data in XML format. SQL Server provides support for a subset of GML, allowing you to create geometry and geography data type instances from GML (or convert them to GML) using built-in data type methods. Y&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8499010444661692509?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8499010444661692509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8499010444661692509'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-gml.html' title='SQL server 2008 : GML'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-207496120423521606</id><published>2008-07-14T22:30:00.001-07:00</published><updated>2008-07-14T22:30:18.082-07:00</updated><title type='text'>SQL server 2008 :DTD, XDR, AND XSD</title><content type='html'>&lt;div dir="ltr"&gt;DTDs provide the most basic standard level of validation available to XML. DTDs provide simple structure and string-based content validation; however, they do not provide data typing functionality. DTDs also use a legacy non-XML format inherited from Standard Generalized Markup Language (SGML). DTDs have the advantage of having been part of the XML recommendation since the beginning, so nearly all XML parsers support them to some degree.&lt;br&gt; &lt;br&gt;XDR schemas represent Microsoft's first attempt at implementing an early working draft of the W3C XML Schema recommendation. XDR functionality is Microsoft-specific, and you won't find it implemented widely on other platforms. XDR functionality for constraining XML structure and typing content has been superseded by the official W3C XML Schema recommendation, and support for XDR is provided for&lt;br&gt; backward-compatibility reasons. You normally won't use XDR schemas for new functionality, though you might run into them while supporting legacy applications.&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-207496120423521606?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/207496120423521606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/207496120423521606'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-dtd-xdr-and-xsd.html' title='SQL server 2008 :DTD, XDR, AND XSD'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1181905816268845291</id><published>2008-07-14T22:29:00.001-07:00</published><updated>2008-07-14T22:29:26.971-07:00</updated><title type='text'>SQL server 2008 : HTTP ENDPOINTS AND AD HOC QUERYING</title><content type='html'>&lt;div dir="ltr"&gt;The BATCHES option is a powerful option, but it should be used with care. Any time you allow ad hoc querying of your database, you should carefully consider the security ramifications. I would advise against allowing ad hoc querying over HTTP SOAP endpoints unless you have a compelling reason. And even then you should perform a very thorough security review to ensure that no unauthorized access is allowed to your database and to make sure that users cannot execute destructive ad hoc T-SQL code on your server.&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1181905816268845291?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1181905816268845291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1181905816268845291'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-http-endpoints-and-ad.html' title='SQL server 2008 : HTTP ENDPOINTS AND AD HOC QUERYING'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7726290283991039052</id><published>2008-07-14T22:28:00.001-07:00</published><updated>2008-07-14T22:28:40.098-07:00</updated><title type='text'>SQL server 2008 : SECURE YOUR SQL SERVER ENDPOINTS</title><content type='html'>&lt;div dir="ltr"&gt;There is some concern from database administrators about exposing SQL Server directly to web traffic via the HTTP SOAP endpoints. This concern is not unreasonable, since you could potentially open up your server to unwanted traffic and attacks from the Internet. However, HTTP SOAP endpoints provide security that is very tightly integrated with SQL Server's built-in security model. If your SQL Server is secure, your exposure to attacks via endpoints is minimized. If your server is not properly secured, endpoints only exacerbate the problem. Of course, an unsecure SQL Server is probably more likely to be attacked using tried-and-true attacks, like SQL injection or password brute-force/dictionary attacks over the standard SQL Server TCP and user datagram protocol ports than via SOAP endpoints.&lt;br&gt; &lt;br&gt;On the other hand, the vast majority of SQL Servers that are set up to expose web service methods via HTTP SOAP endpoints tend to be set up for internal use only, behind firewalls and with the additional network security provided by network administrators on a local area network or wide area network. If you set up any SQL Server for exposure over the Internet (endpoints enabled or not), make sure you do a thorough security analysis of your server and network to minimize the potential that your server, network, and data can become compromised. Though they are outside the scope of this book, the same type of precautions should be taken when exposing any computer to the Internet, including web servers and other networked computers.&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7726290283991039052?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7726290283991039052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7726290283991039052'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-secure-your-sql-server.html' title='SQL server 2008 : SECURE YOUR SQL SERVER ENDPOINTS'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8880496897966542442</id><published>2008-07-14T22:27:00.001-07:00</published><updated>2008-07-14T22:27:25.139-07:00</updated><title type='text'>SQL server 2008 : XSL:CHOOSE</title><content type='html'>&lt;div dir="ltr"&gt;The xsl:choose element is analogous to the SQL searched CASE expression. This element contains one or more xsl:when elements that are analogous to WHEN clauses in SQL searched CASE expressions. A SQL searched CASE expression is one where each WHEN clause is a predicate. Like the SQL searched CASE expression, each xsl:when element takes a test attribute that contains an expression. If the expression for an xsl:when element evaluates to true, the content of that element is used. The xsl:choose element can also contain an xsl:otherwise element which is equivalent to the CASE expression's ELSE clause. If all the xsl:when elements evaluate to false, the content of the xsl:otherwise element is used. XSLT does not require that your expression be a true Boolean expression. Any expression in XSLT can evaluate to an effective Boolean value. Chapter 6 has a discussion of effective Boolean value in XQuery.&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8880496897966542442?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8880496897966542442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8880496897966542442'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-xslchoose.html' title='SQL server 2008 : XSL:CHOOSE'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-5934736069536777325</id><published>2008-07-14T22:26:00.001-07:00</published><updated>2008-07-14T22:26:46.318-07:00</updated><title type='text'>SQL server 2008 : DHTML, CSS, AND XHTML</title><content type='html'>&lt;div dir="ltr"&gt;In 1999, the W3C approved the HTML 4.01 specification for web-based publishing (this recommendation is commonly known as HTML4). In 2000, the W3C quickly followed up with the XHTML (Extensible HTML) standard, which redefines HTML as an XML application. During this same time, vendors were just starting to get serious about implementing the 1996 W3C recommendation for CSS functionality in their browser products. &lt;br&gt; &lt;br&gt;Historically speaking, attributes played a key role in HTML formatting. All the way up to HTML4, there is a heavy reliance on attributes to specify colors, borders, spacing, position, and just about every other formatting option supported by HTML. With the adoption of XHTML, most of these attributes were deprecated in favor of the more powerful and flexible CSS model. In an attempt to follow modern user interface coding standards, I've used CSS and generated properly formed HTML in the examples of this chapter. All HTML results have&lt;br&gt; been tested for standards conformance in both Internet Explorer 6 and Firefox 2.0.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-5934736069536777325?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5934736069536777325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/5934736069536777325'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-dhtml-css-and-xhtml.html' title='SQL server 2008 : DHTML, CSS, AND XHTML'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-3973658821891989194</id><published>2008-07-14T22:25:00.001-07:00</published><updated>2008-07-14T22:25:09.296-07:00</updated><title type='text'>SQL server 2008 : FULL-TEXT CONTAINS VS. XQUERY CONTAINS</title><content type='html'>&lt;div dir="ltr"&gt;The full-text search CONTAINS predicate is not the same as the XQuery contains predicate. The XQuery contains predicate performs a substring match similar to the T-SQL CHARINDEX function. The matches performed by the XQuery contains predicate are case sensitive.&lt;br&gt; The T-SQL CONTAINS predicate, on the other hand, includes all of the flexibility of the SQL Server full-text search functionality. This includes the ability to perform thesaurus lookups, word stemming, and proximity searches.&lt;br&gt; &lt;br&gt;The downside to the T-SQL CONTAINS predicate is that you cannot specify node paths to narrow your search using them. The T-SQL full-text search is an all-or-nothing proposition—if you want to search for a word in your XML data using a full-text search, the word can appear anywhere in the XML content. This is why it makes sense to use the T-SQL CONTAINS predicate in conjunction with the XQuery contains predicate for maximum flexibility and performance.&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-3973658821891989194?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3973658821891989194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/3973658821891989194'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-full-text-contains-vs.html' title='SQL server 2008 : FULL-TEXT CONTAINS VS. XQUERY CONTAINS'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1297935523784763477</id><published>2008-07-14T22:23:00.001-07:00</published><updated>2008-07-14T22:23:12.278-07:00</updated><title type='text'>SQL server 2008 : HTTP SOAP Endpoints</title><content type='html'>&lt;div dir="ltr"&gt;A powerful feature introduced in SQL Server 2005, SQL Server 2008 continues providing support for native HTTP SOAP endpoints, which use the XML-based SOAP protocol. HTTP SOAP endpoints provide an efficient, secure, easy-to-configure option for providing SQL Server–based&lt;br&gt; web service support. The built-in HTTP SOAP endpoint support makes it much easier to expose SQL Server functionality as web services than was previously possible via the Internet Information Server (IIS)–based web services available in SQL Server 2000.&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1297935523784763477?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1297935523784763477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1297935523784763477'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-http-soap-endpoints.html' title='SQL server 2008 : HTTP SOAP Endpoints'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-6982979757198799184</id><published>2008-07-14T22:22:00.001-07:00</published><updated>2008-07-14T22:22:33.205-07:00</updated><title type='text'>SQL server 2008 : XQuery and XML DML Support</title><content type='html'>&lt;div dir="ltr"&gt;The new xml data type provides several methods to allow querying and modification of XML data. These new methods, including the query(), value(), exist(), nodes(), and modify() methods, support XQuery querying, XML shredding, and XML DML manipulation of your XML data. The SQL Server 2008 XQuery implementation is a powerful subset of the W3C XML Query Language specification, featuring support for path expressions, FLWOR (for-let-whereorder- by-return) expressions, standard functions and operators, and XML DML statements.&lt;br&gt; &lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-6982979757198799184?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6982979757198799184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/6982979757198799184'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-xquery-and-xml-dml.html' title='SQL server 2008 : XQuery and XML DML Support'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8330546585451633837</id><published>2008-07-14T22:21:00.001-07:00</published><updated>2008-07-14T22:21:43.494-07:00</updated><title type='text'>SQL server 2008 :FOR XML</title><content type='html'>&lt;div dir="ltr"&gt;SQL Server includes improvements to the legacy FOR XML clause. One improvement is tighter integration with the new xml data type, including options to generate native xml-typed results. FOR XML results can be assigned to variables of the xml data type, with additional support for nesting FOR XML queries, an improvement on the SQL Server 2000 FOR XML clauses, which were limited only to the top level of a SELECT statement. The FOR XML PATH mode, also carried over from SQL Server 2005, is an improvement over the legacy FOR XML EXPLICIT mode. With builtin support for XPath-style expressions, FOR XML PATH makes generating XML in explicit structures&lt;br&gt; much easier than was possible in SQL Server 2000.&lt;br&gt;&lt;br&gt;The FOR XML RAW mode has also been improved with additional features, including the ability to rename the default row element name, the ability to explicitly specify the root node, and the ability to retrieve your data in an element-centric format. The FOR XML AUTO and FOR XML EXPLICIT modes have also been improved with additional options and settings. &lt;br&gt; &lt;br&gt;While some options have been deprecated, several additional options have been added to the FOR XML clauses since the SQL Server 2000 version, including the ELEMENTS XSINIL option, which generates elements for NULLs in the result set, and XMLSCHEMA, which generates an inline XML Schema Definition (XSD) in your XML result. T&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8330546585451633837?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8330546585451633837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8330546585451633837'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-for-xml.html' title='SQL server 2008 :FOR XML'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-2452540673334766052</id><published>2008-07-14T22:20:00.001-07:00</published><updated>2008-07-14T22:20:48.505-07:00</updated><title type='text'>SQL server 2008 : XML Indexes</title><content type='html'>&lt;div dir="ltr"&gt;In the SQL Server XML model, whenever you query or manipulate XML data, the data is first converted to a relational format in a process known as shredding. This process can be time consuming when manipulating large XML documents or when querying large numbers of xml data type instances. SQL Server 2008 supports indexing of xml data type columns. Indexing xml columns helps the SQL optimizer significantly improve query performance on XML data stored in the database. The performance is improved by building an index of your XML data by converting it to a relational format, a process known as preshredding. The XML index preshredding process eliminates the shredding step during a query or XML data manipulation, resulting in much faster and less resource-intensive XML query operations. New DML statements have been added to T-SQL to make XML index management relatively easy. &lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-2452540673334766052?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2452540673334766052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/2452540673334766052'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-xml-indexes.html' title='SQL server 2008 : XML Indexes'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-1841322149423126560</id><published>2008-07-14T22:18:00.001-07:00</published><updated>2008-07-14T22:18:12.205-07:00</updated><title type='text'>SQL server 2008 xml Data Type - New feature</title><content type='html'>&lt;div dir="ltr"&gt;Prior to SQL Server 2005, SQL Server provided extremely limited support for storing, managing, and manipulating XML data. SQL Server 2000 implemented its XML capabilities through implementation of the FOR XML clause and kludgy LOB data type operations combined with&lt;br&gt; specialized system-stored procedures. SQL Server 2005 introduced the xml data type, promoting XML data storage and manipulations to first-class status in SQL Server. &lt;br&gt;&lt;br&gt;The xml data type remains one of the most important XML-specific features in SQL Server 2008. The xml data type supports the storage of typed XML documents and fragments that have been validated against an XML schema collection and untyped XML data which has not. The&lt;br&gt; xml data type can be used to declare columns in a table, T-SQL variables, parameters, and as the return type of a function. Data can also be cast to and from the xml data type. In addition, the xml data type brings with it a set of methods useful for querying, shredding, and manipulating XML data. &lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-1841322149423126560?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1841322149423126560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/1841322149423126560'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/sql-server-2008-xml-data-type-new.html' title='SQL server 2008 xml Data Type - New feature'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-8993518798872684535</id><published>2008-07-14T22:14:00.001-07:00</published><updated>2008-07-14T22:14:59.904-07:00</updated><title type='text'>What’s New in SQL Server 2008 XML</title><content type='html'>&lt;div dir="ltr"&gt;SQL Server 2008 provides several enhancements over SQL Server 2000 in terms of XML support and some enhancements over SQL Server 2005. While much of the backward-compatible XML-specific functionality from SQL Server 2000 is available in SQL Server 2008, most of it has been deprecated in favor of the new features and functionality. This section gives a broad&amp;nbsp; overview of the major enhancements to XML support, which include the following items:&lt;br&gt; &lt;br&gt;• New xml data type&lt;br&gt;• XML schema collections&lt;br&gt;• XML indexes&lt;br&gt;• FOR XML enhancements, including XPath support in the FOR XML PATH clause&lt;br&gt;• XQuery and XML DML support&lt;br&gt;• SQLCLR xml data type support&lt;br&gt;• Improvements to legacy XML functionality, including improvements to the sp_xml_preparedocument procedure&lt;br&gt; • HTTP Simple Object Access Protocol (SOAP) endpoints&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-8993518798872684535?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8993518798872684535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/8993518798872684535'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/whats-new-in-sql-server-2008-xml.html' title='What’s New in SQL Server 2008 XML'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-7510880111401976639</id><published>2008-07-05T23:44:00.000-07:00</published><updated>2008-07-05T23:45:00.632-07:00</updated><title type='text'>Oracle Admin : Creating Initial Control Files</title><content type='html'>The initial control files of an Oracle Database are created when you issue the CREATE DATABASE statement. The names of the control files are specified by the CONTROL_FILES parameter in the initialization parameter file used during database creation. The filenames specified in CONTROL_FILES should be fully specified and are operating system specific. The following is an example of a CONTROL_FILES initialization parameter:&lt;br&gt; &lt;br&gt;CONTROL_FILES = (/u01/oracle/prod/control01.ctl,&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /u02/oracle/prod/control02.ctl, &lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /u03/oracle/prod/control03.ctl)&lt;br&gt;&lt;br&gt;If files with the specified names currently exist at the time of database creation, you must specify the CONTROLFILE REUSE clause in the CREATE DATABASE statement, or else an error occurs. Also, if the size of the old control file differs from the SIZE parameter of the new one, you cannot use the REUSE clause.&lt;br&gt; &lt;br&gt;The size of the control file changes between some releases of Oracle Database, as well as when the number of files specified in the control file changes. Configuration parameters such as MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, and MAXINSTANCES affect control file size.&lt;br&gt; &lt;br&gt;You can subsequently change the value of the CONTROL_FILES initialization parameter to add more control files or to change the names or locations of existing control files. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-7510880111401976639?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7510880111401976639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/7510880111401976639'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/oracle-admin-creating-initial-control.html' title='Oracle Admin : Creating Initial Control Files'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6187872174798176445.post-444656094020417807</id><published>2008-07-05T23:42:00.001-07:00</published><updated>2008-07-05T23:42:48.438-07:00</updated><title type='text'>Oracle : Application Developers Responsibility</title><content type='html'> &lt;p&gt;Application developers design and implement database applications. Their responsibilities include the following tasks:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;Designing and developing the database application&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Designing the database structure for an application&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Estimating storage requirements for an application&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Specifying modifications of the database structure for an application&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Relaying this information to a database administrator&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Tuning the application during development&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Establishing security measures for an application during development&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6187872174798176445-444656094020417807?l=db-interviewquestion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/444656094020417807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6187872174798176445/posts/default/444656094020417807'/><link rel='alternate' type='text/html' href='http://db-interviewquestion.blogspot.com/2008/07/oracle-application-developers.html' title='Oracle : Application Developers Responsibility'/><author><name>sudhir</name><uri>http://www.blogger.com/profile/14935355985671801644</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
