Professional Documents
Culture Documents
This constraint says that, for every tuple in R, the tuple in S to which it refers must actually be in S. Note that a foreign key may refer to a tuple in the same relation and that a foreign key may be part of a primary key . A foreign key may have value null in which case it does not refer to any tuple in the referenced relation. A set of attributes FK in relation schema R1 is a foreign key of R1 that references relation R2 if it satisfies following two rules The attributes in FK fave the same domain(s) as the primary key attributes PK of R2;the attributes FK are said to reference or refer to the relation R2 A value of FK in a tuple t1 of the current state r1(R1) either occurs as a value of PK for some tuple t2 in the current state r2(R2) or is null.In the former case ,we have t1[FK]=t2[PK], and we say that the tuple t1 references or refers to the tuple t2.
7. what is DDL
DDL means Data Definition Language Used by the DBA and database designers to specify the conceptual schema of a database. In many DBMSs, the DDL is also used to define internal and external schemas (views). DDL commands are CREATE ALTER TRUNCATE
UPDATE uses the SET clause to overwrite the value. Change the last name of an Employee:
Naive/Parametric end users: Typically the biggest group of users; frequently query/update the database using standard canned transactions that have been carefully programmed and tested in advance. Examples: i. bank tellers check account balances, post withdrawals/deposits ii. reservation clerks for airlines, hotels, etc., check availability of seats/rooms and make reservations. iii. shipping clerks (e.g., at UPS) who use buttons, bar code scanners, etc., to update status of in-transit packages.
Weak Entity Types: An entity type that has no set of attributes that qualify as a key is called weak. (Ones that do are strong.)
18.what is DBMS
Database management system is software of collection of small programs to perform certain operation on data and manage the data. Two basic operations performed by the DBMS are: Management of Data in the Database Management of Users associated with the database.
Informally,
relational
algebra
is
(high-level)
procedural
language and relational calculus a non-procedural language. Relational algebra operations work on one or more relations to define another relation without changing the original relations.
20.define catalog
system catalog, which contains a description of the structure of each file, the type and storage format of each field, and the various constraints on the data (i.e., conditions that the data must satisfy). The system catalog is used not only by users (e.g., who need to know the names of tables and attributes, and sometimes data type information and other things), but also by the DBMS software, which certainly needs to "know" how the data is structured/organized in order to interpret it in a manner consistent with that structure.
describes the (logical) structure of the whole database for a community of users. Hides physical storage details, concentrating upon describing entities, data types, relationships, user operations, and constraints. Can be described using either highlevel or implementational data model.