Say if we have a table that contains only a single column ,
say OrderID, which has IDENTITY attribute defined on it. So
how can we insert data in this table.
I am reframing my question, that how can we make the table
to increment the column "OrderID" value several times???
Answer Posted / deepak
Madhu, actually the answer which u have given is quite
common. Now i m gonna tell u a new one. The above question
has one more solution that is stated below:
"Insert into Table_name DEFAULT values"
that's it.
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is the difference RDBMS and Graph Database?
Explain log shipping and mention its advantages.
Show Practically Sql Server Views are updatable?
What are different types of join?
What are various limitations of the views?
Detail about the hardware which is supported by SQL server?
How is foreign key related to primary key?
Explain what is log shipping?
What is the difference between an index and a unique index?
What is meant by datasource?
What is “asynchronous” communication in sql server service broker?
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?
Explain the difference between HTTP and HTTPS in database?
What command would you use to create an index?
How sql server executes a statement with nested subqueries?