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

what is the output for this query select * from employee where 1=1;

4 14485

table:employee EID ENAME MID(manager ids) 101 rama null 102 sita 101 103 siva 101 104 ganesh 103 . . . . . . for 103 ID the manager ID is 101(RAMA) and for 104 manager is SIVA if i give employee id (EID) you have to tell the manager for that EID write query? eample:if i give 102 .The query output should be manager for 102 ID that it should print RAMA as output

7 10606

Table student containing 2 columns,Join date,Employee name. Under join date 4 rows r ter =1-jan-2008,2-feb-2008,3-mar- 2008,4-feb-2008.Under Employee name 4 difeerent names jaison,robin,binoy,rahul Result set is, Table containing 4-column name=jan,feb,mar,april,,beneath these months count is given as 1,2,1,0 means these counts representing number of emplooyees joined in a month(january 1employee,february 2 employee,march 1 employee,april 0 employee) Can you give me the required sql query

RND Soft, Wipro,

3 7284

What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

TCS,

2137

how to replace double quotes by single quotes in sql server

CAC,

2 13403

hi, i have a table called names and field name select * from names name a b c d i want to display like this name a,b,c,d how it is possible Regards Baiju

4 7040

what is for foreign key ??

CarrizalSoft Technologies, Sabic,

4 7758

How can count the string ? for ex: If i have string like 'bhaskar' then i need like b:1 h:1 a:2 s:1 k:1 r:1 please give any idea on that

TCS,

9 11904

What is SQL Profiler what is the use of it?

247Customer, Steria,

2 13456

What are the advantages of using views. Why do we need views when we have SPs?

247Customer,

4 16744

How many types of cursors are there in SQL Server?

247Customer, CarrizalSoft Technologies,

5 22663

What is the difference between the following two sql statements select count(*) from select count(col_name) from

247Customer,

5 9739

What are the advantages of using stored procedures? Please don't simply say compilation time will be saved as they are already complied. Please specify some other advantages.

247Customer,

3 6550

Differences between functions and stored procedures?

247Customer, Accenture,

8 15996

Can we have more than one NULL in a column having unique constraint?

247Customer,

12 16988


Un-Answered Questions { SQL Server }

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?

2538


What is report rendering ?

162


How can you tell if a database object is invalid?

1118


Define self join in sql server joins?

998


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

1355


How to enforce security in sql server? : sql server security

1162


How to transfer data from a cursor to variables with a "fetch" statement?

1148


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

1022


Can sql servers linked to other servers?

1101


What is default constraint in ms sql server?

1106


What does it mean if @@cursor_row returns a negative number?

1041


How does Report Builder support Analysis Services cubes?

158


What do we need queues in sql service broker?

1126


How do I know if localdb is running?

1001


What is Cross Join and in which scenario do we use Cross Join?

1064