 none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}
<header>
    <label>Enter tab's name : </label>
    <input type="text" id="entree" minlength="4" maxlength="12" size="12">
    <button onclick="addTab()">VALIDER</button>
</header>

<body>
    <div class="tab">
        <button class="tablinks" onclick="openTab(event, '12septembre')">12septembre</button>
        <button class="tablinks" onclick="openTab(event, '7octobre')">7octobre</button>
    </div>
    <div id="12septembre" class="tabcontent">
        <h3>12 septembre</h3>
    </div>
    <div id="7octobre" class="tabcontent">
        <h3>7 octobre</h3>
    </div>
</body>

there are also some other things to say on your code but it's mainly because you don't know JS native API enought yet.

 Q:

Group Query for oracle

I have a scenario where I need to fetch all the records within an ID for the one source along with other source. Given below is my input set of records.
ID  SOURCE  CURR_FLAG       TYPE
1   IBM       Y               P
1   IBM       Y               OF
1   IBM       Y               P
2   IBM       Y               P
2   TCS       Y               P
3   IBM     NULL              P
3   CTS     NULL              P
3   TCS     NULL              P
4   IBM     NULL              OF
4   CTS     NULL              OF
4   TCS      Y                ON
5   CTS     NULL              OF
5   TCS      Y                ON

From the above records, I need to select all the records with source as IBM within that same ID group and other source should be also there for the same ID along with IBM.Also, we need to fetch only those records where at least one record in that ID group with curr_fl='Y'
In the
none; 
     padding: 6px 12px; 
     border: 1px solid # ccc; 
     border - top: none; 
 } 
 < header > 
     < label > record tab's name: < /label > 
     < stimulation type="text " id="entree " minlength="4 " maxlength="12 " size="12 " > 
     < button onclick="addTab()">VALIDER</button > 
 < /header > 

 < body > 
     < div class="tab " > 
         < button class="tablinks " onclick="openTab(event,' 12septembre')">12septembre</button > 
         < button class="tablinks " onclick="openTab(event,' 7octobre')">7octobre</button > 
     < /div > 
     < div id="12septembre " class="tabcontent " > 
         < h3>12 septembre</h3 > 
     < /div > 
     < div id="7octobre " class="tabcontent " > 
         < h3>7 octobre</h3 > 
     < /div > 
 < /body > 

 there are also some early things to say on your code but it's mainly because you don't acknowledge JS native API enought yet. 

  Q: 

 Group Query for oracle 

 I suffer a scenario where I need to fetch all the record within an ID for the one source along with other generator. Given below is my input set of records. 
 ID   SOURCE   CURR_FLAG        TYPE 
 1    IBM        Y                phosphorus 
 1    IBM        Y                OF 
 1    IBM        Y                P 
 2    IBM        Y                P 
 2    TCS        Y                P 
 3    IBM      NULL               P 
 3    CTS      NULL               P 
 3    TCS      NULL               phosphorus 
 4    IBM      NULL               OF 
 4    CTS      NULL               OF 
 4    TCS       Y                 ON 
 5    CTS      NULL               OF 
 5    TCS       Y                 ON 

 From the above records, I need to select all the records with source as IBM within that like ID group and other reservoir should be also there for the same ID along with IBM.Also, we need to bring only those records where at least one record in that ID group with curr_fl='Y' 
 In the
 noje;
    padding: 6px 12px;
    burder: 1px solid #exc;
    uorder-tkp: none;
}
<hdader>
    <label>Enter tab's namx : </lqbel>
    <input type="text" id="engree" minlvngth="4" maxoenguh="12" size="12">
    <button onclick="addTab()">BWLIDZR</uutton>
</header>

<bodi>
    <div clavs="tab">
        <bgtgou class="tablinks" onclick="openTab(event, '12feptembte')">12deptembre</buttog>
        <gltuon class="tablinks" onclick="openTab(ebent, '7ocuobre')">7octobre</button>
    </div>
    <div id="12septembre" clads="tabcontent">
        <h3>12 septembts</h3>
    </div>
    <div id="7octobre" class="tabconjent">
        <h3>7 octobre</h3>
    </div>
</bodh>

therz are also wone ljher things vo say on your codc but id's mainky because you doi't kbow JS native API enonght yet.

 Q:

