SQL Server Interview Questions
Questions Answers Views Company eMail

1 01 101 01010

689

Find top Nth employee from each department in terms of salary?

RealPage,

13 15448

How to get last system shutdown time in Sql server when restarted system?

1 6237




How maney row would be print after join if A table have 100 rows and B table have 50 rows...

Hewitt,

9 5983

How will you collect the date from current date to last older 6 days date in sql server 2005

4 2846

how we can store the value like that 001,003,023 etc in sql server 2005

7 4497

Selet all the data from table where last name is n of employee

2 2795

How to find the latest updated value in a table without sending any parameters to that query

2 3117




how to improve the speed of SQL database server and how to avoid dead lock?

TCS,

1 4188

What is the disadvantages of index?

TCS,

3 5171

Hi All, I want to display all duplicate records in the table. My query has to fetch all the records which are duplicate(First Name or Last Name). Also I want the ability to also pull names where there might be a middle initial placed in the end of the first name field, (i.e., "Maria Z. " vs. "Maria") as well. Please guide me to find this. Table: ID FirstName LastName 1 Zach H Hoffman 2 Zach Hoffman 3 Troy Hoffman 4 Shawn Livermore 5 Prem S 6 Jony Hoffman H 7 Zach Modan I need the query to filter......... ID FirstName LastName 1 Zach H Hoffman 2 Zach Hoffman 3 Troy Hoffman 6 Jony Hoffman H 7 Zach Modan I hope this example will give you clear idea..... Thanks in Advance Prem

2 2322

select names starts with a,b,c

Scope International,

8 7281

How to convert a table data in XML format in sql server?

1351

how to do partition in sqlserver

TCS,

1264

can any body tell me how to know the password of current user in sql server

Crea, HCL,

878


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

Explain Capacity planning to create a database? and how to monitor it?

2710


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

1185


query processing

956


last function used in MS Access to convert sql what function will use in sql

807


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

1192






Working with TLogs

640


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

768


How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

573


Delete duplicate rows without using rowid.

135


How to trouble shoot if unable to connect SQL Server

725


how to overcome kernel isssues

435


What are the dis_advantages of stored procedures, triggers, indexes?

903


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

1195


i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

658


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

1526