Home  Applications Programs  Schema

“Schema Interview Questions and Answers will guide you now that Schema refer to Model or Diagram, Schematic, a diagram that represents the elements of a system using abstract, graphic symbols, learn more about the Schema or get preparation for the job of Schema by the help of this Schema Interview Questions and Answers guide”

27 Schema Questions And Answers

1⟩ What is an abstract schema?

Abstract schema is part of an entity bean’s deployment descriptor which defines the bean’s persistent fields and their relationship. Abstract schema is specifed for entity beans with container managed persistence. We specify the name of the Abstract schema name in the deployment descriptor. The queries written in EJB QL for the finder methods references this name. The information provided in this Abstract Schema is used by the container for persistence management and relationship management.


3⟩ What is meant by a schema?

Schema is collection of functions which are executed in a specified squence and the results of the function are passed on to the next function


6⟩ Why use an XML Schema?

Schemas allow all applications to understand the rules and content of the page.

A schema is the blueprint of an XML document. Since XML works to move data, it is essential that the sender and the receiver of this data both understand the content.


10⟩ Give syntax and examples for creating and dropping XML schema collection?

Syntax and example for creating and dropping XML schema collection:

★ CREATE XML SCHEMA COLLECTION [ <relational_schema>. ]sql_identifier AS Expression

★ relational_schema: identifies the relational schema name. Default is relational schema.

★ sql_identifier: is the SQL identifier for the XML schema collection.

★ Expression is a string constant or scalar variable. It can be a varchar, varbinary, nvarchar, or xml type.

★ DROP XML SCHEMA COLLECTION [ relational_schema. ]sql_identifier

relational_schema identifies the relational schema name.

sql_identifier is the name of the XML schema collection to drop.


11⟩ What is meant by the Waterfall Model?

The waterfall model is a popular version of the systems development life cycle model for software engineering. Often considered the classic approach to the systems development life cycle, the waterfall model describes a development method that is linear and sequential. Waterfall development has distinct goals for each phase of development. Imagine a waterfall on the cliff of a steep mountain. Once the water has flowed over the edge of the cliff and has begun its journey down the side of the mountain, it cannot turn back. It is the same with waterfall development. Once a phase of development is completed, the development proceeds to the next phase and there is no turning back


15⟩ Define XML support SQL server extends?

SQL server can return XML document using FOR XML clause. XML documents can be added to SQL Server database and you can use the OPENXML clause to display the data from the document as a relational result set. SQL Server 2000 supports XPath queries.


16⟩ Limitations of the XML Schema collection?

★ SQL Server limits identifiers of schema components to a maximum length of 1000 Unicode characters. Also, surrogate character pairs within identifiers are not supported.

★ SQL Server does not support restrictions from union types.

★ The values for minOccurs and maxOccurs attributes must fit into 4-byte integers. Schemas that do not conform are rejected by the server.

★ xsi:schemaLocation and xsi:noNamespaceSchemaLocation

★ SQL Server ignores these attributes if they are present in the XML instance data inserted into a column or variable of xml data type.

★ SQL Server rejects schemas that have an particle without children, unless the particle is defined with a minOccurs attribute value of zero.

★ Currently, SQL Server does not support . XML schemas that include this element are rejected by the server.

★ Currently, SQL Server does not support <xsd:key>, <xsd:keyref>, and <xsd:unique> constraints for enforcing uniqueness or establishing keys and key references. XML schemas that contain these elements cannot be registered.

★ The length, minLength, and maxLength facets are stored as a long type. This type is a 32-bit type. Therefore, the range of acceptable values for these values is 2^31.

★ SQL Server does not support the NOTATION type.

★ SQL Server does not support types derived from xs:QName that use an XML Schema restriction element and the union types with xs:QName as a member element.

★ Members cannot be added to an existing substitution group in an XML schema collection.

★ The canonical representation of a value cannot violate the pattern restriction for its type.

★ SQL Server does not support XML schemas with types that have pattern facets or enumerations that violate those facets.

★ In working with large XML schema collections, an out-of-memory condition might occur.

★ SQL Server rejects schemas in which the block or final attribute has repeated values such as "restriction restriction" and "extension extension". .


17⟩ Can we write a DTD instead of Schema?

You could write a DTD for an XML page and accomplish some of the same goals. However, because a schema is written in XML, there is no new syntax or rules to understand. If you can write a page in XML, you can write an XML schema.


20⟩ Describe XML Schema?

A schema is a blueprint of an XML document that defines the elements, data types and nesting structure of the page.

An XML schema is a road map for the XML document similar to a Document Type Definition (DTD). Created by the World Wide Web Consortium (W3C), schemas describe the elements and map out the presentation and nesting of XML documents.

Essentially, the schema enables all applications to understand the flow of the page and validate the elements.