1)what is difference between char and varchar in sql server
2005
2) what is composite key and candidate key
3) what is temporary table and derived table
4) how to calculate difference between two dates
Answer / murugavel
1) char datatype is used to store fixed length character
value & varchar is used to store variable length character
value.
2) Composite Key: combination of multiple fields will
produce the uniqeness is called composite key.
Candidate Key: A field has the ability to become a primary
key is known as candidate key.
3) Temporary Table: This table is only visible to this
session of SQL Server. When I close this session, the table
will be automatically dropped. You can treat this table just
like any other table with a few exceptions. The only real
major one is that you can't have foreign key constraints on
a temporary table.
Derived Table:In very basic terms, a derived table is a
virtual table that's calculated on the fly from a select
statement. The biggest benefit of using derived tables over
using temporary tables is that they require fewer steps, and
everything happens in memory instead of a combination of
memory and disk
4) using DATEDIFF function
Ex: SELECT DATEDIFF(dd,"01 March 2010","18 March 2010")
| Is This Answer Correct ? | 24 Yes | 0 No |
what is the need of using interface in program ex:if we have a program like this interface1() { void method1(); void method(); } class a1 : interface1 { a1 b = new b(); b.method1(); b.method2(); } so without using interface also we can achieve this then wat is the need to use the interface? plz give me the answer
What are the differences between system.string and system.text.stringbuilder classes?
What is an object pool in .net?
What are collection classes?
Difference between multi-level and multiple inheritance?
How much time will it take to learn unity?
Explain the term inheritance in C#.
0 Answers Deloitte, JPMorgan Chase,
If we write a goto or a return statement in try and catch block will the finally block execute?
How is a string immutable?
Explain ACID rule of thumb for transactions.
How long does a loop recorder procedure take?
Can multiple catch blocks be executed?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)