Search This Blog

gk papers, Headline Animator

Click Here For Online Quiz

Saturday, March 26, 2011

SQL Interview Questions by placement papers mncs

Latest interview FaQs by placement papers mncs

SQL Interview Questions by placement papers mncs


Latest interview FaQs by placement papers mncs
SQL
SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.

SQL*Plus
SQL*Plus is an application that recognizes & executes SQL commands & specialized SQL*Plus commands that can customize reports, provide help & edit facility & maintain system variables.

NVL
NVL : Null value function converts a null value to a non-null value for the purpose of evaluating an expression. Numeric Functions accept numeric I/P & return numeric values. They are MOD, SQRT, ROUND, TRUNC & POWER.

Date Functions
Date Functions are ADD_MONTHS, LAST_DAY, NEXT_DAY, MONTHS_BETWEEN & SYSDATE.

Character Functions
Character Functions are INITCAP, UPPER, LOWER, SUBSTR & LENGTH. Additional functions are GREATEST & LEAST. Group Functions returns results based upon groups of rows rather than one result per row, use group functions. They are AVG, COUNT, MAX, MIN & SUM.

TTITLE & BTITLE
TTITLE & BTITLE are commands to control report headings & footers.

COLUMN
COLUMN command define column headings & format data values.

BREAK
BREAK command clarify reports by suppressing repeated values, skipping lines & allowing for controlled break points.

COMPUTE
command control computations on subsets created by the BREAK command.

SET
SET command changes the system variables affecting the report environment.

SPOOL
SPOOL command creates a print file of the report.

JOIN
JOIN is the form of SELECT command that combines info from two or more tables.
Types of Joins are Simple (Equijoin & Non-Equijoin), Outer & Self join.
Equijoin returns rows from two or more tables joined together based upon a equality condition in the WHERE clause.
Non-Equijoin returns rows from two or more tables based upon a relationship other than the equality condition in the WHERE clause.
Outer Join combines two or more tables returning those rows from one table that have no direct match in the other table.
Self Join joins a table to itself as though it were two separate tables.

Union
Union is the product of two or more tables.

Intersect
Intersect is the product of two tables listing only the matching rows.

Minus
Minus is the product of two tables listing only the non-matching rows.

Correlated Subquery
Correlated Subquery is a subquery that is evaluated once for each row processed by the parent statement. Parent statement can be Select, Update or Delete. Use CRSQ to answer multipart questions whose answer depends on the value in each row processed by parent statement.

Multiple columns
Multiple columns can be returned from a Nested Subquery.

Sequences
Sequences are used for generating sequence numbers without any overhead of locking. Drawback is that after generating a sequence number if the transaction is rolled back, then that sequence number is lost.

Synonyms
Synonyms is the alias name for table, views, sequences & procedures and are created for reasons of Security and Convenience.
Two levels are Public - created by DBA & accessible to all the users. Private - Accessible to creator only. Advantages are referencing without specifying the owner and Flexibility to customize a more meaningful naming convention.

Indexes
Indexes are optional structures associated with tables used to speed query execution and/or guarantee uniqueness. Create an index if there are frequent retrieval of fewer than 10-15% of the rows in a large table and columns are referenced frequently in the WHERE clause. Implied tradeoff is query speed vs. update speed. Oracle automatically update indexes. Concatenated index max. is 16 columns.

Data types
Max. columns in a table is 255. Max. Char size is 255, Long is 64K & Number is 38 digits.
Cannot Query on a long column.
Char, Varchar2 Max. size is 2000 & default is 1 byte.
Number(p,s) p is precision range 1 to 38, s is scale -84 to 127.
Long Character data of variable length upto 2GB.
Date Range from Jan 4712 BC to Dec 4712 AD.
Raw Stores Binary data (Graphics Image & Digitized Sound). Max. is 255 bytes.
Mslabel Binary format of an OS label. Used primarily with Trusted Oracle.

Order of SQL statement execution
Where clause, Group By clause, Having clause, Order By clause & Select.

Transaction
Transaction is defined as all changes made to the database between successive commits.

Commit
Commit is an event that attempts to make data in the database identical to the data in the form. It involves writing or posting data to the database and committing data to the database. Forms check the validity of the data in fields and records during a commit. Validity check are uniqueness, consistency and db restrictions.

