Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



SQL Server Interview Questions
Questions Answers Views Company eMail

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?

TCS,

2485

wat is tuff file in log shipping, wt is d use of tht file?

TCS,

1 6428

When we can say that is in BCNF?

BitWise,

3 10732

Is SET a SQL Keyword?

BitWise,

4 15455

Where are magic tables stored ? Is it in the same database where it is created ?

4 13193

hi... this is charan.I persued btech in 2010 looking for a job on database/back-end as freehser. can any seggest me which course or back-end tool i have to learn

2034

* CREATE TABLE [dbo].[t_Colors]([ColorId] [int] NOT NULL,[ColorName] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [ColorDesc] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,[ColorIndex] [int] NULL) ON [PRIMARY] GO * insert into [t_Colors] values(101,'Red','',1) insert into [t_Colors] values(101,'Red1','',2) insert into [t_Colors] values(102,'Blue','',1) insert into [t_Colors] values(102,'Blue1','',2) insert into [t_Colors] values(102,'Blue2','',3) * In this table i need to delete DELETE FROM t_Colors WHERE ColorIndex=1 AND ColorId=102 After delete above condition i need to update the ColorIndex set to 1 for Blue1[ColorName] and 2 for Blue2[ColorName] select * from [t_Colors] Note:- how can i get updates the ColorIndex values after delete. for example we need to update Blue1 ColorIndex set to 1 and Blue2 ColorIndex set to 2

1887

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

IBM,

2103

in my server i have 3 instances,one of them got failed, and this cause we r not able to connect to server, how to know which instance was dameged?

IBM,

1 4556

What is difference between stored procedure and function?

L&T,

3 7589

i have account table which consists of account name,card no and card no consists 16 digits now i want to retrieve the data if card no starts from 4 then it should print visa and if it starts from 5 then it should print master so plse help me to write simple query with out store procs .

3 4972

How to select top 5 coloumn from a table without using coloumn name

5 7854

what is the use of database index(apart from the last searching of records) and what is the use of composite key?

1 3699

sql server syntax to add "!" sign to "name" field of "employee" table in a manner that all names have the same lenght of 20 characters

1 3370

How do use Having,Group by,Group function in SQL?

1737


Un-Answered Questions { SQL Server }

While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

1038


Data table as parameter in sql server?

1041


What is a rownum?

968


What is a transaction and why is it important?

1084


What is difference between joins and subqueries?

1116


Are resultset updatable?

946


What are the different ways you can create databases in sql server?

1100


Explain why variables called the most powerful component of ssis?

1084


What is a document index?

1022


What types of replication are supported in sql server?

1061


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

1831


Give an example of why you would want to denormalize a database

974


Explain primary key and foreign key constraints?

1027


What is the difference between index seek vs. Index scan?

1021


What are different types of schemas?

942