In this article, we will talk about Data types in Base Class 10 it 402 for learning outcome 2 of Unit 3 Database management system.

Data types in LibreOffice Base Class 10 IT 402

Let’s begin Data types in Base Class 10 IT 402 with the introduction to data types in LibreOffice Base. As we have covered fundamentals of database tables in an earlier article. To read the article Database Concepts and Introduction to DBMSClick here.

Your database tables can have different types of values or data. It defines which kind of data we are going to use in our tables. The nature of data to be entered for various fields are of different types.

For example:

FieldData Type
NamesText
MarksNumber including decimals
Admission DateDate
ClassNumber without decimals
PhotoBinary Object

The memory size of database tables are depends on the data types and values entered in the table.

There are five basic types of data we can insert into the table.

  1. Numbers – It stores numeric values having integers and fractional numbers.
  2. Text – It holds the textual data with the combination of numbers and digits and special characters.
  3. Date-Time – The date-time data type is used to save the dates into a database field.
  4. Binary – Binary types stores large types of data such as images, audio or video files.
  5. Other Variable – Other variable types can have data of other remaining objects.

In the next section of Data types in Base Class 10 IT 402 let’s talk about details about above numeric types.

Numbers

LibreOffice Base Provides following different types of data types:

S.NONameDataSignedLength
1Tiny IntegerTINYINTNo3
2Small IntegerSMALLINTYes5
3IntegerINTEGERYes10
4Big IntegerBIGINTYes19
5NumberNUMERICYes19
6DecimalDECIMALYes19
7FloatFLOATYes17
8RealREALYes17
9DoubleDOUBLEYes17
10Yes/NoBOOLEANNo1

Text

LibreOffice Base provides following types of text data types:

S.NONameDataLength
1Text VARCHARUser Defined
2Text (fix)CHARFixed Length
3MemoLONGVARCHAR64000

In the next section of Data types in Base Class 10 it 402 we will talk about binary data types.

Binary Types

The certain types of binary data types are as following:

  1. LONGVARBINARY: This type will store a specific image with array of bytes i.e. images, sound files etc. without validation.
  2. BINARY(fix)/Binary: This is also used to store data into binary form.

Date/Time

Sometimes you need to store dates like date of admission, date of joining, date of birth, date of event, date of transaction with a specific time or without time. The date/time data types is used to store such dates in LibreOffice base tables.

So in this section of Data types in Base Class 10 it 402 we will talk about three types of date/time data types supported by LibreOffice Base.

  1. DATE: It stores a date in common format like month, day and year i.e. 1/1/99. The date ranges are 1/1/99 to 1/1/9999
  2. TIME: It stores a particular time in hour, minute and seconds format. The seconds since 1/1/1970.
  3. TIMESTAMP: It stores the value with and time together in the table field.

Other Data Types

In these types of data type, you can store any serialized objects of java like connector or specific script through objects. It is mostly used for the coding purpose only.

So here we conclude our today’s session for Data types in Base Class 10 it 402. I hope you enjoyed this article. Do like, share and comment your opinion about this article.

Thank you for visit. Visit again.

Recommended: Information Technology

Follow this link for more important questions on Datatypes in Base:

Important questions – Datatype in Base

Leave a Reply