Skip to main content

Explain different type of data attributes.


Different types of data attributes are:
a.      Key & Non-Key Attribute: Key attributes are those attributes which uniquely identifies an entity. Non-Key are all those attributes which are not a key. For example: in entity student, student_roll_number can be primary key as it uniquely identify the entity student, other all attributes like first_name, middle_name, last_name, address, date_of_birth etc. are non-key attributes.

b.      Single & Composite Attribute: Composite attributes are the attributes having many parts to them whereas Single attributes are those which does not. Composite attributes can be sub-divided into other single attributes, which will still have its meaning. Single attributes are simple an attribute which cannot be sub divided. For example: consider an entity student having an attribute: name, which can be divided: first_name, middle_name and last_name. Here, the attribute, name can be considered as composite attribute and first_name, middle_name and last_name.

c.       Single-valued & Multi-valued Attributes: Single-valued attributes can only have one value while multi-valued attributes usually can store multiple data in them. For example: in entity student, attribute address can be considered as multi-valued, as it can hold multiple values like street address, city etc. and student’s last_name can be considered as single valued attribute as a student have only one last_name.

Derived attributes: Derived attributes are those attributes whose value can be calculated from other attributes. For Example: in entity student, attribute age can be calculated form attribute date_of_birth.

Comments

Popular posts from this blog

SAP-1(Simple as Possible-1) Computer Architecture Introduction

The Simple-As-Possible (SAP)-1 computer is a very basic model of a microprocessor explained by Albert Paul Malvino. The SAP-1 design contains the basic necessities for a functional Microprocessor. Its primary purpose is to develop a basic understanding of how a microprocessor works, interacts with memory and other parts of the system like input and output. The instruction set is very limited and is simple. The features in SAP-1 computer are: W bus – A single 8 bit bus for address and data transfer.  16 Bytes memory (RAM)  Registers are accumulator and B-register each of 8 bits.  Program counter – initializes from 0000 to 1111 during program execution.  Memory Address Register (MAR) to store memory addresses.  Adder/ Subtracter for addition and subtraction instructions.  A Control Unit  A Simple Output.  6 machine state reserved for each instruction  The instruction format of SAP-1 Computer is (XXXX) (XXXX) A Simple animation ...

[FIX]Illuminate\Database\QueryException SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = enrolmentsystem and table_name = migrations and table_type = 'BASE TABLE')

Illuminate\Database\QueryException    SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = enrolmentsystem and table_name = migrations and table_type = 'BASE TABLE')   at vendor/laravel/framework/src/Illuminate/Database/Connection.php:678     674▕         // If an exception occurs when attempting to run a query, we'll format the error     675▕         // message to include the bindings with SQL, which will make this exception a     676▕         // lot more helpful to the developer instead of just the database's errors.     677▕         catch (Exception $e) {   ➜ 678▕             throw new QueryException(     679▕                 $query, $this->prepareBindings($binding...