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
do you know how to configure db2 side of the application? : Sql server database administration
Explain “row_number()” in sql server with an example?
Why and when do stored procedure recompile?
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?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
Can sql servers link to other servers like oracle?
What is an indexed view?
If any stored procedure is encrypted, then can we see its definition in activity monitor?
Can we do dml on views?
Can one drop a column from a table?
What is the difference between upgrade and migration in sql server?
How to remove duplicate rows from table except one?
What is a coalesce function?
How efficient you are in oracle and SQL server?
What is the primary use of the model database?