Forum Replies Created

Viewing 15 posts - 5,716 through 5,730 (of 6,486 total)

  • RE: Newbie - Group by Question

    Embed a CASE statement into the SELECT... syntax. You're restricting yourself to one group only, so there's no sense in using a GROUP BY clause.

    Something like:

    select

    ...

  • RE: Should I use # tables?

    Jez (11/19/2007)


    table variable vs #table- possible but you cannot create an index on a table variable.

    But the question remains - should I extract the records I need from...

  • RE: SQL DATABASE TO PIVOT TABLE

    pjesrani (11/18/2007)


    yes it exceeds the no of cells

    By the way - you didn't mention in which direction it "exceeds". If vertically (i.e. rows>65K) then yes - the options discussed...

  • RE: is there any difference between != and <>

    GilaMonster (11/15/2007)


    Matt Miller (11/15/2007)


    Gail - as to your test - I will try to dig out and use the XML data() trick, we'll let Jeff come up with the "pure"...

  • RE: is there any difference between != and <>

    Jeff Moden (11/15/2007)


    Sorry... must still have the "ranger eye's" going on from lack of sleep the other day... I just say the results you posted for the run.

    Thanks for fixing...

  • RE: is there any difference between != and <>

    Jeff Moden (11/15/2007)


    Took a while to get the code realigned correctly after the copy/paste operation

    Matt,

    Reformatting code that you've copied from those "Code" windows is actually pretty easy (although I wish...

  • RE: Pivot a list of dates into date intervals

    use testing

    go

    IF OBJECT_ID('dbo.weekdays') IS NOT NULL

    DROP FUNCTION dbo.weekdays

    go

    --steal code directly from Jeff Moden's article and turn into a function

    create function dbo.weekdays(@startdate datetime,@enddate...

  • RE: Urgent! - How to extract number from a string

    I've been beating the heck out of this drum lately - but an actual regular expression will help you find all of the various issues you're looking at here. ...

  • RE: is there any difference between != and <>

    Jeff Moden (11/15/2007)


    No noticeable difference in processing time.

    You mean on the dynamic SQL by itself or the whole Phone Test #1?

    Thanks for the great tip (we call them "oolies" in...

  • RE: Concatenation of rows in function

    AM -

    Jeff Moden and I were just having a bit of a conversation about that in another thread. He just posted an example that will work on a...

  • RE: is there any difference between != and <>

    Jeff - I was going to quote you...but I didn't know what to pick up. You're right - most of the examples in there are fairly disgusting SQL.

    That being...

  • RE: is there any difference between != and <>

    Jeff - one last update on Phone Test #1.

    I got the results to match. two smallish updates:

    - changed the AND t.N < LEN(m.Doc)-14 to AND t.N < LEN(m.Doc)-11...

  • RE: is there any difference between != and <>

    Jeff Moden (11/15/2007)


    Matt,

    What does the orginal data look like and what does it end up looking like after your concatenation?

    The original data is the output of Phone Test #1....

  • RE: is there any difference between != and <>

    First - test results. Took a while to get the code realigned correctly after the copy/paste operation. I made one change to your code (making the @sql variable...

  • RE: Identifying the html tags contained data in database table

    You can get a running start at it by filtering for things that contain <\. By far and large I don't think you will find that sequence "in the...

Viewing 15 posts - 5,716 through 5,730 (of 6,486 total)