what are the joins,primary key,foriegn key, candidate key,
super key and expain them?

Answer Posted / vikash kr pandey

1> JOIN:- JOIN IS USED TO VIEW AND RETRIEVE DATA FROM MULTIPLE TABLE OR RELATED TABLES IN A SINGLE RESULT SET.

2> PRIMARY KEY:-PRIMARY KEY IS A SET OF COLUMNS WHOSE VALUES UNIQUELY IDENTIFY ALL THE ROWS IN A TABLE AND CAN NOT CONTAIN NULL VALUES.

3> FORIEGN KEY:-A COLUMN IN ONE TABLE WHOSE VALUES MATCH THE PRIMARY KEY IN SOME OTHER TABLE IS CALLED A FORIEGN KEY.

4> CANDIDATE KEY:-ANY ATTRIBUTE THAT IS UNIQUELY IDENTIFIES A ROW IN A TABLE IS A CANDIDATE FOR THE PRIMARY KEY. THIS TYPE OF ATTRIBUTE IS CALLED CANDIDATE KEY.

5> SUPER KEY:-THE SUPERTYPE IS DESCRIBED BY ATTRIBUTES THAT BELONGS TO ALL SUBTYPES AND CONNECTED TO THE RELATIONSHIP WITH A LINE CONTAINING A CROSSBAR.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tcl in sql server?

669


Explain how would you store your query in an SSRS report or a Database server?

90


What is #temp and @table variable in SQL server?

585


What is the need for group functions in sql?

567


What is raid and what are different types of raid levels?

594






How to test odbc dsn connection settings?

536


How to insert multiple rows with one insert statement in ms sql server?

587


What are the various editions of sql server 2017 that are available in the market?

507


What is an execution plan? How would you view the execution plan?

551


Explain what is row_number function?

563


How to configure and test odbc dsn settings?

577


please differentiate between delete and truncate?

560


Explain what is the function of sql server agent windows service?

548


you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

548


Introduction of rollup clause using sum and group by clause?

540