SQL SERVER INTERVIEW QUESTION - PART 2

Tuesday, 19 June 20120 comments


 SQL SERVER INTERVIEW QUESTION - PART 2
What is normalization?
Normalization is the basic concept used in designing a database. Its nothing but, an advise given to the database to have minimal repetition of data, highly structured, highly secured, easy to retrieve. In high level definition, the Process of organizing data into tables is referred to as normalization.

What is a stored procedure:
Stored procedures are precompiled T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. As, its precompiled statement, execution of Stored procedure is compatatively high when compared to an ordinary T-SQL statement.



What is the difference between UNION ALL Statement and UNION ?
The main difference between UNION ALL statement and UNION is UNION All statement is much faster than UNION,the reason behind this is that because UNION ALL statement does not look for duplicate rows, but on the other hand UNION statement does look for duplicate rows, whether or not they exist.
Example for Stored Procedure?
They are three kinds of stored procedures,1.System stored procedure – Start with sp_2. User defined stored procedure – SP created by the user.3. Extended stored procedure – SP used to invoke a process in the external systems.Example for system stored proceduresp_helpdb - Database and its propertiessp_who2 – Gives details about the current user connected to your system. sp_renamedb – Enable you to rename your database

What is a trigger?
Triggers are precompiled statements similar to Stored Procedure. It will automatically invoke for a particular operation. Triggers are basically used to implement business rules.

What is a view?
If we have several tables in a db and we want to view only specific columns from specific tables we can go for views. It would also suffice the needs of security some times allowing specfic users to see only specific columns based on the permission that we can configure on the view. Views also reduce the effort that is required for writing queries to access specific columns every time.

What is an Index?
When queries are run against a db, an index on that db basically helps in the way the data is sorted to process the query for faster and data retrievals are much faster when we have an index.

What are the types of indexes available with SQL Server?
There are basically two types of indexes that we use with the SQL ServerClustered -
1. It will format the entire table, inturn physically sort the table.
2. Only one clustered index can be created for a table.
3. Data will be located in the leaf level.
4. By default, primary key will create clustered index on the table.
Non-Clustered Index
1. It wont touch the structure of the table.
2. It forms an index table as reference to the exact data.
3. A reference to the data will be located in the leaf level.
4. For a table, we can create 249 non clustered index.


Courtesy : http://mrsupport.blogspot.com/ &sapost.blogspot.com
Share this article :

Labels

/Accountant (4) /DA (3) /Exam (3) /I.tax (1) /IPo (2) /Interest Calculator (4) /Leave (1) /ORDERS (1) /PM Gr-1 (8) /PM Gr.-1 (1) /Rail Reservation (1) /Railway (1) /Update-2 (1) /Update-3 (1) /tv (1) ACCOUNT PBS/PACS (1) ADHAR(UID) (3) ALLOWANCES (2) ANSWER KEY (1) Accountant/question Paper (1) Admit card/PM Grade1 (2) Allowances.Empoly News (1) BANKING (1) BOOK FOR DEPARTMENTAL EXA (3) BROADBAND (1) BSNL (1) CCBridge Vrs.6.0 (2) CGHS Health Tips Staffs and Welfare (3) COMPUTER AND HARDWARE (10) Clear Log Files........ (1) Computer Guidlines (5) Cricket (1) Current Afairs (1) Customer care news (8) DB - Analyzer (19) DEPARTMENTAL ORDER (4) Departmental New (1) Departmental News (71) Do software (1) Dop News /RMS (1) Dop News pension (1) Dte Order/Tfr.and Posting (1) ECS SOFTWARE (1) EVENT (1) Employees News (53) Employees News/Education (2) Empolyment News (8) Exam/Result (21) F (1) GDS (1) GPF (3) General Issue (2) General Knowledge (12) General Knowledge/cheque (1) Gold coins (3) HCL compaint (1) Hardware/security Tips (1) Health Tips (2) IMO (1) INTERNATIONAL ARTICLS WEB (1) INTRES (2) IPO (2) IPO SOLVED PAPER (1) IPO/ASPOs (15) IPS Web (1) Income tax (2) Interest Calculator (2) Internet tips (2) LGO PAPER (2) Leave Rule (2) MODEL PAPER (37) MODEL PAPER/IPO (19) MODEL PAPER/PM GR-1 (21) MOF_Rat (1) Mail (1) Meghdoot 7.0 (4) Mobile Tip (4) Money Gram IMTS (1) NEW (1) NEWS (41) NPS (5) Negative list (1) New Pension Scheme (2) News Railway (6) News Tax (1) News Tchnology (1) News:-Increament (1) OTHERS (35) Order (3) PA/SA (6) PLI and RPLI (7) PM Gr.-1 (1) POST BANK OF INDIA (3) POSTAL ABBREVIATIONS (1) POSTAL HISTORY (1) PS Group/question Paper (1) Pass Book Printer (1) Pension staffs and welfare (2) Point of Sale (6) Postal Information (4) Postal Insurance (1) Postal News (1) Postman (1) Postman Module (1) Postmaster (2) Postmaster Cadre (7) QUESTION PAPER2011 (1) QUESTION PAPER2012 (1) Qestion Paper/2012 (1) R LIST (1) R-Net (2) Recovery tips SQL (5) Recruitment PA/SA Form (3) Result (5) Result/IPO (2) Rulling and low (2) SAVING BANK (27) SB ORDER (8) SBCO (5) SERVICE TAX (1) SPEED NET (14) SPEED POST/ORDER (4) SQL (7) SUB ACCOUNT (3) SYLLABUS FOR PA/SA (1) Server/Backup (2) Solve Paper PM-1 (3) Solve Paper PS GR B (1) Staffs and Welfare (7) Study Materials (8) TDS (2) TOOL (6) Tech News (6) Tech tips and Tricks (13) Treasury (1) Trouble shooting (1) Union News (6) Update/Sanchay Post (15) WUMT POs (1) Window Server (1) Windows (4) Windows Tips (4) Windows xp (1) Workfow............ (1) budget (2) e Services (3) e services Meghdoot7 (3) eMO (3) eMO ResetRegistration (1) ePayment (1) latest software (6) oder/DA (5) operating (1) sanchay post (22) security Tips (1) syllabus /pmgr1 (1) upsc (1)
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. PURNEAHPO - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger