SQL World
SQL World
SQL WORLD
Get Your SQL Query Fast and Furious..
SPONSORED SEARCHES
Customer Database
http://www.complexsql.com/interview-questions-for-tcs/ 1/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Complexsql.com
297 likes
Like Page
Answer:
Categories
The Project to project database environment varies.But the BI Tutorials
following is basic environment structure used for projects. Data Mining
Oracle 18c
Oracle Errors
PLSQL Tutorials
Roles and Responsibilities
SQL Complex Queries
SQL Di erence Between
SQL Interview Questions
SQL Interview Questions For
Freshers
SQL Joins
SQL Performance Tuning
SQL Tutorials
1.Development Environment:
Unix Interview Questions
http://www.complexsql.com/interview-questions-for-tcs/ 2/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
5.Production Environment:
Answer:
Answer:
By default, a table column can hold NULL values. The NOT NULL
constraint enforces a column to NOT accept NULL values.
Answer:
http://www.complexsql.com/interview-questions-for-tcs/ 3/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Note: You can have many UNIQUE Constraints per table, but only
one PRIMARY KEY Constraint per table is allowed.
Answer:
In SQL null value is not equal to itself.So null=null is false and the
output of above query is ‘Pradnya’.
Answer:
Set operators are nothing but the operators which are used to
connect two tables and fetch the records from the two tables.We
need to follow one condition that the table set 1 columns and table
set 2 columns are same and its datatype must be same.SQL Set
Operators combines the result of 2 queries or components on to
the single result.
1. Union
2. Unionall
3. Intersect
4. Minus
Answer:
http://www.complexsql.com/interview-questions-for-tcs/ 4/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Answer:
Oracle Query:
MS SQL:
MySQL:
Answer:
10.How to fetch all the records from Employee whose joining year
is 2017?
Answer:
Oracle:
MS SQL:
http://www.complexsql.com/interview-questions-for-tcs/ 5/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Answer:
Answer:
Example:
http://www.complexsql.com/interview-questions-for-tcs/ 6/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Answer:
The most used concept in real life scenarios are nothing but SQL
Joins.Although in reporting,stand alone applications
development,Web application development the concept of join is
really important.
Answer:
Views in SQL is nothing but the logical table created from one or
more tables.We can use the views to fetch the columns from one
or more di erent tables at a time.In real life speci cally views are
used in Reporting purpose.To create a report we need data from
di erent tables and need to show it on a single dashboard so we
are using the views to fetch the data from di erent tables.View can
contain all rows from the table or selected rows from the table.
Answer:
http://www.complexsql.com/interview-questions-for-tcs/ 7/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
2.Syntax: 2.Syntax:
Union Union
Answer:
Union all is faster than union because it does not have sorting
program running inside.The union operator is slower than union
all because it removes duplicates from the data.To Remove
Duplicate compiler needs to run sorting program and table is
scanned full.
Answer:
ROWID is nothing but the physical address given to that row which
is in hexadecimal format.ROWNUM is nothing but the logical
sequence given to the row of that column.
http://www.complexsql.com/interview-questions-for-tcs/ 8/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Answer:
Answer:
Answer:
http://www.complexsql.com/interview-questions-for-tcs/ 9/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Hope you will like this article on Interview Questions for TCS.If you
want PDF document for this aritcle or if you like this article kindly
comment in comment box.
HOME
Leave a Reply
http://www.complexsql.com/interview-questions-for-tcs/ 10/11
8/17/2018 Interview Questions for TCS | SQL Interview Questions for TCS | Interview Questions Asked in TCS | TCS Interview Questions
Comment Text*
Name*
Email*
Website
Save my name, email, and website in this browser for the next
time I comment.
Submit Comment
http://www.complexsql.com/interview-questions-for-tcs/ 11/11