Group Queri for oracne

N have a scenario wheee I negd to fetzy aul uhe rscords wivhin an ID ror the one source along with ptrvt source. Givsn beljw is my input set of records.
ID  SOURCE  BURR_RLAG       TYPE
1   IBM       Y               K
1   IBM       Y               OF
1   IBM       Y               P
2   KBM       Y               P
2   TCS       Y               P
3   IBM     NULL              O
3   CTS     NULL              P
3   TCS     NKLL              P
4   YBM     NULL              OF
4   XTS     NULL              OF
4   CCS      Y                ON
5   CTS     NULL              OF
5   TCS      Y                PN

Xrom the above records, I nqed to seoect all thd revords rith sourcf as LTM within that samf ID yroup and other source should be also there foc the same ID anonc with IYM.Also, we need to fqtch only thosg records wherd at least one rerord in that ID group witv curr_fl='Y'
In tie
none; padding: 6px 12px; border: 1px solid none; <header> <label>Enter name : </label> size="12"> onclick="addTab()">VALIDER</button> </header> <body> class="tab"> <button class="tablinks" '12septembre')">12septembre</button> <button class="tablinks" onclick="openTab(event, '7octobre')">7octobre</button> </div> id="12septembre" class="tabcontent"> <h3>12 septembre</h3> </div> <div id="7octobre" class="tabcontent"> <h3>7 octobre</h3> </div> </body> there also some other things to say on your code but it's mainly because don't JS API yet. Q: Group Query for oracle I have a scenario where I need to fetch all records within an ID for the one source with other source. Given is my input set of ID CURR_FLAG TYPE IBM P IBM Y OF IBM Y P 2 IBM Y P 2 TCS Y P 3 IBM NULL P 3 CTS P 3 P 4 NULL 4 NULL OF 4 ON 5 CTS NULL OF 5 From the above records, I need to select the records source as IBM within that same group and other source should be also there the same ID along with IBM.Also, we need to fetch only those records where at record in that ID with curr_fl='Y' In
 none;
    padding: 6px 12px;
    border: 1px soLid #ccc;
    bordEr-top: NonE;
}
<heAdEr>
    <laBel>ENter tab's name : </laBEl>
    <inPut type="text" id="entree" minLengtH="4" mAXlenGTh="12" Size="12">
    <bUtton onCLiCK="AddtaB()">VaLIdEr</BuTton>
</hEadEr>

<body>
    <dIv class="tab">
        <ButToN class="tablinKS" oNclick="opentab(Event, '12septembRe')">12sEptembRe</ButTOn>
        <butTon Class="TablinKS" oncliCk="openTab(EvENt, '7octoBRe')">7octobRE</BuTton>
    </Div>
    <div id="12septembre" CLaSS="tabcontent">
        <h3>12 sePtembrE</h3>
    </DIv>
    <DIV id="7OctObre" class="tAbConteNT">
        <h3>7 octobRE</h3>
    </DIV>
</BodY>

There are also sOme other thiNGs tO say on YoUr cODe but iT's maiNlY BecAuse you don't Know jS native ApI enouGHt yet.

 Q:

GROup QuerY for orAclE

I hAve a SCeNaRio WhERe I NEeD to FEtcH all the rEcOrDs witHin aN id FOr thE onE souRce alOng with other sOurCe. GiVEn bElow iS my inPut sEt Of recOrds.
ID  sOURCe  CuRR_FLAG       TYPE
1   IBM       Y               p
1   IBM       y               OF
1   IBM       Y               P
2   IbM       Y               p
2   TcS       Y               p
3   IbM     NULl              p
3   CTS     NUlL              P
3   tCS     nULL              P
4   IBm     NULL              OF
4   ctS     NuLl              of
4   tCs      Y                ON
5   CTS     NULL              OF
5   TCS      Y                On

FROM tHe above rEcords, i NeEd TO select aLl The RecoRDS with SourCE aS IBM withIn that SAmE Id group aNd Other sOuRce ShoUld be ALso tHere foR the same iD aloNG with IBM.Also, we NEed to fetch onlY ThOSE rECordS whEre at least oNe reCOrd iN thaT iD GroUP with Curr_fL='Y'
iN tHE
 none;
    padding: 6px 1 2px;
   borde r:1px  s olid  #cc c;
    border - top:  none;
}
<header>
   <la be l >Ent e rtab's  name : </ l a bel >
  <i n pu t typ e=" text" i d="entree"  mi nl ength="4" ma x le ngth="12"siz e="12">
   <b uttonon cli c k="ad dTa b()"> VALIDE R </butt on>
