What is Primary key and foreign key? Give an example
Answers were Sorted based on User's Feedback
Answer / vipin
Primary key which enforce the uniqueness in each row og table .
Foreign key win which the existing value in table must be there in other table .
diffrence is that PK does not allow Null Values anf FK allow null values
Is This Answer Correct ? | 17 Yes | 2 No |
Answer / brajesh kumar srivastava
Primary key enforce uniqueness of column and deny to allow
null values to this column and enforce referential data
integrity constraint to other table column which is call
foreign key.
Foreign key column may contain null value
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / aaaaaaaaaaaaa
Primary key is a primary key that is an attribute.
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / alquama rizvi
MS-Access requires a special way of recognising every record of a table. For this you have to set or make a primary key. If you do not do so, MS-Access does this itself by adding a new field , serving as the primary key. A table may have only one primary key, although it may have more than one fields.
Is This Answer Correct ? | 0 Yes | 0 No |
How to create a user to access a database in ms sql server using "create user" statements?
What are partitioned views and distributed partitioned views?
Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security
What is dirty page?
What are the database roles? : sql server security
What is catalog views?
What are the advantages of having an index on the sql server?
How many types of indexes are there in SQL Server?
6 Answers CarrizalSoft Technologies, United Healthcare,
What is difference between rownum and row_number?
What is the query optimization statistics?
What are the steps to process a single select statement?
Explain the basic concepts of SQL server architecture?
2 Answers College School Exams Tests,