Forum Replies Created

Viewing 15 posts - 2,401 through 2,415 (of 4,081 total)

  • RE: How to find previous date

    Use DATEADD, with a negative number of days.

    select getdate(),DATEADD(day,-3,getdate())

  • RE: Are the posted questions getting worse?

    Question: In SSC, is the proper acronym "LOL" (laughing out loud) or "SOM" (spewing on monitor) ??

  • RE: Need help for SQL query

    If I can't build a reputation on SQL skills, I am forced to build one on bad puns. 😛

  • RE: Need help for SQL query

    I think I will start referring to you as Emperor Paulpatine.

  • RE: Indexes

    Many thanks, Paul.

    Grant, I liked this question, even though I got it wrong. 😉

  • RE: Need help for SQL query

    Okay, I'm in synch with your question now. Sorry for the confusion. It seems to be my day for it.

  • RE: Indexes

    Thanks Paul, I was missing that. Thanks for fixing the image. Also, do you disagree with what I said about the size of the RID? ...

  • RE: Need help for SQL query

    PP:

    I see two queries against different columns. What does that prove?

    Also, do you have an index built over either date column? That...

  • RE: Indexes

    Hey Chris,

    Thinking about your results, the table itself is smaller than the index in this case. Why? Because the underlying table has no clustered index....

  • RE: Weighted Distibution/Bell-Curve Calculation + Query

    I will suggest that you give us an example using sample tables and data, to accompany your picture of what the expected output should be. Simple text...

  • RE: Indexes

    For query #1, the index scan is just a table scan in disguise.

    If the index were a clustered index, I would agree. But rememeber that you often see...

  • RE: Are the posted questions getting worse?

    I just got long-winded and gave a lecture here about how execution plans differ depending on the size and nature of the data. If anybody would care to...

  • RE: Indexes

    I see that different people are seeing different results.

    On my machine, at 100 rows, the 4th query (against #bigT) produces an index seek, and an RID lookup,...

  • RE: Indexes

    the question is not a simple one of the structure leading to a deterministic result, but the optimiser may take very different routes in the same database structures depending on...

  • RE: trouble writing query

    Winston, I think we need you to clarify something about your requirements. I noticed that you had one itemID that was associated with two different groupIDs.

  • Matt's solution returns...

Viewing 15 posts - 2,401 through 2,415 (of 4,081 total)