Forum Replies Created

Viewing 15 posts - 18,886 through 18,900 (of 26,484 total)

  • RE: Handling complex update

    A little hard to help you. It would help if you could provide the DDL for the tables, sample data that is representative (made up) of your actual data,...

  • RE: possible to do in a case statement?

    I have to agree with Seth. there really isn't enough information in your post to really help you. If you could provide your code, DDL for the tables,...

  • RE: Are the posted questions getting worse?

    Silverfox (9/11/2009)


    Do you know what really frustates me at times, is when someone posts after you have posted, and says, yes that is correct or says exactly the same as...

  • RE: Can I use a cursor Inside of a Function

    vallolet04 (9/10/2009)


    I actually modified the function because I had to include extra info this is the final version of the function

    ALTER FUNCTION fn_ImporteconDescuentoFinal (@Importe float(8),@Cliente varchar(10))

    RETURNS...

  • RE: SQL query help needed

    Zaza (9/10/2009)


    I've tried adding

    and Tablename = 'SALE' in my query but if a sale does not have a memo, it will disregard the sale alltogether

    Thanks for your help though

    Please show...

  • RE: db offline

    What database are you in when you run the ALTER DATABASE?

  • RE: Please help me to write code...

    Dave Ballantyne (9/10/2009)


    Select top 1 * from rates where end_date >= Inputdate order by end_date

    Based on the sample data, I'd drop the = from the >= in the where clause.

  • RE: Reasons to use PRIMARY KEY?

    I'm not sure about this at all. It has been a while since I was in a database class, but I seem to remember in most of them that...

  • RE: Can I use a cursor Inside of a Function

    Not having anything with which to test it, I think this is what Jeff was thinking:

    ALTER FUNCTION fn_ImporteconDescuento (@Importe float(8),@Cliente varchar(10))

    RETURNS Float(8)

    AS

    BEGIN

    Declare @AuxImporte Float(20);

    ...

  • RE: how to get month wise data

    How does the id tie into this? From what I can tell it is nothing more than a row identifier. Am I wrong?

  • RE: Please help me to write code...

    Couple of things first.

    One, read the first article I reference in my signature block about asking for assistance. Please following the instructions in that article on what and how...

  • RE: Ansi SQL show different results

    All I'm saying is that how you build the query is based on what the question asked. The OP indicated (right or wrong) that what he posted as was...

  • RE: Ansi SQL show different results

    I'm going to go with "it depends." Which result set is the correct one? Only the user knows for sure:

    IF EXISTS(SELECT name FROM sysobjects WHERE name = N'test_maintable'...

  • RE: Ansi SQL show different results

    Sergiy (9/9/2009)


    No, you should leave criteria on "FROM" table in WHERE:

    WHERE c.contest_id = 2

    Only criteria on LEFT JOIN table go into ON.

    I think it is a wash either way...

  • RE: DBAs Pen

    CirquedeSQLeil (9/9/2009)


    Lynn Pettis (9/9/2009)


    I find much value in getting published. Having authored 4 articles (2 here on SSC and 2 on SSWUG.ORG), I find it a way to give...

Viewing 15 posts - 18,886 through 18,900 (of 26,484 total)