SESSION 2 : CREATE AND EDIT TABLES USING WIZARD AND SQL COMMANDS
Unit – 3 DBMS
SESSION 2 : CREATE AND EDIT TABLES
USING WIZARD AND SQL COMMANDS
Q1. What do you mean by RDBMS?
Ans. RDBMS stands for Relational Database Management System. It is a
database management system which is based on relational model.
Q2. Define the following terms :
1 Table
2. Fields
3. Records
Ans.
Table : A table is a set of data elements that is organized in vertical
columns and horizontal rows.
Fields : A field is a set of data values of a particular simple type,
one for each row of the table.
Records : A row also called a Record or Tuple represents a single, data
item in a table.
Q3. What are the two ways of creating table in OpenOffice Base.
Ans. Two ways of creating table in OpenOffice Base are :
a. Create table in design view
b. Use Wizard to create table.
Q4. What do you mean by Data type? Give example of two data type used in
OpenOffice Base.
Ans. Datatypes are used to identify which type of data (value) we are
going to store in the database.
Q5. Identify the data type in which we can store the decimal value :
a. Boolean
b. TinyInt
c. Decimal
d. Real
e. Double
f. Smallint
Ans. Data types in which we can store the decimal value are :
c. Decimal
d. Real
e. Double
Q6. What is the difference between Char and Varchar data type?
Ans. Char is a fixed length data type and Varchar is a variable length
data type.
Q7. Write the data type suitable for the following fields.
a. DateofBirth
b. Name
c. Rollno
d. Class
e. Email
f. City
Ans.
a. DateofBirth – Date
b. Name – Char or Varchar
c. Rollno – TinyInt / Smallint / Integer
d. Class – Char / Varchar
e. Email – Char or Varchar
f. City – Char or Varchar
Q8. Write four data types available in Alphanumeric Data types.
Ans. Four data types available in Alphanumeric Data types :
- LongVarchar
- Char
- Varchar
- Varchar_Ignorecase
Q9. Data in a (RDBMS) is organized in the form of __________________.
Ans. Tables.
Q10. In RDBMS table is also known as ________________
Ans. Relation
Q11. Write four data types which are used to store numerical value.
Ans. Four data types which are used to store numerical value are
- Smallint
- Bigint
- Integer
- Float
Q12. Write four appropriate field names and their data types to store
record of student.
Ans. Four appropriate field names and their data types to store record
of students are :
1 Name —————— Char / Varchar
2. Admno —————- Integer
3. Fees ——————–Float/Double
4. DOB ——————-Date
Q13. Write four appropriate field names and their data types to store
record of book.
Ans. Four appropriate field names and their data types to store record
of book are :
a. Author_name ————- Char / Varchar
b. Price ———————– Float / Decimal / Double
c. Class ———————– Char / Varchar
d. Subject ———————Char / Varchar
Q14. What is the default data type of a field while creating table in
design view?
Ans. Varchar
Q15. _______________ are the basic building blocks of a database.
Ans. Tables
Q16. Write the expanded form of SQL
Ans. SQL : Structured Query Language
Q17. A table has __________________ (horizontal / Vertical) row and
____________________ columns (horizontal / Vertical).
Ans. Horizontal , Vertical
Q18. OpenOffice Base is an open source _________________ (DBMS / RDBMS )
Ans. RDBMS
Q19. ________________ (Database / Table ) wizard helps you to create a
new database.
Ans. Database
Q20. Multiple tables can be created in a database. (T / F)
Ans. True
Comments
Post a Comment