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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What does the following SQL statement return, assuming that
all tables and column names are correct?
SELECT FirstName, StreetAddress
FROM Employees
JOIN AddressBook
ON Employees.EmpID = AddressBook.EmpID

a)	Nothing, the JOIN syntax is wrong.
b)	All the records form the Employees table, and only the
matching ones form the StreetAddress table.
c)	All the records from the StreetAddress table and only the
matching records form the Employees table.
d)	Only the matching records from the two tables.
 Question Submitted By :: Raghava
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What does the following SQL statement return, assuming that all tables and column names are correct? SELECT FirstName, StreetAddress FROM Employees JOIN AddressBook ON Employees.EmpID = AddressBook.EmpID a) Nothing, the JOIN syntax is wrong. b) All the records form the Employees table, and only the matching ones form the StreetAddress table. c) All the records from the StreetAddress table and only the matching records form the Employees table. d) Only the matching records from the two tables.
Answer
# 1
option d
 
Is This Answer Correct ?    1 Yes 0 No
Karuna
 
  Re: What does the following SQL statement return, assuming that all tables and column names are correct? SELECT FirstName, StreetAddress FROM Employees JOIN AddressBook ON Employees.EmpID = AddressBook.EmpID a) Nothing, the JOIN syntax is wrong. b) All the records form the Employees table, and only the matching ones form the StreetAddress table. c) All the records from the StreetAddress table and only the matching records form the Employees table. d) Only the matching records from the two tables.
Answer
# 2
I think the state ment above should return the records from 
matching records from two talbes since the JOIN state ment 
specifies the middle element..i.e employee...let us see how 
it works..
lets say we hav two elemt rows( here i am taking the only 
one column from each table since it would provide us with 
the required understanding....)

employees     addressbook
----------    ------------
EMP_NAME      EMP_NAME
--------      -----------
ram            raju       
raj            harish
ravi           hani
rohit          jitender
raju           fina
manish         kittu

now when these two statements are joined ,first of all the 
first state ment is scanned and its first element i.e 'ram' 
is matched againest the all the element of thhe other list 
i.e addressbook...if it finds the name 'ram' in addressbook 
it will select it as a part of the result otherwise it just 
looks move on to another one thats 'raj'...n one important 
thing ... in case 'ram' finds the match in the addressbook 
twice...it will not take bothe of them .....it will skip 
all the others and move on to the next row....
 
Is This Answer Correct ?    0 Yes 0 No
Shikhar
 
 
 
  Re: What does the following SQL statement return, assuming that all tables and column names are correct? SELECT FirstName, StreetAddress FROM Employees JOIN AddressBook ON Employees.EmpID = AddressBook.EmpID a) Nothing, the JOIN syntax is wrong. b) All the records form the Employees table, and only the matching ones form the StreetAddress table. c) All the records from the StreetAddress table and only the matching records form the Employees table. d) Only the matching records from the two tables.
Answer
# 3
simply ans : D

 becoz single JOIN means "inner join" which return common 
record
 
Is This Answer Correct ?    1 Yes 0 No
Vivek
 
  Re: What does the following SQL statement return, assuming that all tables and column names are correct? SELECT FirstName, StreetAddress FROM Employees JOIN AddressBook ON Employees.EmpID = AddressBook.EmpID a) Nothing, the JOIN syntax is wrong. b) All the records form the Employees table, and only the matching ones form the StreetAddress table. c) All the records from the StreetAddress table and only the matching records form the Employees table. d) Only the matching records from the two tables.
Answer
# 4
d)	Only the matching records from the two tables.

JOIN will return only matching column values from both tables.
 
Is This Answer Correct ?    0 Yes 0 No
Ar Prabhakaran
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is asp dotnet  1
Difference between dynamic query and static query ? DELL1
Clearly Explain the ispostback TCS6
what is the differance between native code & managed code?  5
Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form Syntax-Softtech2
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ? eXensys2
What are the page level transaction and class level transaction? Satyam1
what is the differance between .DLL & .EXE Infinite-Computer-Solutions8
what is caching  3
Difference Between ReadOnly and Constant Variable in compile time and Run Time. Phoenix-Technologies3
How to set/get parent page values in child page in asp.net Wipro3
What is the Impprsonation?and what is the importence of that? eXensys3
What is machine.config and web.config ? Digital-GlobalSoft4
How can we prevent an aspx page get refreshed when any information fetch from the database ? Minecode2
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID Seion-Infotech1
What is role-based security?  1
What is advantage and disadvantage of viewstate  2
What is customer control and user control? Perot-Systems1
What is custom control. What is the difference between custom control and user control ? Microsoft1
What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?  1
 
For more ASP.NET 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