X DBMS Notes
X DBMS Notes
Ans. The attribute of a field that determines the kind of data the field can contain is
called data type.
Ans. The column or set of columns included in the definition of a table is called
PRIMARY KEY. A primary key’s values uniquely identify the rows in a table. Only
one primary key can be defined for each table. For example, in a table like Student,
Roll No. is a primary key.
Possible Primary key fields for an Employee table are: Empcode, Empname.
Ans. The primary key is one which is having a unique value for the row. This key
helps us to uniquely identify each row.
Ans. Text field can contain alphanumeric characters (A-Z and 0-9) plus special
characters such as !, @ and %. Text fields have a maximum length of 255
characters. Memo fields also contain alphanumeric characters, though memo fields
can store much more data than text fields i.e., up to 64,000 characters.
6.Name the data type that should be used to store Student’s Admission numbers.
Ans. DDL. DDL is a part of SQL. It stands for data definition language. It provides
statements for creation and deletion of the database. For example, CREATE TABLE,
ALTER TABLE.
DML. DML is also a part of SQL. It stands for data manipulation language. It
provides statements for manipulating the database. It includes commands to insert,
delete and modify tuples in the database.
Ans. A select query is a simple query which retrieves data from one or
more tables, and in many cases, uses specified criteria to limit the records
displayed and to sort them in a specified order
Ans. A relationship between two tables occur through a primary key and a
foreign key.