oleronesoftwares
Passionate Learner
- Local time
- Today, 02:38
- Joined
- Sep 22, 2014
- Messages
- 1,160
Lets start with your question on "And then, how DLast differs from DFirst? (if both return random records)."
Dfirst retrieves the first occurrence of any data type such as a string, numeric, date, etc in a table
Dlast retrieves the last occurrence of any datatype such as a string, numeric, date, etc in a table.
For tables, there is an actual order for storage , and this need arose because of the following reasons
1. A database can have multiple tables, and some of the tables can have relational data, so there must be a way to link the tables
2. In the event, of two or more records in a table having same details, e.g in a same first name, surname, and gender, if the table does not have a unique field, then a primary key can be used to order and distinguish records.
Dfirst retrieves the first occurrence of any data type such as a string, numeric, date, etc in a table
Dlast retrieves the last occurrence of any datatype such as a string, numeric, date, etc in a table.
For tables, there is an actual order for storage , and this need arose because of the following reasons
1. A database can have multiple tables, and some of the tables can have relational data, so there must be a way to link the tables
2. In the event, of two or more records in a table having same details, e.g in a same first name, surname, and gender, if the table does not have a unique field, then a primary key can be used to order and distinguish records.