What is
SQL, and why is it important?
SQL stands for Structured Query Language, and is the
most important data processing language in use today. It is not a complete
programming language like Java or C#, but a data sublanguage used for creating
and processing database data and metadata. All DBMS products today use SQL
What is
an SQL subquery?
An SQL subquery is a means of querying two or more tables at the same time.
The subquery itself is an SQL SELECT statement contained within the WHERE
clause of another SQL SELECT statement, and separated by being enclosed in
parenthesis. Some subqueries have equivalent SQL join structures, but
correlated subqueries cannot be duplicated by a join..
Discuss
the alternative terminology that is used in the relational model.
Relations are also called tables, and sometimes by the older data processing
term files. A row is known as a tuple in the relational model, but may also be
referred to as a record. Finally, relational model attributes are known as
table columns and sometimes as fields.
Why
are functional dependencies not equations?
Equations deal with numerical relationships. A functional dependency deals
with the existence of a determinant relationship between attributes, regardless
of whether or not there is a numerical relationship between them. Thus, if we
know that there is no hot water every Wednesday, No-Hot-Water is functionally
dependent on Wednesday. So, if we know it is Wednesday, then we know we will
have No-Hot-Water. This is a functional dependency, but not an equation.
What
is a foreign key, and what is it used for?
A foreign key is used to establish relationships among relations in the
relational model. Technically, a foreign key is a column (or columns) appearing
in one relation that is (are) the primary key of another table. Although there
may be exceptions, the values in the foreign key columns usually must
correspond to values existing in the set of primary key values. This correspondence
requirement is created in a database using a referential integrity constraint
on the foreign key.Written by 'Shojib'.
No comments:
Post a Comment