Yes, coming to your answer clustered index is used and applied only and primary keys
For example if a table student is created consider here in this table student id is the primary key so clustered index is applied on the student id column.
Coming to non-clustered index consider other table employee table here employee id is the primary
Key and it is foreign key for student table and there may be more than one foreign key so non-clusterd index is applied on foreign key? and candidate keys.
If you have the better answer, then send it to us. We will display your answer after the approval.
Can we generate a trigger for two tables? if so what is the query to generate a trigger for two tables employee table and department table with employee having department no.
I was asked in an interview... "Suppose u have a field with UNIQUE KEY. can u leave two or more cells NULL in SQL Server 2005...If Yes then Why...if NOT then Why.....