Posting
Posting is an event that writes Inserts, Updates & Deletes in the forms to the database but not committing these transactions to the database.

Rollback
Rollback causes work in the current transaction to be undone.

Savepoint
Savepoint is a point within a particular transaction to which you may rollback without rolling back the entire transaction.

Set Transaction
Set Transaction is to establish properties for the current transaction.

Locking
Locking are mechanisms intended to prevent destructive interaction between users accessing data. Locks are used to achieve.

Consistency
Consistency : Assures users that the data they are changing or viewing is not changed until the are thro' with it.

Integrity
Assures database data and structures reflects all changes made to them in the correct sequence. Locks ensure data integrity and maximum concurrent access to data. Commit statement releases all locks. Types of locks are given below.
Data Locks protects data i.e. Table or Row lock.
Dictionary Locks protects the structure of database object i.e. ensures table's structure does not change for the duration of the transaction.
Internal Locks & Latches protects the internal database structures. They are automatic.
Exclusive Lock allows queries on locked table but no other activity is allowed.
Share Lock allows concurrent queries but prohibits updates to the locked tables.
Row Share allows concurrent access to the locked table but prohibits for a exclusive table lock.
Row Exclusive same as Row Share but prohibits locking in shared mode.
Shared Row Exclusive locks the whole table and allows users to look at rows in the table but prohibit others from locking the table in share or updating them.
Share Update are synonymous with Row Share.

Deadlock
Deadlock is a unique situation in a multi user system that causes two or more users to wait indefinitely for a locked resource. First user needs a resource locked by the second user and the second user needs a resource locked by the first user. To avoid dead locks, avoid using exclusive table lock and if using, use it in the same sequence and use Commit frequently to release locks.

Mutating Table
Mutating Table is a table that is currently being modified by an Insert, Update or Delete statement. Constraining Table is a table that a triggering statement might need to read either directly for a SQL statement or indirectly for a declarative Referential Integrity constraints. Pseudo Columns behaves like a column in a table but are not actually stored in the table. E.g. Currval, Nextval, Rowid, Rownum, Level etc.

SQL*Loader
SQL*Loader is a product for moving data in external files into tables in an Oracle database. To load data from external files into an Oracle database, two types of input must be provided to SQL*Loader : the data itself and the control file. The control file describes the data to be loaded. It describes the Names and format of the data files, Specifications for loading data and the Data to be loaded (optional). Invoking the loader sqlload username/password controlfilename .


Latest interview FaQs by placement papers mncs

Latest SQL interview FaQs by placement papers mncs
Latest interview FaQs by placement papers mncs for SQL

No comments:

Post a Comment

click on these links for more information

