Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 4,080 total)

  • RE: probem with declare

    .

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Some guidance if you could

    It should only have a single column called [Column 0]. Correct? Or did you give the column a name?

    Assuming it's called [Column 0], see if...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Case when one integer and one not

    By the way, the solution I posted is going to take away the optimizers' opportunity to take advantage of any appropriately-sequenced covering indexes. In other words,...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Case when one integer and one not

    tshad (7/13/2011)


    I have Sort order I want to do where if a parameter is 1 then it is sorted by one column and if 2 a different column.

    The problem is...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    SQLRNNR (7/13/2011)


    Gianluca Sartori (7/13/2011)


    Here he goes again.

    I didn't notice it from the start.

    Funny. 🙂

    Added my two bits. :-D:-D:-D:-D:-D:-D:-D

    Ah... that explains it... not enough bits to make a complete byte...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    [font="Wingdings"]LOL LOL LOL[/font]:hehe:

    [font="Wingdings"]I like that!! The little "frownies" are quaintly misleading.[/font]

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Matrix Issue (Variance not Sum)

    carl.meads (7/13/2011)


    My column names are not [2009] and [2010] my column name is PeriodYear and then I have 5000 records for example that are 2009,2010 along with an asset so...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Matrix Issue (Variance not Sum)

    Last I heard, adding produces a sum and subtracting produces a difference (or variance).

    I don't know what else to tell you. ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Matrix Issue (Variance not Sum)

    It is easy, unless there is something you are not telling us.

    Do us the courtesy of posting the schema or code for the things you've tried.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Nested SQL statement

    If I understand you correctly, you want accompanying detail (refID) to go with the maximum value. Basically you want information for the top row (sorted by value) in...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Help trying to flatten an EAV table?

    Understood. But please understand the code posted will ONLY work as long as there are NO changes to those ExamRowID numbers. If those ExamRowID numbers...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Help trying to flatten an EAV table?

    Your problem is that there is NOTHING in your data that identifies the READING rows as compared to the WRITING rows, other than the examrowID. Assuming...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Forget Denali and R2... It's almost time to start talking about (American) Football again.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Indexing for Group By Clause

    It were only a single table, you could try an index over the three columns you are doing your GROUP BY on. In your pseudocode example, that would...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Need help optimizing the performance of a query

    Declare @Results Table (ProductName varchar(50) primary key, TotalPaidAmount decimal(22,2), TransactionCount int, Customers int)

    INSERT INTO @Results

    SELECT ProductName, SUM(paid_amount) AS TotalPaidAmount, count(*) as TransactionCount, distinct(customer_ID) as Customers

    FROM transactions tr1

    WHERE date_of_sale >= '2010-01-01'...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

Viewing 15 posts - 1,006 through 1,020 (of 4,080 total)