adspace
What are primary key and foreign key and how they work?
Answer Posted / Mintu Kumar
"A Primary Key is a unique column or set of columns in a table that can be used to identify each row uniquely. It ensures data integrity by enforcing a constraint that requires each value in the primary key column(s) to be unique. A Foreign Key, on the other hand, is a field or set of fields in one table that refers to the Primary Key of another table. It establishes a relationship between two tables and helps maintain data integrity by enforcing referential integrity constraints."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is inner join faster than left join?
how to use regular expression in pattern match conditions? : Sql dba
define sql insert statement ? : Sql dba
Do we need to rebuild index after truncate?
If a cursor is open, how can we find in a pl/sql block?
What is the best sql course?
What is your daily office routine?
Can we rollback truncate?
how many tables will create when we create table, what are they? : Sql dba
Can we use distinct and group by together?
How do I remove duplicates in two columns?
what is dbms? : Sql dba
what is collation? : Sql dba
Is primary key always clustered index?
what is schema? : Sql dba