<div dir="ltr" style="text-align: left;" trbidi="on"> <br /></div> 2008 2010 Mobile Excellence Awards 500 abbrevations Abbreviations about Asian Games about sarojini naidu about United Nations Organisation Acronyms Agriculture Amazing Grand Statues Amazing Wonders Ancient Place names and Historic sites Andhra Bank po Andhra Pradesh's GEOGRAPHY Android's Activity Recognition system Antarctica AP April 2010 April 2011 April 2012 April 2013 ashes2023 ASM August 10 August 2010 august 2011 Australia Australian Open 2009 Australian Open 2010 AWARDS AWARDS BASED QUESTIONS Bank of Baroda PO/clerk Exam Paper Banks papers bihar police bsnl paper BSNL-JTO model paper budget 2022 Business GK C Interview Questions CA calendar 2022 CAPGEMINI sample papers CAT 2011 CAT and other competitive exams cate solved papers Central Bank of India PO/clerk Exam Paper CGL Chairmen of UPSC Challenger Deep Chartered Accountancy chat gpt Chinese Civilization Civil Services Civil Services Aptitude Test Commonwealth games 2014 Computer General Awareness constable Constitutional Development GK History Corporation Bank Clerk Exam cricket cricket records CSAT csbc CSIR Young Scientist Awards 2011 CTET Sample paper Cui affairs 2017 May current affairs September 02 2018 current affair Current Affairs Current Affairs :February 2011 current affairs 06 September 2018 current affairs 07 September 2018 current affairs 08 September 2018 current affairs 09 September 2018 current affairs 10 September 2018 current affairs 11 September 2018 current affairs 12 September 2018 current affairs 13 September 2018 current affairs 14 September 2018 current affairs 15 September 2018 current affairs 16 September 2018 current affairs 17 September 2018 current affairs 18 September 2018 current affairs 19 September 2018 current affairs 20 September 2018 Current Affairs 2011 Current Affairs 2012 Current Affairs 2013 Current Affairs 2014 Current Affairs 2015 current affairs 2015 February current affairs 2015 June current affairs 2015 April current affairs 2015 August Current affairs 2015 December current affairs 2015 February current affairs 2015 January current affairs 2015 July current affairs 2015 June current affairs 2015 March current affairs 2015 may Current affairs 2015 November current affairs 2015 October current affairs 2015 September current affairs 2016 June Current affairs 2016 April Current affairs 2016 August Current affairs 2016 December Current affairs 2016 February Current affairs 2016 January Current affairs 2016 July current affairs 2016 June Current affairs 2016 March current affairs 2016 May Current affairs 2016 November Current affairs 2016 October Current affairs 2016 September Current affairs 2017 April Current affairs 2017 August Current affairs 2017 December Current affairs 2017 February Current affairs 2017 January Current affairs 2017 July Current affairs 2017 June Current affairs 2017 March Current affairs 2017 May Current affairs 2017 November Current affairs 2017 October current affairs 2017 September current affairs 2018 current affairs 2018 April current affairs 2018 August current affairs 2018 January current affairs 2018 January India current affairs 2018 January International current affairs 2018 july current affairs 2018 June current affairs 2018 march current affairs 2018 May current affairs 2018 October current affairs 2018 September current affairs 21 September 2018 current affairs 22 September 2018 current affairs 23 September 2018 current affairs 24 September 2018 current affairs 25 September 2018 current affairs 26 September 2018 current affairs 27 September 2018 current affairs April 2015 current affairs February 2015 current affairs February 2018 current affairs January 2015 current affairs March 2015 Current Affairs Quiz Current Affairs Quiz 2011 Current Affairs Quiz 2012 Current Affairs Quiz 2014 Current Affairs Quiz 2015 current affairs September 03 2018 current affairs September 04 2018 current affairs September 05 2018 current affairs September 1 2018 current affairs:2018 march Current AffairsJuly 2014 Dada Saheb Phalke Award Data Entry Operator date of eamcet 2014 dates of exams December 2011 December 2013 Democracy vs Republic Dhyan Chand Award-Recipients diamond dust DMRC train operator model sample paper Downloads doyouknow eamcet 2014 notification eamcet examdate 2014 eamcet notification 2014 Egyptian Civilization England English English Language Test English practice paper for DSC and TET Exam Reminder facts Facts about India Facts of Human Body Famous Places in India February 10 February 2010 February 2011 February 2012 February 2013 February 2015 FET notification FET-2014 FIFA 2014 FIFA 2018 FIFA 2022 Film Fare Awards full forms G.I.C. G.I.C. Assistant Mananger Exam GAIL Placement Papers gate 2011 key GATE previous Parers gate2012 GD Tips General Awareness General Awareness Practice Questions General Awareness Quiz Geography of India Gk GK questions for IBPS CWE clerks exam Google Now Google now detects parking spot Gov jobs Grammar Quizzes Greek Civilization Group Discussion GS Head of Important Offices (International) history History of Commonwealth Games ias IB ACIO Grade-ii Executive Exam model paper IB madol paper IB modal papers IBM Placement Paper IBPS IBPS Clerk Exams paper IBPS Modal Questions IBPS PO Exams paper icc world T20 icc world T20 team ICICI BANK SAMPLE QUESTION PAPER icici modal paper IFFCO PAPER ifs IIT Hyderabad recruitment IIT-JEE Previous Question Papers imp dates 2022 Important and Famous Books IMPORTANT DAYS IMPORTANT GOVT. PLANS india gold medals India Power Awards -2010 Indian Banking INDIAN GEOGRAPHY Indian History Quiz Indian Media Indian Satellites at a Glance Intelligence Bureau Recruitment 2013 modal paper International Current Affairs International Current Affairs 2010 International Current Affairs 2011 International Current Affairs 2013 International Organizations Interview Questions Introduction about Civil Service Exam Invention and Discoveries ips IT Companies Papers January 10 January 2010 January 2011 January 2012 January 2013 JNTU-FET-2014 July 2010 July 2011 July 2014 June 2010 June 2011 June 2013 Kannada Rajyotsava Award 2010 Karur Vysya Bank Clerical-po Written Exam Model Paper Karur Vysya Bank PO modal paper LG G Pro 2 LG G Pro 2 launched in India LG G Pro 2 with 51 LIC DSE Modal Paper March 10 March 2010 March 2011 March 2012 March 2013 Mariana Trench MAT Math May 2010 May 2011 May 2012 May 2013 Mesopotamian Civilization meteorology Microsoft Placement Papers Model paper for EIL MOON and EARTH National Affairs National Calendar National Current Affairs National Current Affairs 2013 National Games of Some Countries National Parks of India NDA Newspaper-Journal Founder/Editior Nitish clean sweeps opposition Nobel Prizes non verbal problems November 2011 November 2012 November 2013 Numerical Ability October 2010 October 2011 October 2012 Online Current Affairs Quiz 2011 Online General Awarenes Quiz- 1 Oracle Placement Question Paper padma padma awards 2022 Patni Placement Question Papers PhD pileus cloud PRACTICE QUIZ Practice Quiz for DMRC 2012 Practice Quiz for IBPS CWE PRIZES Punjab National Bank Exam quiz Quiz 63: on Current Affairs 2014-15 for SSC CGL Quiz in Hindi Quiz on Computer General Awareness quiz on current affairs Quiz on current Affairs December 2011 Quiz on ECONOMY quiz on English Quiz on General Awareness Quiz on Geography Quiz on INDIAN CONSTITUTION Quiz on Indian Geography Quiz on Media Questions... Quiz on Sports Quiz Psychology RAS/RTS Pre. Exam rbi solved papers RDBMS Interview questions reasoning Recipients of Dadasaheb Phalke Award record recruitment Reserve Bank Of India Roman Civilization rrb RRB Assistant Loco Pilot written exam RRB PAPER Sachin Tendulkar's Records SAIL Placement Papers sarojini naidu Satya Narayana Nadella sbi SBI Bank PO/Clerical Exam Model Paper sbi clerk sbi previous papers Second Geographical names seminar topicspapers for presentation September2010 September2011 ski snowfall social media Solved Paper for BEd Entrance some Books and Authors SOME IMPORTANT FACTORS about SUN Special Class Railway Apprentices Examination (SRAE) practice paperRRB PAPER Sport Questions and Answers sports Sports Affairs 2009 Sports Affairs 2010 Sports Affairs 2011 Sports Affairs 2013 SSC SSC CGL 2016 SSC CGL Apply online SSC CGL important dates SSC CGL Notification SSC CGL syllabus SSC CPO 2011 SI ssc exam SSC Group C and D Exam date ssc model paper Statistical Investigators Grade-III and Compiler Exam. Stenographers admit card Stenographers exam Stenographers hallticket Stock Exchanges in India Straits around the world study material for GS study material for IBPS clerk study material for IBPS PO Sub-Inspectors Sundararajan Pichai Syndicate Bank PO or clerk exam t20 TAXES IN INDIA tcs online exam questions Terminology the ashes The First Indian TICKET COLLECTOR SOLVED PAPER TNPL Today in History October Today in History October 10 Today in History October 11 Today in History October 12 Today in History October 14 Today in History October 15 Today in History October 16 Today in History October 17 Today in History October 18 Today in History October 20 Today in History October 21 Today in History October 22 Today in History October 23 Today in History October 24 Today in History October 3 Today in History October 4 Today in History October 5 Today in History October 6 Today in History October 7 Today in History October 9 Today in History October19 Today in History September 17 Today in History September 16 Today in History September 18 Today in History September 19 Today in History September 20 Today in History September 21 Today in History September 22 Today in History September 23 Today in History September 24 Today in History September 25 Today in History September 26 Today in History September 27 Today In History September 28 Today in History September 30 top top 12 Indian Institutions Top 30 Languages by Number of Native Speakers Top Engineering Colleges in India TS Inter Exams 2022 TSBIE tspsc tspsc syllabus uco clerk/po exam UGC NET Exam papers UN Secretaries Generals Union Bank of India PO or Clerk union budget United India Insurance AO Exam 2009 UPSC upsc papers upsc's civil services exam schedule verbal problems weather what is HTML5 Wildlife Sanctuaries of India winners Women Prime Ministers World Civilizations WORLD FAMOUS RIVERS world gk World History wrestling