adspace


Can two tables share a primary key?

Answer Posted / Arun Kumar Verma

False. A primary key cannot be shared between multiple tables, but they can have common columns that are part of unique or foreign keys.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the primary use of the model database?

1151


do you know how to configure db2 side of the application? : Sql server database administration

1125


How to provide default values to function parameters?

1261


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1024


Equi join and non equi join is possible with sql server?

1134


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1073


How to convert character strings into numeric values?

1192


How to rebuild the master database?

1167


what is the difference between openrowset and openquery?

1197


What is subquery? Explain the properties of a subquery?

1063


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1134


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?

2568


what is spatial nonclustered index

1060


Can sql servers link to other servers like oracle?

919