Database: What's the difference between set, bag, and list?
15 February, 2019
In database course of Carnegie Melon University, Professor Andy mention several import concepts of database, set, list and bag.
What’s the difference? Here is the answer.
| order | duplicate | |
|---|---|---|
| set | unorder | without duplicate |
| list | ordered | with duplicate |
| bag | unordered | with duplicate |
Reference
-
https://cs.wellesley.edu//~cs230/spring07/lectures/lec13_sets_bags_tables/lec13_sets_bags_tables.pdf
-
CMU Database Systems - 01 Course introduction & Relational Data Model (Fall 2018)