SQL Server Interview Questions
Questions Answers Views Company eMail

1 01 101 01010

827

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

RealPage,

13 16407

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

1 6657




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

Hewitt,

9 6267

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

4 3112

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

7 4705

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

2 3043

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

2 3319




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

TCS,

1 4370

What is the disadvantages of index?

TCS,

3 5408

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 2505

select names starts with a,b,c

Scope International,

8 7609

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

1480

how to do partition in sqlserver

TCS,

1371

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

Crea, HCL,

980


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

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.

1642


wat wil hapn if we give the both read and deny read permission to user?

1029


Call by value and call by reference in procedure and function, with NOCOPY.

230


Does any body please help me what question's have asked for SSRS in the interview?

977


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

928






If a stored procedure is taking a table data type, how it looks?

4790


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?

1327


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

853


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

1227


SQL Server Architecture ?

1205


If we delete pack Spec what will be the status of pack Body ?

251


1 01 101 01010

827


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?

927


how to do partition in sqlserver

1371


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?

1331