Question
In a relational database, which key uniquely identifies
tuples within a table and can never contain NULL values?Solution
A Primary Key uniquely identifies each record (or tuple) in a table and cannot contain NULL values. It enforces entity integrity, ensuring that every row in a table has a unique identifier. For example, in a table of employees, an employee ID serves as a primary key, ensuring no duplicate or NULL entries exist. Why Other Options Are Incorrect:
- Foreign Key: Links one table to another and can contain NULL values in some cases; its purpose is to enforce referential integrity, not uniqueness within its table.
- Candidate Key: A potential key that can uniquely identify tuples but is not chosen as the primary key.
- Alternate Key: A candidate key not selected as the primary key but still capable of uniquely identifying records.
- Composite Key: A primary key consisting of multiple columns but is a type of primary key, not a separate concept.
" рдЕрдкрдирд╛ - рдЕрдкрдирд╛ рд╕рд╛рдорд╛рди рдЙрдард╛рдУ рдФрд░ рдЪрд▓рддреЗ рдмрдиреЛ " рд╡рд╛рдХреНрдп рдореЗрдВ рд╕рд░реНрд╡рдирд╛рдо рд╣реИ :-
рдЬрд┐рд╕ рд╢рдмреНрдж рдореЗрдВ рдХрд┐рд╕реА рдХрд╛рдо рдХрд╛ рдХрд░рдирд╛ рдЕрдерд╡рд╛ рд╣реЛрдирд╛ рдкрд╛рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдЙрд╕реЗ рдХрд╣...
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ рд╡рд╛рдХреНрдп рд╢реБрджреНрдз рд╣реИ?
Assets рдХреЗ рд▓рд┐рдП рд╕рд╣реА рдкрд╛рд░рд┐рднрд╛рд╖рд┐рдХ рд╢рдмреНрдж рд╣реИ ?
рдЕрдиреБрдЧреНрд░рд╣┬а рд╢рдмреНрдж рдХрд╛┬а рд╡рд┐рдкрд░реАрддрд╛рд░реНрдердХ рд╢рдмреНрдж рдЪреБрдирдХрд░ рд╕рд╣реА рдЙрддреНрддрд░ рдХреЗ ...
'рдордирд╕реНрддрд╛рдк' рдХрд╛ рд╕рдВрдзрд┐-рд╡рд┐рдЪреНрдЫреЗрдж рдХреНрдпрд╛ рд╣реЛрдЧрд╛ ?
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХрд╣рд╛рдирд┐рдпреЛрдВ рдореЗрдВ рд╕реЗ рдкреНрд░реЗрдордЪрдВрдж рдХреА рдХрд╣рд╛рдиреА рдХреМрди-рд╕реА рдирд╣реАрдВ я┐╜...
'рджреНрд╡рд┐рдЬ' рдХрд╛ рд╕рдВрдмрдВрдз рдХрд┐рд╕ рд╢рдмреНрдж рд╕реЗ рдирд╣реАрдВ рд╣реИ?
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдпреБрдЧреНрдо-рд╢рдмреНрджреЛрдВ рдХрд╛ рдЕрд░реНрде рд▓рд┐рдЦрд┐рдПред┬а
рдЕрдкреЗрдХреНрд╖рд╛- рдЙрдкреЗрдХреНрд╖рд╛
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдЕрд╢реБрджреНрдз рд╡рд╛рдХреНрдп рд╣реИ: