Forum Replies Created

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

  • RE: Update takes too long

    Grant Fritchey (4/27/2015)


    You need to look to what the execution plan is telling you for how it's going to resolve this query. Your indexes are not being used or the...

  • RE: Update takes too long

    ChrisM@Work (4/27/2015)


    hemal_301080 (4/27/2015)


    Igor Micev (4/27/2015)


    Ok,

    If you create an index on Lotno,Kapan and Position it should improve the selection in the where condition.

    where Lotno=@Lotno

    ...

  • RE: Update takes too long

    Igor Micev (4/27/2015)


    Ok,

    If you create an index on Lotno,Kapan and Position it should improve the selection in the where condition.

    where Lotno=@Lotno

    ...

  • RE: Update takes too long

    Still no improvements.

  • RE: Update takes too long

    No

    I am not updating all rows.

    I am just updating a single row if where criteria matches with column 'kapan' and 'lotno'.

  • RE: Combine data from 2 tables and insert in another table

    Each unique party no from both the tables must be in the result.

    For example

    VoucherCr

    PartyNo Cramount

    1 ...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/12/2013)


    there appears to be inconsistency in the way you store "item" across the various tables.

    Not sure if this down to your real tables or just the...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/11/2013)


    Hi

    have been at work ...so sorry for delay

    I have had to go back thro your various posts in an attempt to get all the details of your...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    just to clarify....you say "voucherPRETSRET doesnt contain any data but needs to be checked"...but there is a PURCHASE RETURN in the sample data for voucher table.....???

    maybe sensible...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    just to clarify....you say "voucherPRETSRET doesnt contain any data but needs to be checked"...but there is a PURCHASE RETURN in the sample data for voucher table.....???

    maybe sensible...

  • RE: Get data from 3 or more tables

    hemal_301080 (4/10/2013)


    J Livingston SQL (4/10/2013)


    just to clarify....you say "voucherPRETSRET doesnt contain any data but needs to be checked"...but there is a PURCHASE RETURN in the sample data for voucher table.....???

    maybe...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    just to clarify....you say "voucherPRETSRET doesnt contain any data but needs to be checked"...but there is a PURCHASE RETURN in the sample data for voucher table.....???

    maybe sensible...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    will also need details of table/data for item_batch_stock IBS

    This is all table i need to check. No further. I did provide only 3 table details so...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    Can you suggest me from where can i know everything about TSQL and MSSQL?

    Knowing "everything" may take a little time....its a vast subject...try putting "TSQL" into...

  • RE: Get data from 3 or more tables

    J Livingston SQL (4/10/2013)


    maybe something along these lines....??

    declare @dt1 datetime

    declare @dt2 datetime

    set @dt1 = '2012-09-01'

    set @dt2 = '2012-10-01'

    ;WITH cte AS

    (

    SELECT

    V1.item,

    --V1.voucherno AS VNO,...

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