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 is the sql equivaent of the dataset relation object ?
Do you know what are the properties of the relational tables?
What is the difference between SQL notification and SQL invalidation?
your distribution database is full what will u do
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
What are date and time data types in ms sql server?
How to create an index on an existing table in ms sql server?
What is the correct order of the logical query processing phases?
What is the primary use of the model database?
What are the character string functions supported by sql server 2005?
Explain trigger classes i.e. Instead of and after trigger?
How to loop through returning rows?
Can we use where clause in union?
Explain alternate key, candidate key and composite key in sql server?
What is compound operators?