RDBMS Notes 2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

CLASS – XTH

UNIT – 4 RDBMS
[CH- 2 CREATE & EDIT TABLES USING WIZARDS & SQL COMMANDS]
TOTAL MARKS – 12

1. Fill – ups –
 By default all the fields will have Text [VARCHAR] data type.

2. Define the following terms: tables, columns and rows.


Tables: A table is a set of data elements (values) that is organized using model of vertical columns
(which are identified by their name) and horizontal rows. A table has a defined number of columns, but
can have any number of rows.
Columns or Fields or Attributes: a column is a set of data values of a particular simple type, one for
each row of the table. The columns provide the structure according to which the rows are composed. For
example – cFirstName or CLastName are fields in a row.
Rows or Records or Tuples: a row also called a record or tuple represents a single, data item in a table.
Each row in a table represents a set of related data and every row in the table has the same structure.

3. In how many ways table can be created in base?


Ans. There are different ways to create a table:
1. Create table in Design View
2. Use Wizard to Create Table
3. Using SQL view.

4. What are the Data Types? Name the data types available in OpenOffice Base.
Ans. Datatypes are used to identify which type of data (value) we are going to store in the database.
Fields themselves can be of different types depending on the data they contain. Data types in OpenOffice
base are broadly classified into five categories listed below.
• Numeric Types • Date time
• Alphanumeric Types • Other Variable types.
• Binary Types

5. What are Numeric Data Types? List datatypes available in numeric datatype.
Ans. Numeric Types: Numeric data types are used for describing numeric values for the field used in the
table of a database. Numeric data types in a database can be used for storing information such as mobile
number, roll number, door number, year of school admission, true or false statements, statistical values,
etc. The different types of numeric data types available are listed here-
6. What are the alphanumeric data types? List the datatypes available in alphanumeric
datatypes.
Ans: alphanumeric data types are used for describing alphabets and numeric values for the field used in
the table of a database. Alphanumeric datatypes inn a database can be used for storing information such
as Name, Address etc. The different types of alphanumeric data types available listed here :

7. What are date and time data types? List datatypes available in date and time datatype.
Ans. Date time data types are used for describing date and time values for the field used in the table of a
database.it is used for storing information such as date of admission, date of birth, date of product sale
etc. The different types of date time data types in available are listed here –

Name Description
Date Stores month, day and year of information.
Time Stores hour, minute and second information
Timestamp Stores date and time information.
8. What is the difference between DDL and DML commands? Give some examples of DDL and
DML commands.
DATA DEFINITION / DESCRIPTION LANGUAGE: - It is a standard for commands that define
the different structures in a database. DDL statements create, modify and remove database
objects such as tables, indexes and users. Common DDL Statements are:-
1. Create: - Used to create database objects.
2. Alter: - Used to modify database objects.
3. Drop: - Used to delete database objects.

DATA MANIPULATION LANGUAGE: - It is a standard for commands that enables users to


access and manipulate data in a database. Common DML Statements are:-
1. SELECT: - Used for retrieval of information from the database.
2. INSERT: - Used for insertion of new information into the database.
3. DELETE: - Used for deletion of information in the database.
4. UPDATE: - Used for modification of information in the database.

9. Name different binary data types.


Ans - Binary data types are used for storing data in binary formats. Binary data types in a database can
be using for storing photos, music files, etc. Different Binary data types are –
 Binary,  VarBinary,  LongVarBinary

You might also like