adspace


Is it possible to have more then one foreign key in a
single table? if possible, is this the good way to design
the table?

Answer Posted / gaurav gautr

yes it is possible but your data fetch speed will slow down

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1124


Explain “row_number()” in sql server with an example?

1079


Why and when do stored procedure recompile?

1061


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?

2567


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1299


Can sql servers link to other servers like oracle?

916


What is an indexed view?

1022


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

1071


Can we do dml on views?

1038


Can one drop a column from a table?

1089


What is the difference between upgrade and migration in sql server?

1184


How to remove duplicate rows from table except one?

1088


What is a coalesce function?

1283


How efficient you are in oracle and SQL server?

1257


What is the primary use of the model database?

1149