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

Answer Posted / karthik

Join is a keyword which is used to join two or more table.

The unique column in a table is called primary key.

If primary key acting as a normal attribute in some other
table then this attribute is called foreign key.

If table is having more than one unique attribute then the
rest of the attributes of primary key is called candidate key.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we do dml on views?

555


Does hive support indexing?

521


What happens when the SQL Azure database reaches Max Size?

90


What is user-defined scalar function?

560


What is the recovery model? List the types of recovery model available in sql server?

491






what is create database syntax? : Sql server database administration

611


Can a rule be bound to any column of any data type?

572


Describe in brief authentication modes in sql server.

569


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2019


Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

871


What are various ways to enhance the ssrs report?

534


What is create command?

524


What is snapshot report?

129


What is the user of Primary key?

579


What are the new security features added in sql server 2012? : sql server security

536