SQL Server Interview Questions
Questions Answers Views Company eMail

IN Vs OR operator which is best to use sql server.

4 8292

Can anybody explain me cold backup and hot backup?

TCS,

3 12934

whate is advantages of sql server 2000

943




what is the purpose of creating view is sql server 2000

Wipro,

13 12500

why cluster and non clusterindex are used in sqlserver 2000? explain with example

1 3195

hi, may i know what is the command to get abstract the current month, current year and current day from a given date.i want these three in a isolated way..seperatedly is that any way in sql server 2000

3 3874

how to connect sybase to sql server 2005?.

ABC,

1 2945

how to select a field with firstletter as capital and remaining are small letters

11 11786




How to write stored procedure to update the data in 10 tables

4 10732

How to write query to Delete the records in child table and corresponding records in parent table

Semantic Space,

11 26841

Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?

2 4258

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 5246

what is difference between view and Dip.

L&T, IBM,

1206

what is curser.

9 6623

what is Data Transformation Services (DTS) ?can u explain me in detail?

TCS,

5 9850


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

OPTIMIZATION OF SP,CURSOR,TRIGGERS

1510


You are doing log shipping due to some reasons it is failing. How you will proceed from there

819


Tell about MOM Tool(Microsoft Operator Manager)?

682


what are the Prerequisites for Replication?

8457


How can we call UDF(User Define Function) using C# code in ASP.net ?

4679






Why we need to use secondry database file? though, we can do same work using primary database file also.

4215


How we create SQL Server 2005 Reporting Services ? Give me Sample

920


How you trouble shoot when any job fails

684


sql database suspect We have a sql database that is showing as suspect. How can we recover?

710


code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1040


I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible

1103


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?

1237


query processing

1000


what is difference between view and Dip.

1206


hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.

1618