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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  ERP CRM  >>  SAP  >>  ABAP
 
 


 

 
 Basis interview questions  Basis Interview Questions
 ABAP interview questions  ABAP Interview Questions
 SAPScript interview questions  SAPScript Interview Questions
 SD interview questions  SD Interview Questions
 MM interview questions  MM Interview Questions
 QM interview questions  QM Interview Questions
 PP interview questions  PP Interview Questions
 PM interview questions  PM Interview Questions
 PS interview questions  PS Interview Questions
 FI CO interview questions  FI CO Interview Questions
 HR interview questions  HR Interview Questions
 SAP CRM interview questions  SAP CRM Interview Questions
 SRM interview questions  SRM Interview Questions
 APO interview questions  APO Interview Questions
 Business Warehouse interview questions  Business Warehouse Interview Questions
 Business Workflow interview questions  Business Workflow Interview Questions
 SAP Security interview questions  SAP Security Interview Questions
 SAP Interfaces interview questions  SAP Interfaces Interview Questions
 Netweaver interview questions  Netweaver Interview Questions
 SAP ALE IDocs interview questions  SAP ALE IDocs Interview Questions
 SAP B1 interview questions  SAP B1 Interview Questions
 SAP AllOther interview questions  SAP AllOther Interview Questions
Question
how can i fetch the records of 3 tables with a single select
query,without using join.
 Question Submitted By :: Niladri.pradhan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 1
Assume: T1, T2, T3 are 3 tables.

select t1.*, t2.*, t3.* from t1, t2, t3

Let me know if i was wrong.
 
Is This Answer Correct ?    5 Yes 3 No
Shankar
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 2
Hi,

Using For all entries we can fetch the records of 3 tables. 
if I am wrong, let me know.
 
Is This Answer Correct ?    1 Yes 6 No
Ramalakshmi
 
 
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 3
select max(sal) as sal from
(select max(sal) as sal1 from emp1
union
select max(sal) as sal2 from emp2
union
select max(sal) as sal3 from emp3)
 salary order by sal desc

u can get the max sal from three tables  lets try to do this
 
Is This Answer Correct ?    1 Yes 4 No
Kiran Kumar.b
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 4
select mara~matnr from mara.
select vbrk~arktx from vbrk where arktx = mara~matnr.
select ........
endselect
 
Is This Answer Correct ?    0 Yes 1 No
Fawaz
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 5
using nested select statement we can fectch the data from 3 
table.
like 

select f1 f2 f3 from table1 into table  wa_t1
   slect l1 l2 l3 from table2 into table wa_t2
    select e1 e2 e3 from table3 into table wa_t2

   endselect.
  endselect.
endselect.

If I was wrong pls let me inform
 
Is This Answer Correct ?    3 Yes 2 No
Subhasis
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 6
You can create a View table and use only one select 
statement.
 
Is This Answer Correct ?    4 Yes 1 No
Pratima
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 7
If the creteria is to use "Single" select query, then 
create a view on the 3 tables in the question and inturn 
write a single select satement.
 
Is This Answer Correct ?    1 Yes 1 No
M.kmart
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 8
SORRY I CAN'T SAY BECAUSE I KNOW ONLY
VIEWS (OR)
INTERNAL TABLE (OR)
STRUCTURE
FETCH THE RECORDS OF 3 TABLES WITH A SINGLE SELECT .
 
Is This Answer Correct ?    0 Yes 0 No
Uma
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 9
records can be fetched from 3 tables using a single select 
statement using the CHAIN OPERATOR in select statement....

select : vbeln posnr matnr from VBAK into table i_abc1
                                   where vbeln = s_vbeln,
         vbeln1 posnr1 matnr1 from VBAk1 into table i_abc2
                                   where posnr2 = s_posnr,
        vbeln2 posnr2 matnr2 from VBAK2 into table i_abc3
                                   where matnr2 = s_matnr2.

..the only difference which makes is the chain operator.
 
Is This Answer Correct ?    1 Yes 0 No
Anurag Joshi
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 10
View is correct.
 
Is This Answer Correct ?    0 Yes 0 No
Buddula15
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 11
we can use alternative to joins are
1.for all entries
2.views.
 
Is This Answer Correct ?    1 Yes 0 No
Naveen
 
  Re: how can i fetch the records of 3 tables with a single select query,without using join.
Answer
# 12
REPORT  ZFFFFFFF.
TABLES: mara, makt, vbak.
TYPES: BEGIN OF xitab.
    INCLUDE STRUCTURE vbak.
    TYPES:END OF xitab.

TYPES: BEGIN OF yitab.
    INCLUDE STRUCTURE mara.
    TYPES:END OF yitab.

    TYPES: BEGIN OF zitab.
    INCLUDE STRUCTURE makt.
    TYPES:END OF zitab.

    data:i_abc1 type STANDARD TABLE OF xitab WITH HEADER 
LINE,
          i_abc2 TYPE STANDARD TABLE OF yitab WITH HEADER 
LINE,
          i_abc3 TYPE STANDARD TABLE OF zitab WITH HEADER 
LINE.

select : vbeln  from VBAK into CORRESPONDING FIELDS OF 
TABLE i_abc1
                                   where vbeln 
= '0000004969',
         matnr from mara into CORRESPONDING FIELDS OF TABLE 
i_abc2
                                   where matnr = '102-310',
        maktx  from makt into CORRESPONDING FIELDS OF TABLE 
i_abc3
                                   where maktx = 'Test 
material'.

  WRITE:/ 'Experiment successful'.
 
Is This Answer Correct ?    1 Yes 0 No
Sukanta Brahma
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
what is SAP R/3? What it means? TCS6
what will happen if you don't give occurs clause while creating an internal table?  4
what is vbeln?  1
During performance analysis you found one select statement taking long time. How to correct it? IBM3
Differentiate select and select single?  2
what is meant stacked list?  1
what is MSEG,MKPF? FutureSoft1
What is RFC function module? CSC2
What is parameter id? Where you can find parameter id for a field? IBM1
What is Basic IDOC type? Keane-India-Ltd1
what is an HIDE technique? Keane-India-Ltd3
What are data integrity constraints? TCS2
when we create a simple report with input field as S_VBELN (as select-options)..for any range of values it is displaying the output...i dont want like that..only the existing ranges it must be displayed...for ex. in sales ranges from 4969...but in input from 1 to z also displaying..please send me the solution  2
What is the purpose of BAPI 'BAPI_SALESORDER_SIMULATE'? Write a sample program. SGT1
what will happen in Initialization event? Intel6
one time loading 10000 records?  1
what is the tcode for creating the invoice?  1
Identify the servers of which only one can exist in an R/2 System?  1
User has given the specification to display the Check boxes on the list, how will you handle this situation.? Accenture1
How to insert data in ternal table? HCL3
 
For more ABAP 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