Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 1,228 total)

  • RE: Are the posted questions getting worse?

    mtillman-921105 (10/26/2010)


    Steve Jones - SSC Editor (10/26/2010)


    I loved Foxpro. First SQL App I wrote was an upgrade from Fox/DOS to VFP/SQL Server. Worked great!

    Good, then I'm glad I don't have...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: WHILE loop and inserting records

    Or even this...

    DECLARE @XML XML;

    SET @XML ='

    <NewsDTO>

    <NewsList>

    <NewsID>A4C13A4A-2350-4D21-AB06-9E2946182D39</NewsID>

    </NewsList>

    <NewsList>

    <NewsID>A3613580-99C3-489D-9988-92E5F24BC8F7</NewsID>

    </NewsList>

    <NewsList>

    <NewsID>F934D9F9-A73F-4ACF-B225-8A0ED7BAF8C4</NewsID>

    </NewsList>

    </NewsDTO>';

    WITH...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: WHILE loop and inserting records

    There's no need for the funky looping stuff for the update.

    DECLARE @doc NVARCHAR(MAX)

    SET @doc ='

    <NewsDTO>

    <NewsList>

    <NewsID>A4C13A4A-2350-4D21-AB06-9E2946182D39</NewsID>

    </NewsList>

    <NewsList>

    <NewsID>A3613580-99C3-489D-9988-92E5F24BC8F7</NewsID>

    </NewsList>

    ...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: would like to create a nested query on the stored procedure

    sharonmtowler (10/26/2010)


    the queries took to long and were timing out the reports. the union or union all query returns to rows of data for one style

    If the whole query returns...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Querying Question

    mikes84 (10/26/2010)


    ...

    Now, If John and Jim are both DBAs in the IT department, their records in the Positions table could look like this:

    ID, Position, Department

    66, DBA, IT

    67, DBA, IT

    I need...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: would like to create a nested query on the stored procedure

    Hi Sharon

    Try to get into the habit of using table aliases, they make code like this very much more readable:

    SELECT DISTINCT

    b.DIVISION as COMPANY,

    b.SEASON AS SEASON,

    b.STYLE as STYLE,...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: need to change where claus

    harita (10/26/2010)


    Hi, all

    the code i have now selects only selected itemname but i want to select all he items can some change the code- thanks

    WHERE IT.ITEMNAME IN ('xxx','xxx','xxx','xxx','xxx','xxx') AND

    If you...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: updating columns across table

    wardy (10/22/2010)


    Hi, I am sure this is easy but being a newb this is confusing me. I have x2 tables that are joined by a primary key. I...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: WHILE loop and inserting records

    UPDATE t SET (column in t) = somevalue

    FROM #temp t

    INNER JOIN News n ON n.news_id = t.news_id


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Table Variable as output parameter in SP

    Prassad Dabbada V R (10/26/2010)


    Where is the question? or the topic itself is question?

    It's the invisible man skiing.


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Huge Records...

    hosseini.mehran (10/26/2010)


    So what is your suggestion?

    Post the whole query. Could a doctor diagnose a sore throat from looking at a single toe?


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: How to find the user map to different tables

    Senthil Varadharajan (10/26/2010)


    Hi,

    Is it possible to find the single user map to different table using SQL Query.

    Thanks,

    Senthil Varadharajan.

    This isn't a properly formed question, it makes no sense as it stands....


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: How to query this ?

    sanujss (10/26/2010)


    I have tables like TAB_Mobiles, TAB_Laptops. Both the table is of same structure. The fields are ID, Selling_Date,

    Total_No_Of_Items_Sold

    I need to create a report summary. We pass a selling...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Sequence-numbering groups

    Paul White NZ (10/24/2010)


    For those edge cases where absolute performance is critical (perhaps you have a few billion rows to process) the SQLCLR solution really shines. As far as...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Sequence-numbering groups

    Jeff Moden (10/24/2010)


    Heh... it's actually a darned clever method that you've come up with. And, it has the advantage of being documented! 😛

    Sorry it's taken so long to...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

Viewing 15 posts - 1,066 through 1,080 (of 1,228 total)