Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)

  • RE: Error in having clause!

    Ok, sorry but the error is common on both platforms and the error should be the same and the way to solve it πŸ™

    Thank you in advance for your help,

    JC

  • RE: Error in having clause!

    Hi,

    It is relevant to the number of columns in the group by?

    Thks for your help,

    JC

  • RE: Error in having clause!

    ok,

    I already change but have the same error:

    SELECT

    UNIQUE a.whse_id,

    a.ord_id,

    b.prod_id,

    d.ord_qty*d.unit_ship_cse qty_orig,

    b.ckpt_id,

    Sum(trunc(b.prod_qty)) qty_final

    FROM system:iord a, system:ishd b, archive:stord c, archive:stordd d

    WHERE a.dc_id = b.dc_id

    AND a.whse_id =...

  • RE: Error in having clause!

    I do not understand? If remove the line from having run perfectly πŸ™

    Thks,

    JC

  • RE: Help- Count by Month

    Thks a lot.

    Work πŸ™‚

    Best regards,

    JC

  • RE: Help- Count by Month

    Hummm,

    DonΒ΄t work ask me for parameter m and wh.

    πŸ™

    JC

  • RE: Count issue/replace between!!!

    Hi again,

    I fix this with this.

    CDate(Format(Campo,"dd-mm-yyyy"))

    Thks a lot for your help,

    Regards,

    JC

  • RE: Count issue/replace between!!!

    I appreciate your help but still not running.

    :crying:

    JC

  • RE: Count issue/replace between!!!

    This is run with a string in VS 2012, the database table is a mdb (access):

    Dim SQLStringtempprd123 As String = "SELECT CAST([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE CAST([create_dtim],'dd-mm-yyyy') between '01-09-2016...

  • RE: Count issue/replace between!!!

    ChrisM@Work (1/25/2016)


    jcachado (1/25/2016)


    Ok,

    The statment is:

    SELECT format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE format([create_dtim],'dd-mm-yyyy') GROUP BY format([create_dtim],'dd-mm-yyyy') order by format([create_dtim],'dd-mm-yyyy') desc

    Its run, but i think the DESC dont work because...

  • RE: Count issue/replace between!!!

    Ok,

    The statment is:

    SELECT format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE format([create_dtim],'dd-mm-yyyy') GROUP BY format([create_dtim],'dd-mm-yyyy') order by format([create_dtim],'dd-mm-yyyy') desc

    Its run, but i think the DESC dont work because is ordering...

  • RE: Count issue/replace between!!!

    My mistake , already run but not accept the CAST.

    Thks ,

    JC

  • RE: Count issue/replace between!!!

    Hi again,

    Already work in this way:

    SELECT Format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE Format([create_dtim],'dd-mm-yyyy') GROUP BY Format([create_dtim],'dd-mm-yyyy' order by Format([create_dtim],'dd-mm-yyyy'

    But when i put ORDER BY dont run.

    What is the error?

    Thks a...

  • RE: Count issue/replace between!!!

    But if I want per day will have to remove the between right?

    Thks,

    JC

  • RE: Error in statement time > X

    Eirikur Eiriksson (1/23/2016)


    Strongly advice you not to use the format function as it performs very badly.

    😎

    What your sugestion to replacing format command?

    Thks,

    JC

Viewing 15 posts - 1 through 15 (of 28 total)