What is Stored Procedure?

What is Views in sql server?

Difference between a User Defined Function and a Stored Procedure

Difference between a primary key and a unique key?

What is a join and explain different types of joins.

Difference between temp table and table variable

Difference between Triggers and Stored Procedures

Difference between UNION ALL Statement and UNION

What is COALESCE / Why do we use COALESCE?

Why we use SET ROWCOUNT in Sql

How many clustered index can have a table

How many types of local tables in SQL SERVER

Difference between DELETE and TRUNCATE

What is Aggregate Functions?

What is Row_Number()?

What are Ranking Functions?

What is NOLOCK?

What is CTE?

What are the Advantages of using CTE?

What is the STUFF function and how does it differ from the
REPLACE function?

What are the difference between clustered and a non-clustered index?

What are the different index configurations a table can have?

Difference between a HAVING CLAUSE and a WHERE CLAUSE?

Difference between SET and SELECT

Provide all the built in string function of SQL SERVER

Difference between char and varchar data types

Define candidate key, alternate key, composite key.

What are constraints? Explain different types of constraints.

What is a self join? Explain it with an example.


How will you convert table row to a column comma separated value

Answer Posted / jasmeet kaur

What is Views in sql server?
a view is a virtual table,which provides access to a subset of column from one or more table.a view can derive its data from one tables. an output of a query can be stored as a view. view act like a table but it does not physically take any space.view is good way to present data in a particular users from accessing the table directly.

Difference between DELETE and TRUNCATE

delete command
1.DML command
2.can be rollback
3.where clause use
4.slower than truncate
5.trigger can not be fired
6.delete all or selected rows
7.return the number of rows

TRUNCATE command
1.DDL command
2.can not be rollback
3.where clause not use
4.faster than delete
5.trigger can be fired
6.delete all rows
7.does not return the number of rows

What is Stored Procedure?
It is precompiled object stored in the database. It can invoke DDL and DML statement and can return value.

Difference between a HAVING CLAUSE and a WHERE CLAUSE?

where clause="where" is a kind of restriction statement . we use where clause to restrict all data from database. where clause is using before result retrieving.
having clause=having clause is using after retrieving the data. having clause is a kind of filtering command.

What are constraints?
a constraints allows you to apply simple referential checks to a table.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between resultset and resultsetmetadata?

521


Tell me can we use custom code in ssrs?

601


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

499


What is stored procedures?

548


Who developed sql server?

534






How does index makes search faster?

607


what are user defined datatypes and when you should go for them? : Sql server database administration

544


What is scalar user-defined function?

554


what kind of lan types do you know? : Sql server database administration

520


What is the library index called?

594


What are the lambda triggers?

489


Define cursor locking

552


What is federation member?

94


What are different type of Collation Sensitivity?

556


Is sql server is free?

549