| Other SQL Server Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the difference between a local and a global variable? | | 3 |
| i have a table #temp1(id, Name groupname ) and record
like this 1 R1 S
2 R3 S
3 R2 S
4 R4 D
5 R5 D
6 R6 K
7 R7 K
8 R8 L
9 R9 L
10 R10 L
11 R11 K
and i want to display record based on user defind sorting
order e.g.
1 R4 D
2 R5 D
3 R6 K
4 R7 K
5 R11 K
6 R1 S
7 R3 S
8 R2 S
9 R8 L
10 R9 L
11 R10 L | | 4 |
| How to delete duplicate records from a table?(for suppose in
a table we have 1000 Records in that we have 200 duplicate
Records , so ,how to findout that duplicate Records , how to
delete those Records and arranged into sequence order? one
more thing that there is no primary key at all) | McAfee | 4 |
| Accidentally i deleted my table. How can i get that table? | | 4 |
| table:employee
EID ENAME MID(manager ids)
101 rama null
102 sita 101
103 siva 101
104 ganesh 103
. . .
. . .
for 103 ID the manager ID is 101(RAMA) and for 104 manager
is SIVA
if i give employee id (EID) you have to tell the manager for
that EID write query?
eample:if i give 102 .The query output should be manager for
102 ID that it should print RAMA as output
| | 5 |
| hi,
how to match retrieve the unmatched records from 2 tables
in which we dont have any primary key. example : table1 has
1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want
the numbers from 6 to 10 to be displayed and should not
come as null. i need the numbers. please reply as soon as
possible.
| | 2 |
| How to create logins using windows Authentication mode? | | 2 |
| Questions regarding Raiseerror? | | 1 |
| select empid empname from employee
What is the result for the about query? | | 4 |
| About types of indexes in SQL server ? | Cognizent | 1 |
| how we can count records as a group of days like sum of
records for(four mondays),(four tuesday)........ in a month.
group the column for weekdays.
| | 1 |
| what is the cursor life span? | Evalueserve | 5 |
| What are the four main query statements? | | 3 |
| Which databases are part of SQL server default installation?
Explain the usage of each? | Accenture | 2 |
| what is for foreign key ?? | Sabic | 3 |
| how to rename the table | | 3 |
| Assume,there are three tables in a database, Can i have
both primary key and foreign key for each table in the same
database? | | 4 |
| How do you implement one-to-one, one-to-many and many-to-
many relationships while designing tables? | TCS | 3 |
| What are the new features in SQL Server 2005? | Emphasis | 2 |
| How do you measure the performance of a stored procedure? | Infosys | 1 |
| |
| For more SQL Server Interview Questions Click Here |