Incremental Count

Hi ALL ,
I want to do Incremental Count Grouped By Location Below is the 2 tables in first one is the Data and Second one is the Output Required . Kindly Help
Query i used for the first table :
Select
V.NAME as Product,
DatePart(MM,V.[ImportDate]) as Month,
DatePart(YY,V.[ImportDate]) as Year,
XD.Description as Area
From [dbo].[Product] V
Left Outer Join [dbo].[Area] XD
On V.AreaID = XD.AreaID
Order By Year ,Month
Month No 
Year
Product
Area
10
2013
AC
Dal
10
2013
AC
Dal
10
2013
AC
CAL
10
2013
AC
CAL
10
2013
AC
CAL
10
2013
dafad
CAL
10
2013
efeq
CAL
11
2013
fewfew
Dal
11
2013
ccdsc
CAL
11
2013
fewfew
San
11
2013
ewew
San
11
2013
cscds
San
11
2013
csdvcds
San
11
2013
vdvsd
San
11
2013
rewfrew
San
12
2013
rwer
San
12
2013
rrtgx
San
12
2013
twtw
San
12
2013
wqw
San
1
2014
csfdaf
San
1
2014
eewfvvzzqe
San
1
2014
sfsdf
San
Month
Year
Area
ProductCount
10
2013
Dal
2
10
2013
CAL
5
11
2013
Dal
3
11
2013
CAL
6
11
2013
San
6
12
2013
San
10
1
2014
San
13
  Kindly Provide the aggregated query for the Second table

Hi
Latheesh NK ;
Its working fine for the same year like 2013 all counts are incrementing fine but for the new year here in our case 2014 its starting the count fresh not carry forwarding the previous years data .
Thanks
Priya
Hello Priya, I dont understand your issue here. If the test script is working fine for all the years (you can test it), there should be some differences in your actual code or its datatype.
If test script is not working, please do add more data to explain your scenario, we would be able to help you better.
Drop table T122
create table T122(month int, year int, Product varchar(10), Area varchar(5))
Insert into T122 values
(10,2010,'asd','DSAL'),
(09,2013,'asd','DAL'),
(10,2013,'asd','DAL'),
(10,2013,'asd','DAL'),
(10,2013,'asd1','CAL'),
(10,2013,'asd1','CAL'),
(10,2013,'asd1','CAL'),
(10,2014,'asd1','DAL'),
(10,2014,'asd1','DSAL')
Select * From (Select distinct A2.MONTH,A2.YEAR, A2.Area From T122 A2)A
CROSS APPLY(Select COUNT(1) cnt From T122 A1 Where A.month >=A1.month and A.year >= A1.year and A.Area = A1.Area)B

