1. What are the grouping function in SQL ?
2. If base table of a view deleted means, what will happen
while we querying on view ? will give any error ?
3. Difference between DROP, DELETE, TRUNCATE table ?
4. What is constraints and types ?
5. What is max size of nchar & nvarchar ?
6. Define ROLLBACK, COMMIT, SAVE POINT
7. How non-clustered better ? or rank the Clustered,
Non-Clustered and Table scan in performance wise
8. Select 10 rows from a table ?
9. Define DML, DDL, DCL, DTL commands ?
10. What is mean by NULL value ? NULL means "" or 0 or
undefined ?
11. Default constraints ?
12. Can we have more then primary Key in table ?
13. Type of integrity ? Entity, Referential, Domain ?
Answer Posted / laxman
What are the grouping function in SQL ?
Grouping functions are:
max()
min()
sum()
avg()
Select 10 rows from a table ?
select * from table_name where count(*) <=10
or
select top 10 from table _name
10. What is mean by NULL value ? NULL means "" or 0 or
undefined ?
Null is not equal to "" or 0. it is un identified value
12. Can we have more then primary Key in table ?
no, we can't.
2. If base table of a view deleted means, what will happen
while we querying on view ? will give any error ?
i dont know exactly. but it likely base table doesnt exists.
4. What is constraints and types ?
types:
primary key
foreign key
not null
unique
defaults
check
rule
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are commonly used mssql functions in php?
Explain the truncate command? : SQL Server Architecture
How is foreign key related to primary key?
What are different types of database indexes?
Explain “not null constraint” in sql server?
explain databases and sql server databases architecture? : Sql server database administration
How to execute the cursor queries with "open" statements?
Does partitioning improve performance sql server?
explain different types of constraints? : Sql server database administration
How to connect sql server management studio express to sql server 2005 express?
What are data files?
Do you know sql server 2008 backup compression?
how to trace the traffic hitting a sql server? : Sql server database administration
Can you force a query to use a specific index?
What is self contained sub query?