0% found this document useful (0 votes)
10 views2 pages

X DBMS Notes

class 10 Information technology

Uploaded by

Renu Malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

X DBMS Notes

class 10 Information technology

Uploaded by

Renu Malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.What is a data type?

Ans. The attribute of a field that determines the kind of data the field can contain is
called data type.

2.What is a primary key in Database? Give an example.

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.

3. Name two possible Primary key fields for an employee table.

Possible Primary key fields for an Employee table are: Empcode, Empname.

4.Give any one advantage of using Primary Key.

Ans. The primary key is one which is having a unique value for the row. This key
helps us to uniquely identify each row.

5. Write the difference between Text and memo data types.

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.

[Examples of Admission numbers: S100, S101, S102].

Ans. The data type is: Text or VARCHAR

7.What are DDL and DML?

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.

For example, INSERT INTO, DELETE FROM, UPDATE.

8.What is the purpose of ALTER command?


Ans. This command is used to change or alter the table structure. We can
add new columns and change the data type of column or drop any
constraint like primary key using alter command.

9.What are queries?

Ans. Queries are those objects in a database that allow us to view,


change, and arrange data stored in tables.

10. What is select query?

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

11. What are table relationships?

Ans. Table relationships means to create a link between two or more


tables within a database. A table relationship exists when two tables share
some information in the form of common fields.

12.How does a relationship occur between two tables?

Ans. A relationship between two tables occur through a primary key and a
foreign key.

You might also like