ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
I have to display ten columns values from diffrent ten 
tables.
how many joins are require?
 Question Submitted By :: Sridhar Sahoo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 1
No Join is required
 
Is This Answer Correct ?    8 Yes 6 No
Srinu
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 2
i Think there is formula 2n-1

where n is the number of table 
so, answer will be 2*10-1=19
 
Is This Answer Correct ?    1 Yes 7 No
Sachin
 
 
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 3
There are 2 possible answers
1. No joins required 

Ex: 
SELECT Col1 As Col from Tab1
Union
SELECT Col2 As Col from Tab2
Union
SELECT Col1 As Col from Tab3
... 

2. 9 Joins Required
Ex:
SELECT 
   t1.Col1,
   t2.Col2,
   ....
FROM Tab1 t1
inner join Tab2 t2 on t1.Col1=t2.Col2
inner join Tab3 t3 on t1.Col1=t3.Col2
....
 
Is This Answer Correct ?    17 Yes 0 No
Praveen Mehta
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 4
The 10 tables can be joined as,

select table1.columnname,table2.columnname,.....
from table1,table2,.......

It displays 10 fields from 10 different tables.
 
Is This Answer Correct ?    0 Yes 0 No
Sathish
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 5
If there is no relation between tables then no joins.And if 
there relation and you want to fetch related data then 9 
join required if parent table has all foreign key of their  
tables.
 
Is This Answer Correct ?    13 Yes 0 No
Anil Sharma
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 6
Select column1, column2, ...., column10 from table1, 
table2, ..., table10
 
Is This Answer Correct ?    0 Yes 0 No
Ask
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 7
there are 3 answeres
1. No joins are required if do not want to display related 
data
2.  9 joins are requred if all tables are related
3. no joins reuquired  we can use union if condition is 
like following
select cola from a
union 
select colb from b
union
select colc from c
.
.
.
like wise ten statements
 
Is This Answer Correct ?    3 Yes 0 No
Nitin
 
  Re: I have to display ten columns values from diffrent ten tables. how many joins are require?
Answer
# 8
n-1 JOINS
that is 10-1 Join

Or using UNION or UNION all but its not a join

However we will get value from Tables
 
Is This Answer Correct ?    1 Yes 0 No
Sumesh.s.g
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
can you any body tell me simple recovery,full recovery,bulk logged recovery where can use?  1
What are the different ways of moving data/databases between servers and databases in SQL Server? HCL2
What is the difference between having and where clause?  4
Can we create clustered index on non primary key column CTS14
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE? Yardi-Software4
Questions regarding Raiseerror?  1
What are the two types of concurrency?  2
What's the difference between a primary key and a unique key? Wipro8
what are the joins,primary key,foriegn key, candidate key, super key and expain them? Polaris2
How can your resolve deadlocks? IBM3
What is cursor ? And what is difference between Trigger ? HCL1
Anyone please explain me the concept of Serialization?  3
can you any body tell me why are go for the rebuild the master database.what is the reason?  1
We create an index to fast the search. How it fast the query? Do we write any special keyword with query?  3
what is curser.  8
Explain fundamentals of Data ware housing & OLAP?  1
Is it possible to create tables in stored procedures using a variable for the table name?  2
How do we get current date in SQL Server 2000, Oracle, MS Access?  11
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
What should we do to copy the tables, schema and views from one SQL Server to another?  3
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com