Similar Messages

  • Increment counter in XSLT mapping

    Hi Experts,
    I am creating xslt mapping by using mapforce tool. I am trying to get increment counter variable in xslt mapping. can you please tell me what would be the code for getting sequence number.
    Thanks for your help.
    Thanks,
    Hari

    yes, there is a global variable concept in XI which u can use for your Sequence Number concept.
    If you are on SP14 and above, just take a lookat this blog and the GLOBAL Variables Section
    XI: New features in SP14
    check this thread
    Re: Need Help in XSLT Mapping
    Re: Sequence Number in XI Mapping

  • Increment Counter in Parent / Child

    I am generating classes from an existing schema.
    I have two tables that are Parent / Child with the parent containing an
    incrementing counter that is part of the Child primary key.
    Is there a way to describe this relationship so that the generated code has
    the rationship properly described?

    I have a parent table, 'CARD_HOLDER' that has a key of ID_CARDHOLDER
    (integer) and a row of CURRENT_SEQ_NO (integer).
    The child table, 'CARD' has a key of ID_CARDHOLDER (integer) and SEQ_NO
    (integer) [both colums are the key value].
    When a new card is added to the 'CARD' table, the CARDHOLDER.CURRENT_SEQ_NO
    is incremented and the CARD.CURRENT_SEQ_NO is set equal to it.
    Can I emulate this behavior in KODO?
    When a new 'card'
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    Sorry, could you describe the table structure in more detail? I'm not
    sure I follow.

  • MAPPING: Increment counter while creating destination structures

    Hello,
    i have the following source and destination structure:
    <src_struct> (0-n)
        <qualifier>
        <value>
    </src_struct>
    <dest_struct> (0-n)
        <counter>
        <qualifier>
        <value>
    </src_struct>
    only those dest structures have to be created where <qualifier="XX">.
    Thus my mapping on structure level looks like:
    if <qualifier>  equalS "XX" createIf --> <dest_struct>
    This works fine.
    But additionally i need to increment <counter> in the dest_struct. I.e., when i have 10 src_struct where 5 of them has <qualifier="XX"> i need 5 dest_struct with counter 1 to 5.
    I tried this with a UDF which has just a constant as input:
    "MY_COUNTER"  --> UDF:getNextCounter --> <counter>
    This argument is the name under which the last counter was saved in the global container. My expectation was that for each time the field <counter> will be created, my UDF reads the las counter, increments it, saves it back to the container and returns the result.
    but the bahavior is different:
    For example:
    if src_structures 6-10 have <qualifier>="XX" my UFD returns 6-10 in sequnce instead
    of 1-5. The shows me, that my UDF runs 10 times even though just 5 dest_struct are created.
    What do i wrong?
    Her my UDF:
    GlobalContainer gc  = container.getGlobalContainer();
    String counter = new String();
    counter  = (String)  gc.getParameter(MY_COUNTER);
    if(counter==null) {
         counter = "1";
         gc.setParameter(MY_COUNTER,counter);
         return(counter);
    Integer i_counter = new Integer(counter);
    int i = i_counter.intValue() + 1;
    Integer I = new Integer(i);
    counter = I.toString();
    gc.setParameter(ID_TYPE,counter);
    return(counter);

    Hi,
    Why dont you take qualifier as another argument (say b) for the same UDF.
    so that you can check the value of the qualifier and run the logic as you needed.
    as below,
    if (b.equals("XX"))
    GlobalContainer gc = container.getGlobalContainer();
    String counter = new String();
    counter = (String) gc.getParameter(MY_COUNTER);
    if(counter==null) {
    counter = "1";
    gc.setParameter(MY_COUNTER,counter);
    return(counter);
    Integer i_counter = new Integer(counter);
    int i = i_counter.intValue() + 1;
    Integer I = new Integer(i);
    counter = I.toString();
    gc.setParameter(ID_TYPE,counter);
    return(counter);
    Let me know if its not working.
    Hope this helps.
    Prasad Babu.

  • Incremental counter & log file?

    Is it possible to script an incremental counter in Applescript, similar to the one used in a Print dialog box?
    ie: "How many copies do you want to print?" (drop down box offers numerical selection, and a log file is created from this input)
    Thanks for any help with this.

    Is this along the lines of what you're looking for? I'm confused by the "drop down box retains" statement. You can get the users selection from a list (like the 1st script below) or you can have the user input the number by typing it (as in the 2nd script below).
    Example #1:
    <pre style="margin: 0px; padding: 5px; border: 2px dotted green; width: 600px;
    height: 250px; color: #ffffff; background-color: #000000; overflow: auto; font-family: Verdana, Monaco, monospace; font-weight: 900; font-size: 12px;"
    title="Copy this text and paste it into your Script Editor application.">--START
    property numList : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    --SET PATH TO LOG FILE
    set counterDir to POSIX path of ((path to application support from user domain) & "MyCounter:" as string)
    set counterLog to counterDir & "counter.log"
    --CREATE LOG FILE DIRECTORY (IF NECESSARY)
    try
    (POSIX file counterDir) as alias
    on error
    do shell script "mkdir " & quoted form of counterDir
    end try
    --GET NUMBER AND ADD TO LOG FILE
    set theChoice to (choose from list numList) as string
    if theChoice is not "false" then do shell script "echo " & theChoice & " >> " & quoted form of counterLog
    --END</pre>
    Example #2:
    <pre style="margin: 0px; padding: 5px; border: 2px dotted green; width: 600px;
    height: 250px; color: #ffffff; background-color: #000000; overflow: auto; font-family: Verdana, Monaco, monospace; font-weight: 900; font-size: 12px;"
    title="Copy this text and paste it into your Script Editor application.">--START
    property numList : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    --SET PATH TO LOG FILE
    set counterDir to POSIX path of ((path to application support from user domain) & "MyCounter:" as string)
    set counterLog to counterDir & "counter.log"
    --CREATE LOG FILE DIRECTORY (IF NECESSARY)
    try
    (POSIX file counterDir) as alias
    on error
    do shell script "mkdir " & quoted form of counterDir
    end try
    --GET NUMBER AND ADD TO LOG FILE
    set theChoice to text returned of (display dialog "Enter Number:" default answer "2")
    if theChoice is not "false" then do shell script "echo " & theChoice & " >> " & quoted form of counterLog
    --END</pre>
    Both of the above scripts will keep a log file in the following location:
    */Users/You/Library/Application Support/MyCounter/counter.log*
    Once we figure out exactly what you want for the first part of your script, we can then move on to helping you upload your results to your server once a week. Hope this helps...

  • How to increment counter for line items.

    Hi,
    Please see the code below:
    LOOP AT T_MAT INTO W_MAT.
              perform bdc_dynpro      using 'SAPMM07M' '0421'.
              perform bdc_field       using 'BDC_CURSOR'
                                            'MSEG-ERFMG(i)'.
              perform bdc_field       using 'BDC_OKCODE'
                                            '/00'.
              perform bdc_field       using 'MSEG-MATNR(i)'
                                            W_MAT-MATNR.
              perform bdc_field       using 'MSEG-ERFMG(i)'
                                            W_MAT-ERFMG.
              i = i+1.
          ENDLOOP.
    In the above code I'm updating the line items thru BDC. Here I'm having a counter ' i '. I'm incrementing it for every loop cycle. When I run the BDC I get the error "Field MSEG-ERFMG does not exist in the screen"
    Please help.
    regards,
    Sriram

    Hi Sriram,
    you code as to be changed slightly:
    DATA l_counter(2) TYPE n.
    DATA l_fieldname  TYPE string.
    loop at t_mat into w_mat.
      MOVE i TO counter.
      CONCATENATE 'MSEG-ERFMG('  counter  ')'  INTO l_fieldname.
      PERFORM bdc_field USING 'BDC_CURSOR'
                              l_fieldname.
      i = i+1.
    ENDLOOP.data l_counter(2) type n.
    Regards
    REA
    Edited by: Ramy EL-ARNAOUTY on Jul 28, 2009 10:29 AM

  • Incrementing Counter on Stage through Class

    Hello everyone, I have a thread similar to this one about saving and loading a counter. However, I can't get the counter to increment when colliding with an object. When colliding with the object, it makes it not visible so you can't see it anymore.
    My counter that saves and loads looks like this:
    var so:SharedObject = SharedObject.getLocal("myStuff","/");
    var JumpCounter: int = 0;
    if(so.data.JumpCounter)
              JumpCounter = so.data.JumpCounter;
    And when you jump:
      JumpCounter++;
              so.data.JumpCounter = JumpCounter;
              so.flush();
    It ouputs here to a text box:
    JumpBox.text = JumpCounter.toString();
    This all works fine, I just can't get it to increment when colliding with my MovieClip.
    I have a class that looks like this attached to my MovieClip that I want to increment that looks like this:
    package {
              import flash.display.*;
              import flash.events.*;
              public class AddJumps extends MovieClip{
                        //construct function
                        public function AddJumps():void
                                  addEventListener(Event.ENTER_FRAME, collision);
                        private function collision(e:Event):void{
                                  if(this.hitTestObject(MovieClip(root).Player)){
                                  MovieClip(root).JumpIcon.visible = false;
    I'm unsure as how to access or increment my counter from within a class. I can't seem to remember how to access the stage.
    Thanks in advance!

    on your main timeline you should use:
    var so:SharedObject = SharedObject.getLocal("myStuff","/");
    var JumpCounter: int = 0;
    if(so.data.JumpCounter)
              JumpCounter = so.data.JumpCounter;
    function incrementJumpCounterF():void{
      JumpCounter++;
              so.data.JumpCounter = JumpCounter;
              so.flush();
    //And when you jump (or otherwise want to increment JumpCounter from the main timeline or a class like AddJumps):
    MovieClip(root).incrementJumpCounterF();

  • Incremental Counter in SSRS each time report is run

    Hi
    I need to have a header row in my SSRS report which is an incremental number e.g. each time the report is run the number increments by 1.  Something similar to a hit counter on a website.
    Is it possible to have an internal variable within SSRS which will increment by 1 each time the report is run?
    It seems straight forward, but from reading other articles online, it appears not to be.
    Can anyone advise?

    The most i think you could do is query the ExecutionLog3 view and count the number of times the report has executed successfully.  The problem is this log is only kept for 60 days default.  I am sure if you wanted to you could adjust the period
    of time in which the log is kept (keep in mind it is system wide) or you could pull the data out that you need incrementally and store it.  Here is some information on the view.
    http://technet.microsoft.com/en-us/library/ms159110.aspx
    I think the biggest challenge you will face on this one is political should you go down this path.  Good Luck!

  • For loop, possible to increment counter/exit loop?

    I would like to know if it is possible to exit a For loop. I know
    I can use a while loop but it would be nice to be able to
    increment the loop counter in a for loop. Is this possible?
    Thanks,
    Mike

    Jim,
    OK, that clears it up. Coming from VB I'm still figuring out the
    differences.
    Thanks,
    Mike
    James Morrison/Joan Lester wrote:
    >
    > Also remember you can make while loops auto index. Right pop on the tunnel
    > and enable this and the loop will then act more like a for loop.
    >
    > Jim
    >
    > "Kevin B. Kent" wrote:
    >
    > > Mike Scirocco wrote:
    > >
    > > > I would like to know if it is possible to exit a For loop. I know
    > > > I can use a while loop but it would be nice to be able to
    > > > increment the loop counter in a for loop. Is this possible?
    > > >
    > > > Thanks,
    > > > Mike
    > >
    > > No sorry it is not possible.
    > > If you need this kind of functionality you will have to use a while loop.
    > > You can then setup all manner of conditions to exit the lo
    op.
    > > Be aware that the loop will always run at least ONCE.
    > >
    > > A for loop will run X number of times. This is determined either
    > > at compile time (if the count is hard coded) or at run time
    > > (if you use auto-indexing, or the count is a variable).
    > >
    > > Kevin Kent

  • Incrementing count

    Hi, i have two problems with my code which I need to fix. 1. How can i get the the results of the station to print out until it reaches 40 stations because it carries on printing in the loop to the screen. 2. How can i get the print statement to print the number of stations it is creating the results for?, i.e the station count goes up in fours, so i want it to print the first batch of results as 4 then 8, then 12 etc.......
    Please could anyone help me, thanks.
    here is a copy of the code, and also where the arrows are is where I the problems are. Feel free to run the code to see what it does, i think that will clear the problems i want fixings, thanks again.
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.text.*;
    import java.lang.Object.*;
    import java.lang.Math.*;
    public class TRS {
    public static void main(String[] args){
    int packets = 400; // number of packets for each station
    double dataRate = 16e6;     // Data transmission rate in bps
    int size = 1600;     // Average packet size in bits
    int mean;                              
    int stations;
    double ring = 100;          // Ring circumference in metres
    double ring_inc = (ring/2e8);     // Ring rotation time in mirco-seconds
    double token_time = (24/dataRate); // Token transmission time
         Random rn = new Random();
    for(int i=4;i<41;i=+4){    <------------------------------------
    System.out.println("\nNumber of Stations = " + (stations)); <----------------------
    System.out.println(" ");
    System.out.println("\tMean\t\tMean_Delay\tThroughput");
    System.out.println(" ");
    int [] seeds = new int[stations];
    double stat_inc = (ring_inc/stations);     // Inter-station propogation time
    double frame_time = (size/dataRate);     // Framet ransmission time
         for(i=0;i<stations;i++){
         seeds[i] = (int)(Math.ceil(8999 + 1) * rn.nextDouble()) + 999;
         double [][] tt = new double[stations][packets];
         for(mean=1;mean<10;mean++){                         // Mean inter-arrival time in milli-seconds
              for(int j=0;j<stations;j++) {
                   rn.setSeed(seeds[j]);
         double [] t = new double[packets];
              for(i=0;i<packets;i++){
              t[i] = -mean*Math.log(rn.nextDouble())/1000.0;
              for(i=1;i<packets;i++){
                   double z = t;
                   double y = tt[j][i-1];
                   tt[j][i] = y + z;
              int end = 1;
              double elapsed = 0;
              int [] next = new int[stations];          
                   for(i=0;i<stations;i++){               
                        next[i] = 1;               
              int token = 0;
              double [] delays = new double[40000];
              double sum = 0;
              int counter = 0;               
              double Q = tt[token][next[token]];
    while(end < packets){     
         if(elapsed > Q){                                                   
         delays[counter] = elapsed - tt[token][next[token]];
              next[token] = next[token] + 1;
              counter += 1;
              if(end < next[token]){
              end = next[token];
                   elapsed += (ring_inc + stat_inc + frame_time + token_time);                    
              else {
              elapsed += stat_inc + token_time;
                   token = (token+1) % stations;               
                   Q = tt[token][next[token]];               
              for(i=0;i<counter;i++){
                   sum += delays[i];
              double mean_delay = sum/counter;
              double throughput = counter * size/elapsed;
              NumberFormat formatter = new DecimalFormat("0.000E000");
              String m = formatter.format(mean*1e-5);
              String md = formatter.format(mean_delay);
              String tp = formatter.format(throughput);
         System.out.println("\t" + (m) + "\t" + (md) + "\t" + (tp));

    for(int i=4;i<41;i=+4)I suppose this will compile, but since you ask about
    incrementing the count: that doesn't do it. It
    assigns +4 to i. From what you say it sounds like you
    want to add 4 to i on each iteration of the loop.
    That would befor(int i=4;i<41;i=i+4)
    Ah.
    So presumably he meant i += 4 and transposed the + and the = (and added a space to boot).
    Or maybe he just forgot an i.

  • Where do i  increment counter and check the condition

    Hi experts,
    i worked on standard leave request demo  workflow templette, in that  revise(update), delete the leave request, in that manuually delete the request , that to be extended to when revise the leave request more than 3 times it automatically delete the leave request.i created one container element INDEX of type SYST-INDEX, where do i increment  the counter and where do i check the condition.
    thanks
    sitaram

    You can increment the counter using Container Operation type step in Workflow. You have also Condition step that you can use in Workflow.
    Thanks
    Arghadip

  • Sap script  - Incrementing Counter

    Hi all,
    This is the code I have written in the main window of sap scrpt.
    /: BOX FRAME 10 TW
    /E MAIN
    p3 &spaces(3)&&itab-carrid& &spaces(35)& &itab-connid&
    = &spaces(25)&&itab-fldate&
    /: PERFORM Z_V_SCRIPT IN PROGRAM Z_V_SCRIPT_SR
    /: USING &COUNTER&
    /: CHANGING &COUNTER&
    /: ENDPERFORM
    /: IF &COUNTER& EQ '1'
    /: &ULINE(45)&
    /: DEFINE &COUNTER& = 0
    /: endif
    This is the code for external subroutine z_v_script_sr.
    REPORT  Z_V_SCRIPT_SR.
    FORM z_v_script TABLES  IN_PAR STrUCTURE ITCSY
                          OUT_PAR STRUCTURE ITCSY.
    data : cntr type i value  -1.
    data : ch(3) type c.
    read table in_par with key 'COUNTER'.
    if sy-subrc = 0.
    cntr = in_par-value.
    endif.
    cntr =  cntr + 1.
    ch  = cntr.
    read table out_par with key 'COUNTER'.
    if sy-subrc = 0.
    out_par-value = ch.
    endif.
    MODIFY OUT_PAR INDEX SY-TABIX.
    write : 'vijay'.
    endform.
    I do not understand where I am going wrong.If I debug the subroutine the value of counter is being changed to 1 but it is not reflected when I debug my script. Please explain me where I am going wrong.
    Regards,
    Varun

    You counter must be held in global memory, otherwise it will always be the same.  PUt the data statement at the top of your print program.  Having it defined in the routine, means that everytime the routine is fired, it will be that value. In this case -1.
    data : cntr type i value -1.
    ALso, comment out the USING line in the SAPscript.
    /: PERFORM Z_V_SCRIPT IN PROGRAM Z_V_SCRIPT_SR
    <b>/* USING &COUNTER&</b>
    /: CHANGING <b>&COUNTER&</b>
    /: ENDPERFORM
    /: IF &COUNTER& EQ '1'
    /: &ULINE(45)&
    /: DEFINE &COUNTER& = 0
    /: endif
    Also shouldn't the counter field be defined in the print program as well.   
    Is COUNTER defined in the print program?
    Regards,
    Rich Heilman

  • OSX Lion Server app hangs; dock icon shows incrementing counter

    I'm running OSX Lion (10.7.3) on a MacMini.
    since yesterday, the following concistenly happens: when I start the server app, it says "connecting to the server" next to the spinning wheel at the bottom right corner of the app window. After a few seconds, the app's dock icon shows a red counter (akin to the "unread counter" of the mail app) which is continuously being incrememted, and the (in)famous colored spinning wheel comes up as well: the server app hangs, and shows up as "Not Responding" in the Activity Monitor.
    I've checked the System Diagnostic Reports on the Console window, and it reports the Server app as hanging, followed by a few thousand lines of messages ...
    Does anybody know what goes wrong, or better, how to resolve this problem??

    I have the exact same issue. I can see from Console.app, that
    opendirectoryd: got error 1100
    Can somebody please help?

  • RNR 4.2 Keeps adding one to the incremental backup count

    I had 10 maximum incremental backups, RNR successfully ran and created the 11th incremental, and the maximum incremental count was updated to 11.
    I then ran it again, the 11 turned into 12.
    Lee Vinson

    I'm having the same issue on Vista Business SP1.  I can get a backup to the USB external drive, just not DVD.  Any ideas?

  • Help counting a specific letter in a arrayList

    Hello I have made some code that suppose to count how many times a and e occurs in my arraylist. The problem is that it only works if an element consist of one letter. Could anyone tell me how I can make it work?
    import java.util.*;
    public class ex1
        public static void main(String[] args)
            ArrayList<String> words = new ArrayList<String>();
            words.add("ape");
            words.add("egg");
            words.add("and");
            words.add("e");
            words.add("bald");
            words.add("crap");
            averageVowels(words);
         public static void averageVowels(ArrayList<String> list)
             int count = 0;
                    for (int i = 0; i < list.size(); i++)  //for (String w: list)
                    if (list.get(i).equals("a")|| list.get(i).equals("e"))     
                           count++;
                    System.out.println(count);
    }

    baudits wrote:
    Hello I have made some code that suppose to count how many times a and e occurs in my arraylist. The problem is that it only works if an element consist of one letter. Could anyone tell me how I can make it work? How many times does it "occur" here:
    words.add("a");
    words.add("aa");Two, or three?
    If two, use String.contains("a") instead of .equals(). You're currently comparing each entire entry of your list of Strings to "a" or "e", so clearly only exactly "a" or "e" would increment count.
    If three, you'll need to iterate through each character of each word, not just through each word:
    for ( String word : words ) {
       for ( char c : word.toCharArray() ) {
          if ( c == 'a' ) {
             count++;
          } //etc
    }Edited by: endasil on 26-Nov-2009 2:55 PM

Maybe you are looking for

  • Unable to Run/Deploy the Application

    JDev 11.1.2.1.0 ADF BC I am unable to run my application and it gives the below log: *** Using HTTP port 7101 *** *** Using SSL port 7102 *** C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cm

  • Iphone 6 trade in program frustration

    My wife and I ordered our iphones at the Digitell Verizon Store at 7014 E Camelback Rd # 2244 Scottsdale, AZ 85251 on October 10. They told us we would get our Promo code to enter into the trade-in website the next day. Didn't get them, so we called,

  • Table lookup instead of fixed value mapping

    Hi Folks, My current scenario is that I have used fixed value mapping to map a single target field.  These details are actually maintained in the TP_Code table in R3 (a sample table). TradingPartner:SAP:Short Text PA:PA:Package PL:PAL:Pallet The tabl

  • I keep getting this message (CalDAVAccountRefreshQueueableOperation) for account "Yahoo" failed. How can I fix it?

    Why does this message come up when I try to sink my yahoo calendar on my mac book pro (CalDAVAccountRefreshQueueableOperation) for account "Yahoo" failed.??

  • Sending to Many Addresses at Once

    Let's say I create an e-mail and put 20 e-mail addresses separated by commas in either the CC or BCC field. - if one of the addresses is bad - what happens to the email when sending: 1 - nothing is sent??? 2 - all are sent ( except for the bad addres