• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/20

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

20 Cards in this Set

  • Front
  • Back

What is cardinality?

Thinking mathematically, it is the number of elements in a set. Thinking in the database world, cardinality has to do with the counts in a relationship, one-to-one, one-to-many, or many-to-many.

Describe the differences in the first normalization forms.

The domain of each attribute contains only atomic values, and the value of each attribute contains only a single value from that domain.

Describe the differences in the second normalization forms.

No non-prime attribute in the table is functionally dependent on a proper subset of any candidate key.Third: Fourth:.Fifth: .

Describe the differences in the third normalization forms.

Every non-prime attribute is non-transitively dependent on every candidate key in the table. The attributes that do not contribute to the description of the primary key are removed from the table. In other words, no transitive dependency is allowed.

Describe the differences in the fourth normalization forms.

Every non-trivial multivalued dependency in the table is a dependency on a superkey

Describe the differences in the fifth normalization forms.

Every non-trivial join dependency in the table is implied by the superkeys of the table

When might someone denormalize their data?

Typically done for performance reasons, to reduce the number of table joins. This is not a good idea in a transactional environment as there are inherent data integrity risks or performance risks due to excessive locking to maintain data integrity.

What are the elements of an ERD?

The three elements include the entities for which someone is seeking information, the attributes of those entities, and the relationships between the entities.

Which SQL command is used to add a row?

INSERT

Write the command to remove all employees named John from the EMPLOYEE table.

DELETE from EMPLOYEE WHERE firstName = ‘John’

What does SQL stand for?

Structured Query Language

What are the differences between primary and foreign keys?

The primary key is the column or set of columns used to uniquely identify the items in a table. A foreign key is used to uniquely identify the items in a different table, allowing join operations to happen.

What is the difference between an inner and outer join?

An inner join involves joining two tables where a common id/key exists in both. An outer join is the joining of two tables, but where there is no match in the second (or first).

How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

You create a trigger that will automatically delete elements in the second table when elements from the first table are removed.

What port does SQL server run on?

1433 is the standard port for SQL server.

What is the SQL CASE statement used for and give an example?

It allows you to embed an if-else like clause in the SELECT clause.

What are Hadoop and Hive?

Hadoop is an Apache project for dealing with large data sets, basically providing a file system with libraries for large scale data processing like map-reduce. Hive provides the layer on top of Hadoop for query and analysis. The query language is calle HiveQL and does not support transactions.

What is Hibernate?

Hibernate is an object-relational mapping library that takes Java objects and maps them into relational database tables. It provides its own query language (Hibernate Query Language / HQL) that fills in where SQL falls short when dealing with objects. The latest version as of June 2014 is 4.3.5.

What is NoSQL?

It stands for Not Only SQL and provides an alternative to relational databases. Instead of tabular data stores, they use graph stores, key-value stores, document databases, and wide-column stores. It is popular in the agile development world as developers don’t have to finalize the data model before storing information.

What are the risks of storing a hibernate-managed object in a cache? And, how do you overcome the problems?

With an answer of something along the lines of the following; The primary problem here is the object will outlive the session it came from. Lazily loaded properties won’t get loaded if needed later. To overcome the problem, cache just the object’s id and class, then have retrieve the object in the current session context.