Forum Replies Created

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

  • RE: Problem on Dynamic Pivot

    got it !!!

    COT is a reserved word!!!!!!

  • RE: Domain Error

    thanks!

    I needed an answer like that.

  • RE: Sum value for same sub_id with different id

    Alexander Suprun (6/20/2012)


    select SUM(a.t),p

    from @table3 a

    where exists

    (

    select n

    from @table3 t

    where (p = 1 or...

  • RE: Sum value for same sub_id with different id

    Thanks for the reply david but it didn´t come out what i expected.

    For the record i´ve managerd to get the results as i want but i think that maybe...

  • RE: Problem with left join.

    Thanks to everyone. Your input really help me into find the solution.

  • RE: Problem with left join.

    Lowell (12/19/2011)


    i'm guessing nwdetcot is a list of all possible prices, possibly for all products thru the begfinning of time..i'm betting you need to limit it to just the...

  • RE: Why it doesnt work??

    That clears it all!

    thanks!

  • RE: Why it doesnt work??

    ALZDBA (1/21/2011)


    Just assign an alias to your nested query expression and it will be OK

    select count (*) from

    (select codaux,nomaux from aqua.softland.cwtauxi

    except

    select codaux,nomaux from 0718.softland.cwtauxi) as x

    thanks it worked.!

    Now,..can...

  • RE: Why it doesnt work??

    skcadavre (1/21/2011)


    select count (codaux) from

    (select codaux,nomaux from aqua.softland.cwtauxi

    except

    select codaux,nomaux from 0718.softland.cwtauxi)

    Do you understand?

    hi!.

    Since i am getting a sintax error i thought that no other info was needed.

    But if...

  • RE: selecting data and putting it in email @body

    Sendmail will send ONE email for each client (@client, cliente) with a valid email (@correocliente,correocliente).Also it will send one email to each salesperson notifying them that exist a record for...

  • RE: selecting data and putting it in email @body

    Thanks jeff!!

    i´ve been testing all week and i finally got what i needed.

    I will post it tomorrow and hopefully you and some others will give me your advices to...

  • RE: selecting data and putting it in email @body

    I appreciate all your advices and your answer.

    I´ve changed the data type of the columns:

    CREATE TABLE [dbo].[correosaclientes](

    [cliente] [varchar](10) COLLATE SQL_Latin1_General_CP1_CI_AI NOT NULL,

    [ningreso] [int] NOT NULL,

    [proyecto] [char](100) COLLATE Modern_Spanish_CI_AS NULL,

    [fingreso]...

  • RE: Add variable to @body in msdb.dbo.sp_send_dbmail

    Thanks lowell!! i was missing the replace function!!

    i got this

    alter TRIGGER enviacorreos on infarchivo

    for insert

    AS

    declare @infanlab int

    declare @infanmuestra char(13)

    declare @infaobs ...

  • RE: after insert trigger

    Craig Farrell (9/9/2010)


    For an easy answer, wrap the entire item with:

    IF EXISTS (SELECT 1 from inserted where idcontrato='2' and eicanalid = '91')

    BEGIN

    --The rest of your trigger code goes here

    END

    thanks! that...

  • RE: after insert trigger

    thanks for the input.

    the software is made by the IT team of the company where i work.

    i have a new problem with the following code.

    create TRIGGER trgAfterInsert ON eicanalesres

    FOR...

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