SQL Server Interview Questions
Questions Answers Views Company eMail

i have table students with fields classname,studname select * from students classname studname 1 xxxxx 1 yyyy 1 zzzz 2 qqqq 2 tttt 3 dsds 3 www i want the output should be No of students in class 1 : 3 No of students in class 2 : 2 No of students in class 3 : 2

HCL, ZX,

5 5278

what is the difference between group and having give an example with query and sample output

7 5147

What is Data model and how to prepare a data model.?

TCS,

1 3799




what is a stored procedure and trigger?

3 2791

How to retrieve data from log files in SQL SERVER ?????

1 4674

How To Change Column Ordinal Position in SQL Server 2005 using Query i.e I Want To Add Column at Particular Ordinal Position in SQL Server 2005

2 7060

Whether the updations made to the views reflect the original records in the table

NIIT,

5 5889

How can i give the restrictions for the data entry, if i wish to enter only I ,II, III, IV in the grade actegory of student table?

3 3205




how to select 5 to 7 rows from a table, which contains 10 rows?

IBM,

21 12879

How to select nth record from a table?

Ramco, Microsoft, DELL,

13 27085

role of sql sever 2005 in database rather than any other database

892

1. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do

IBM, CSC,

1351

Which is the best place or learning center for MS SQL?????In Bangladesh?????

TCL, Wipro,

888

what is the difference between Delete and Truncate

Geo Research Centre, CarrizalSoft Technologies,

4 4866

from the table display the 2nd highest salary? and also the least 2nd salay?

8 5324


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

1361


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

946


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

869


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

367


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

2821






how to use DTS package in 2000,2005,2008 in sql server

791


Comment,Datatypes are unlimited

931


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

892


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?

1250


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

1270


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.

787


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

882


How to restore performance issues and how to check?

856


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

1269


what is difference between view and Dip.

1219