Fortune Telling Collection - Horoscope - According to the relational model students (student number, name, gender, date of birth), the query gender is "male", sorted by age from small to large.
According to the relational model students (student number, name, gender, date of birth), the query gender is "male", sorted by age from small to large.
The older the date of birth, that is, the later the birth, the younger the age, so if you want to sort the age from small to large, you should sort the date of birth from big to small.
Extended data
The relational schema can be formally expressed as: R(U, d, dom, f). Where, R is the relationship name, U is the set of attribute names that make up the relationship, D is the domain from which the attributes in the attribute group U come, dom is the mapping set from attributes to domains, and F is the data dependency set between attributes.
Usually abbreviated as: R(U) or R(A 1, A2…An), where r is the relationship name, u is the set of attribute names, A 1, A2…An is each attribute name.
The integrity of the relationship is a constraint on the relationship. There are three situations:
1, entity integrity: The primary attribute cannot be empty, which ensures the uniqueness of each tuple.
2. Reference integrity rules: As follows, the foreign code value in P can only be empty or the main code value in C. ..
3. User-defined integrity: user sets constraints, such as the attribute cannot be empty. The latter two are supported by all database systems, while user-defined integrity is user-defined.
- Related articles
- See if marriage is suitable. Is there an example where two constellations are incompatible but have a happy marriage?
- A constellation that stutters when you meet someone you like.
- Who is the luckiest among the twelve constellations? The lucky sign is Pisces.
- How about the credit card of Minsheng Bank?
- Do all boys like goddess girls?
- The twelve constellations punish others _ the performance of the twelve constellations to punish others
- 1982 What is the constellation of the 21st December of the lunar calendar?
- The lunar calendar of the constellation 12 is _ 12. What is the date of the lunar calendar?
- How should Taurus meet the prince charming in his heart?
- These constellations are all big love species, right?