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 / sonia
10) Null is not equal to "" or 0. it is un identified value
means suppose there is column Phone number.
If we do not any phone number we can insert NULL.
"" means empty String.
Select * from table where roll=""(EMPTY)
select * from table where roll is NULL(UNDEFINED)
2) Correct Answer.
View is made up of base tables. Suppose we select data from
two table table1 & table2 ,these are base tables.
He wants to ask u if we drop a table table2,Will view give
error.
Yes.But if we recreate the table we can query the view
again.
Try it by urself--
First create the view by selecting the data from two tables
then select columns from view
Suppose select * from view1
then drop one of the tables
then select * from view1 gives error.
12) NO.
13) ENTITY INTEGRITY--We cannit insert null in a parimary
key. CZ if two columns have tha value we cannot distinguish
b/w two rows.
REFERENTIAL INTEGRITY---Vales in foregn key table are only
those that match a value in a primary key table.
DOMAIN CONSTRAINT--A unique value for a column.
Exampl--Empid
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio
What is a view in sql?
How raid can influence database performance?
Does partitioning ssd reduce performance?
What is difference between join and natural join?
What is meant by indexing files?
You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?
How to return the second 5 rows in ms sql server?
Write a sql query to get zero records from a table having n number of records?
Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
how do you test proper tcp/ip configuration windows machine? : Sql server database administration
explain different types of joins? : Sql server database administration
Determine when to use stored procedure to complete sql server tasks?
Can you name some of the dml commands in sql?
How to delete existing triggers using "drop trigger"?