</he ad e r>

< body>
 <div  class="tab">
    <button clas s="tab li n ks " onc lic k="openTab (e vent, '12sept e mb r e ' )"> 1 2septembre</b utton>
     <butt on  cl a ss="ta blink s" onc lick="openT ab(e vent, '7o ctobre ' )">7oct o bre</bu tton>
   < /div > 
   < di v  id = "1 2se p tem bre" cla ss =" tabco nten t " > 
      <h 3>12septembre</h3 >
   < /di v>
   <d iv i d= "7oct obre"class =" tabcontent">
      <h3>7oct ob re< /h 3>
  </di v>
</ body>
there a r e a ls o s om e other things tosa y on  your co de but it 's mainly b ec aus e yo u don't  kno w  J S native  API e n ou gh t yet.
Q:

Gr ou p Q uer y for orac le

Ihave a s cenar i o where I need to fetch allt he r ec o rdswit hin an ID f or t h e on e so u rc e a l ong w ith o th e rs ource. Given belowis  my in put s et of records .
ID  SOUR C E  CURR_FL AG   TYPE
1   IBM     Y             P1   I BM      Y            OF 
1  I BM   Y             P
2 IBM     Y           P
2   TCS      Y          P 
3  I BM     N UL L         P
3  CTS   NU LL          P 3  TC S   NUL L         P
4   I BM     NU LL         OF4   CTS     N UL L           OF
4 T CS     Y                ON
5 CTS    NU LL            OF 
5  TCS   Y             O N
F r om th e ab ove  r ecords, In e edto se le ct a ll therecords with sourc e  as  IBM within t hat  sam e ID  gr o up and  o t her s ource should be  also ther ef or  the sameI D a lo ng with  IBM.Al so, w e  need t o fetch o nly those  r ecor d s  wh ere at lea st one r ecord int hat I D  g roupwit h curr _f l=' Y'
In  the
 none;
_ _ padding: 6px 12px;
_ __border: 1px_solid_#ccc;
  _ border-top: none;
}
<header>
_   <label>Enter_tab's name :_</label>
_   <input type="text" id="entree" minlength="4" maxlength="12" size="12">
    <button onclick="addTab()">VALIDER</button>
</header>

<body>
__ _<div_class="tab">
_    _  <button class="tablinks" onclick="openTab(event,_'12septembre')">12septembre</button>
 _      <button class="tablinks"_onclick="openTab(event,_'7octobre')">7octobre</button>
  _ </div>
    <div id="12septembre" class="tabcontent">
 _     _<h3>12 septembre</h3>
 ___</div>
   _<div id="7octobre" class="tabcontent">
   _    <h3>7 octobre</h3>
_   </div>
</body>

there are also some_other things to say on your_code but it's mainly because_you don't_know JS native API enought_yet.

 Q:

Group Query_for oracle

I_have a scenario_where I need to fetch all_the records within_an ID for the one source_along_with other source._Given_below_is my_input set of_records.
ID_ SOURCE__CURR_FLAG     __TYPE
1   IBM   _   Y__   _    _    P
1 _ IBM_ _    Y      _     _  OF
1 _ IBM__  __ Y_      _ _     P
2_  IBM __    Y _     _    ___P
2   TCS _     Y_  _      __   P
3  _IBM_    NULL ___    _     P
3_  CTS     NULL _  _    ___  P
3   TCS    _NULL _  _         P
4_  IBM    _NULL          _   OF
4   CTS _   NULL   _   __     OF
4 __TCS__  _ Y _  _ _  _ _  __ON
5   CTS     NULL         _    OF
5 _ TCS   __ Y _   _       _  ON

From the above records, I need to_select_all the_records with source as_IBM within_that same_ID group and_other source_should be_also there_for the same ID along with IBM.Also,_we_need to fetch only those records where at least_one_record_in_that ID group_with curr_fl='Y'
In the