get the name of the data with scsi CanonicalName store

Hello

I need name of data store that we define when adding LUN... I have that... with the same canonical name scsci in need of the cluster name, host name, and virtual machine running on this Lun.

This sample script:

Get-data-center "testdt" | Get-cluster "tstclu" | Get-Vmhost | Get-ScsiLun - CanonicalName * 6006016010122900 *.

Try like this

New-VIProperty -Name lunDatastoreName -ObjectType ScsiLun -Value {    param($lun)

    $ds = $lun.VMHost.ExtensionData.Datastore | %{Get-View $_} |         where {$_.Summary.Type -eq "VMFS" -and            ($_.Info.Vmfs.Extent | where {$_.DiskName -eq $lun.CanonicalName})}    if($ds){        $ds.Name    }} -Force | Out-Null

I've updated the code on VIProperties as well.

Thanks for finding this 'feature '.

Tags: VMware

Similar Questions

  • Get the date with the millisecond of the table

    I want to get the date with milliseconds in table format in the variable. How to get there?

    SQL > create table test_date (col1 date);

    Table created
    SQL > insert into test_date values (sysdate);

    1 row inserted

    SQL > commit;

    Validation complete

    SQL > select * from test_date;

    COL1
    -----------
    18/12/2009


    Here I have to get datewith "millisecond" format and put it into the variable varchar2 (50) and pass this
    to Java.


    SQL > select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date;

    Select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date

    ORA-01821: date format not recognized

    SQL >

    Thank you
    Khaldi

    user601042 wrote:
    I want to get the date with milliseconds in table format in the variable. How to get there?

    SQL > create table test_date (col1 date);

    Your data col1 type should be TIMESTAMP.

    See you soon
    Sarma.

  • Get the data with more than one of the desired value

    Hello

    I need to shoot the records with one value of 'Other' more on delivery days fields.
    Delivery of fields are Mon, Mar, sea, game, Fri and Sam that indicates where the item will be shipped. The value can be at home, work, or other.

    Examples of data include:
    cust_id: 123
    Article: newspaper
    Mon: Home
    Kill: Work
    Sea: other
    game: Home
    Fri: other
    Sam: other


    And here is my request so far.
    Select
    cust_id,
    agenda,
    LUN,
    Mar,
    Kills,
    game,
    Fri,
    Sam
    sum (case when (del_mon = 'o' or del_tue =' o 'or del_wed =' o 'or del_thu =' o 'or del_fri =' o ' or del_sat = 'O') then 1)
    otherwise 0 end) as day_ctr

    of the customer

    Could you please help me with the right formula should I get this?

    Thank you in advance...

    Hello

    This should do it:

    Scott@my11g SQL>with sampledata as (
      2  select 123 cust_id, 'newspaper' item, 'Home' mon, 'Work' tue, 'Other' wed, 'Home' thu, 'Other' fri, 'Other' sat from dual
      3  union all
      4  select 456, 'newspaper' item, 'Home' mon, 'Work' tue, 'Home' wed, 'Home' thu, 'Home' fri, 'Other' sat from dual
      5  )
      6  --#### True query starts here ####
      7  select *
      8  from sampledata
      9  where (
     10  decode(mon,'Other',1,0)
     11  +decode(tue,'Other',1,0)
     12  +decode(wed,'Other',1,0)
     13  +decode(thu,'Other',1,0)
     14  +decode(fri,'Other',1,0)
     15  +decode(sat,'Other',1,0)
     16  )>1 ;
    
       CUST_ID ITEM      MON  TUE  WED   THU  FRI   SAT
    ---------- --------- ---- ---- ----- ---- ----- -----
           123 newspaper Home Work Other Home Other Other
    
  • Query to get the date from

    Hello everyone,

    How can I create a query having 2 date and 2 variable of the type:
    from 1 date 05/06/2004 
    to   2 date 15/06/2004 
    yes for 2 days
    no for  1 day
    that is, 
    
    i wish get the date with yes for 2 days and not for 1 day, this is, that I want
    
    05/06/2004 sabato
    06/06/2004 domenica
    08/06/2004 martedì
    09/06/2004 mercoledi
    11/06/2004 venerdi
    12/06/2004 sabato  
    14/06/2004 lunedi
    15/06/2004 martedi
    Thanks in advance

    Hello

    The WHERE clause controls the lines will appear.
    If your needs change, change the WHERE clause to reflect their.

    For example:

    DEFINE     from_date     = "TO_DATE ('05/06/2004', 'DD/MM/YYYY')"
    DEFINE     to_date          = "TO_DATE ('15/06/2004', 'DD/MM/YYYY')"
    DEFINE     yes_cnt          = 3
    DEFINE     no_cnt          = 2
    
    SELECT  &from_date + LEVEL - 1        AS dt
    FROM     dual
    WHERE     MOD ( LEVEL
             , &yes_cnt + &no_cnt
             )          BETWEEN  1
                       AND      &yes_cnt
    CONNECT BY  LEVEL <= 1 + &to_date
                         - &from_date
    ORDER BY  dt;
    

    This will work as long as you want the first & yes_cnt lines to display (assuming that there are many) and the following lines & no_cnt don't step to display, and then another & yes_cnt lines to display and the other & no_cnt lines not to display and so on.

    I guess & yes_cnt is a positive integer and that & no_cnt is a non-negative integer. (I.e. & no_cnt can be 0)

  • &lt; dateformat: create, get the date in en_GB, es_ES instance

    Hello

    I don't know if it's a bug or normal behavior:

    I get the date in en_GB, but I ask the date to es_ES, the snippet of code below:

    < ics:if condition =' < % = ics. GetList ("FechaBlog")! = null & & ics. GetList("FechaBlog").hasData () % > ' >

    < ics:then >

    < ics:listget listname =' < % = "FechaBlog" > "fieldname = 'value' output ="Cash out"/ >"

    < local: create varname = "currLocale" nomlocale = "es_ES" / >

    < dateformat: create name = datestyle 'PostDateFormat' = 'average' timezoneid = "Europe/Madrid" locale = "currLocale" / >

    < name dateformat:getdate = "PostDateFormat" value = "< % = ics." GetVar ("cash") % > ' valuetype = "jdbcdate' varname ="FormattedPostDate"/ >

    < / ics:then >

    < / ics:if >

    22-may-2015

    I expect to get: 22 -mayo- 2015; But if change the 'average' datestyle to "long", I am getting:


    2015 22 Mayo


    as expected, in es_ES.

    This is the normal behavior? WCS 11.1.1.8

    Kind regards

    Hello Jorgitoito,

    This is how Java has shaped the date in Spanish. It is not specific to the WebCenter Sites.

    You can give it a try with this simple Java code:

    java.util.Locale locale = new java.util.Locale("es", "ES");
     java.text.DateFormat mediumFormat   = java.text.DateFormat.getDateInstance(java.text.DateFormat.MEDIUM, locale);
    System.out.println(mediumFormat.format(new java.util.Date()));
    java.text.DateFormat longFormat   = java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG, locale);
    System.out.println(longFormat.format(new java.util.Date()));
    

    The results I got:

    27-May-2015

    2015 27 Mayo

    I suspect that 27-May-2015 here is not in English; It is simply the first three letters of mayo.

    Kind regards

    Stephan.

  • Get the data from a virtual computer store

    I'm looking to get the data from a virtual computer store, but format to be used with vmrun.  My current vmrun statement is:

    vmrun t CR h < IPAddress > https://: 443/SDK u & lt; username & gt; Pei & lt; password & gt; runProgramInGuest "[& lt;. datastorename & gt;] & lt; datastorefolder & gt; / & lt; virtualmachinename & gt;. VMX' c:\myscript.bat

    The idea is to replace & lt; datastorename & gt; given with the name of the LUN that is running on a virtual machine.  In this case, I'm running my statement vmrun from inside a script PowerCLI.  I can use a variables powerCLI, if the vmrun instruction can take and use all escape sequences are needed to adapt the format vmrun to this argument.

    That is right.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Try to get the data in a field of classical entry in a clip

    I'm working on a project basis CMS (for self learning purposes) and I'm stuck on something trying to get data from a text inside a frame of the movie entry.  The code works with the homeUpdate_btn on the same level as the home_input_txt.

    When I run the file (swf), the homeUpdate_btn does not show because it isn't at the level of the root parent level. (it's inside the clip with the home_input_txt).

    So, if I put the homeUpdate_btn in the parent level (I hope I rethink my levels).  The button is not able to get the data in the home_input_txt field which is at the root.

    I would like to try this again... you can see the classic home_input_txt of parent level (outside the movie clip and make changes), but you can see the homeUpdate_btn of this level.  So to see the homeUpdate_btn I set at the parent level.  Now how I update and obtain data on the level of the root of the home_input_txt... .inside the clip?

    __________________________________________________________________________________________ _____________________________

    I think it's the line that update data comes... that is text entry: homeEdit_variables.home_body = home_input_txt.htmlText;

    ________________________________________________________________________

    Issue: homeUpdate_btn does not show inside the clip when I run.

    ______________________________________________________________________

    Any Action Script for "Udate Home Page.  (again within a clip)

    Stop();

    restrict the characters that the user can type into the text entry field

    home_input_txt. Restrict = "A-Za-z 0-9,.? $& = @_ « ;

    put current home page data in the field of text for editing

    home_input_txt.htmlText = homePageText;

    Assign a variable name for our URLVariables object

    var homeEdit_variables:URLVariables = new URLVariables();

    Build the varSend variable

    var homeEdit_varSend:URLRequest = new URLRequest ("cms_control_file.php");

    homeEdit_varSend.method = URLRequestMethod.POST;

    homeEdit_varSend.data = homeEdit_variables;

    Build the varLoader variable

    var homeEdit_varLoader:URLLoader = new URLLoader;

    homeEdit_varLoader.dataFormat = pouvez;

    homeEdit_varLoader.addEventListener (Event.COMPLETE, completeHandler_home_edit);

    Completion of script handler PHP and return

    function completeHandler_home_edit(event:Event):void {}

    gotoAndStop ("home");

    }

    Add an event listener for the button send and what function to perform

    homeUpdate_btn.addEventListener (MouseEvent.CLICK, updateHomePage);

    Validation of form fields and send the variables when you click on the button

    function updateHomePage(event:MouseEvent):void {}

    Loan variables for sending

    homeEdit_variables.sendRequest = "update_home_page";

    homeEdit_variables.home_body = home_input_txt.htmlText;

    Send the data to the php file

    homeEdit_varLoader.load (homeEdit_varSend);

    }

    I get this error message:

    Symbol "page content", layer 'actions', frame 25, line 44 1119: access to property may be undefined home_input_txt through a reference with static type flash.display:DisplayObjectContainer.

    _______________________________________________________________

    mc_edit is the name for the clip

    So I thought I would say that there... the... in home_input_txt.htmlText the container movie clip.

    I changed the line below in the action script where is the button.

    ______________________________________________________________________________

    homeEdit_variables.home_body = mc_edit.home_input_txt.htmlText

    __________________________________________________________________________

    It worked :-)

    Maybe it's not the right way, but it will solve the problem send me severe headaches... Laughing out loud

    Thank you for all your quick responses.  You kept me motivated

  • With a sampling of the data with DAQMX, error-200279 occurs when making 2d array dbl

    Hello

    I did a system of simple analog voltage with DAQMX data acquisition.

    It is made for reading of capacitance, where output capacitance value out of a circuit in the periodic voltage signal.

    What I want is to get data from four capacitors simultaneously through four channels, using samples n n (dbl 2d).

    The structure of my VI is almost similar with examples of continuous sampling of voltage in LabView, with the exception of a few other calculations in the loop.

    And for the synchronization of the trigger, I've corrected the edge of release with the external signal from the capacitance reading circuit.

    Version no. 1 has a channel for data input voltage. Version n ° 2 has four channels for the input data.

    While ver.1 can get accurate reading of four capacitors circuit data each (a single channel at a time),.

    ver.2 acquires four channels of data, with a single thin data channel, all the others were wrong.

    I saw a 200279 error occur in the DAQMX read part 2d dbl, so I tried increasing the buffers by changing the sampling frequency or the number of samples, but it wasn't everything.

    I rose for most of the forums with the 200279 error, but the solution would not work on mine.

    Anyone can find the problem? I will attach my screws it may include a bit of Korean language, but most of them are in English, shouldn't be too hard to recognize. Sorry for the inconvenience.

    Oh I forgot, my DAQ is NI USB-6259, and it works in Win XP sp3 and LabView 8.6.

    Thank you.

    Hello Azurenight,

    The 6259 is a DAQ card of the M Series Multiplexed, which means that it is not possible to sample each signal at the same instant, rather the channels are all sent through the ADC even and must be sampled in order. More information on this can be found here:

    LabVIEW Help: Multiplexing compared with simultaneous sampling

    http://zone.NI.com/reference/en-XX/help/370466W-01/mxcncpts/multisimulsamp/

    It may still be possible to get the data you need with the card you have - could you give more information about the maximum eligible period between samples on different channels?

    If you require * real * simultaneous sampling, you will probably need different hardware.

    Kind regards

  • How can I get the data view to display the same amount of time I save?

    I use the Sound and Vibration Measurement Suite.  In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall.  I am also showing strength in numbers group for several bands and doing cutting-edge research.  I record 100 ms of the transient wave.  In the data view, why the temporal plots show several seconds of data?  What determines how much time will appear in the data view?  More important, the power spectrum reflects the power for the entire of several seconds of data displayed?  Same question for power in the values of band and cutting-edge research.  I want to just this data displayed for 100 ms of the wave that I record.  So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?

    Finally, what is the best way to make account concisely the recorded data?  By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc..  I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care.  Help?

    Hi TimRsandiego,

    SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.

    If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:

    Let me know if you have any other questions.

    Kind regards

  • Cannot get the date system. My input format is %d %m %Y and the output is also a format "YYYYMMDD"?

    Hi all

    I'm using Labview 8.5.

    I'm trying to get the date system.

    I use the Format Date/time string in a "%Y %m %d' format.

    The PROBLEM is the Format Date/time string return "YYYYMMDD" only.

    Please see my attachment to see.

    Please help me with this, whenever I encounter this problem it force to reinstall labview program.

    Best thanks!


  • C20/SX20: is there a way to get the cdr with loss/jitter of the stats?

    I'm trying to get a report with loss/jitter, but doesn't cdr can not find a way to do it.

    (a) TMS is able to report COR but only on the participants/duration/encryption/protocol of appeal

    (b) C20 web gui has information but only with a number of clicks on and only for a call each time

    (c) API C20 (cli) I found some commands, but nothing for the loss/jitter
    I tried xstatus Diagnostics appeal channels-> only for calls in progress.
    tried xHistory recent CallLogs | Call-> nothing usable

    Is it possible to get the cdr with jitter/loss for each C20/SX20 counters in a framework?

    Methods to obtain these data is exactly what you have listed and must be carried out during the call.

  • How to get the Date, month, year of the DateTimePicker

    Hi, I am using the DateTimePicker.

    There are several question about this command:

    1. how to get the Date, month and year?

    -With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?

    2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?

    Thank you

    dateTimePicker.value return a QDateTime not a string.

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value

    See more:

    https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date

    https://developer.BlackBerry.com/Cascades/reference/QDate.html

    You can get

    day = dateTimePicker.value.date().day()
    month = dateTimePicker.value.date().month()
    year= dateTimePicker.value.date().year()
    dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate)
    dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD")
    dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
    
  • I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player?

    Hello

    I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!

    Hello

    I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!
    People like you that encryption data with bitlocker do it because they want their data accessible only by those who have the certificate. The sad news for you is that you have made a good choice with BitLocker: unless you have the certificate, your data remains inaccessible. There is no backdoor. If he had then BitLocker would be useless.
  • How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    WIN8 are delivered with this tile/app.  The only way to display the time is to launch the charm bar (Win - key + C) or mouse over to the right up/down.  That said go to the Windows store... There are several free applications that display the time / date as a live tile.  Good luck.

  • Compare and get the data in the tables (see post for details)

    I have two tables TableA and TableB. I struggle to write a query to get the dates of TableB (instead of TableA dates) where TableA dates don't coincide with the tableB (beginning and end).

    Example 1: For account A1234,.

    TableA got 2 rows 1/31/2014-3/3/2014 (which corresponds to TableB row), but TableA got another rank 31/01/2014 - 31/01/2014 that corresponds with the date of TableB Begin. In this case, I'm looking for output as below,

    Use TableB start and end date and combine number two rows from TableA for this account

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    A123431/01/201403/03/2014100.0000000000

    Example 2: For the B7777 account.

    TableA end date aligns with the end dates of TableB for this account, in this case I want out put as,.

    Use TableB start and end date and get the amount of TableA

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    B777705/04/201306/05/2013200.0000000000

    Example 3: On behalf of D5555,.

    Even a TableA line corresponds with TableA, there are two other rows in TableA matching start date with TableA and correspondence with the end date with TableA, in this case, that I put as,.

    Use TableB start and end date and combine number three rows from TableA for this account.

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    D555508/08/201410/09/20141100.0000000000

    Example 4: To account E6666.

    Table corresponds to a row with TableB and no additional lines in TableA, just display the data in A table

    Tables and data:

    create table TableA
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    create table TableB
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    TableA Data:
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('31-01-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('18-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 120.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('25-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('16-08-2014', 'dd-mm-yyyy'), 1000.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('16-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    TableB Data:
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('05-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 200.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('06-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 1100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    
    
    SELECT A.ACCOUNT,
           A.BEGIN,
           A.END,
           A.AMOUNT,
           B.ACCOUNT,
           B.BEGIN,
           B.END,
           B.AMOUNT
      FROM TABLEA A
      LEFT JOIN TABLEB B
        ON A.ACCOUNT = B.ACCOUNT
    

    Hello

    SeshuGiri wrote:

    Hi Frank,.

    Your query/solution works very well, but I forgot to mention something in the first post...

    Please insert these additional lines and try the request again.

    TableA Additional lines:

    1. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('F9999', to_date (January 2, 2014 ',' dd-mm-yyyy ""), to_date (3 January 2014 ', 'dd-mm-yyyy'), 999.0000000000);
    3. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    4. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    TableB Additional lines:

    1. Insert into TABLEb (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    Question 1:

    The table has a rows for A1234 account (i.e. the time period different than the ranks for the same account)

    one is A1234 31/01/2014-03/03/2014, A1234 03/03/2014-03/04/2014

    Your query that returns two rows for A1234 account (which is what I want), but the amount is messed up.

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 1100
    2 A1234 03/03/2014 03/04/2014 1100

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    I don't get the results with additional data. I get 1099 for two lines where account = 'A1234 '.  I get 1100 as the amount on the line with the account = "D5555.  You did it other changes to data?

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Still, I don't see why you want to 101 for the amount of the first row.  Why not 100?

    How can you know which rows from tablea should get attached to what rows from tableb, when the account is not unique?

    Maybe you want something like this:

    SELECT a.account

    b.begin

    b.end

    SUM (a.amount) AS total_amount

    FROM tablea a

    ON a.account = b.account JOIN tableb B

    AND a.begin BETWEEN b.begin

    AND b.end

    AND a.end BETWEEN b.begin

    AND b.end

    GROUP OF a.account, b.begin, b.end

    ORDER BY a.account

    ;

    but I guess just to your needs, and guessing is not a very good or reliable way to solve problems.

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    Yes, it looks that you want an outer join.  What happened when you tried?  As always, post your code, the exact results you want from the given sample data, as well as an explanation of how you get these results from these data.

Maybe you are looking for