Forum Replies Created

Viewing 15 posts - 466 through 480 (of 533 total)

  • RE: Talking baseball

    Michael Valentine Jones (4/7/2010)


    Baseball would be better with a true open market: uncapped salaries, no draft, and uncapped ownership.

    Salaries are already uncapped.

    Getting rid of the draft would be the...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: how to get only latest date and other columns from table

    By the way, you would really only use the above example with the subquery if there were additional fields that you want to include that are associated with that max...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: how to get only latest date and other columns from table

    A simple subquery also works:

    SELECT t.id,

    t.name,

    t.[date]

    FROM @Test t

    WHERE t.[date] = (SELECT MAX(sq.[date]) FROM @Test sq WHERE sq.id = t.id and sq.name = t.name)

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Can we have both SQL 2005 and 2008 client tools on the same PC?

    Yes we can!

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Finding Multiple ProductCodes

    Lynn Pettis (4/15/2010)


    My concern with the intermediate table, what happens the first time a customer orders more than 8 products? If you only have 8 products, what happens when...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Finding Multiple ProductCodes

    Is there any purpose for this process other than building a comma delimited flat file for another system?

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Doing a FTP Pull into Sql Server 2008

    I would suggest SSIS.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: define composite primary key with more than 900 bytes

    WayneS (4/15/2010)


    bteraberry (4/15/2010)


    Manual entry is always a problem, but by extending your constraint over such a large number of fields, the chances of entry errors invalidating the constraint are greatly...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: define composite primary key with more than 900 bytes

    IMO opinion then your primary key should be a composite of:

    ID of person entering +

    patientID +

    visitID

    You can just run SQL queries to generate reports on where the same patient/visit had...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: define composite primary key with more than 900 bytes

    So there could be a situation where the same person answers the same questions for the same visit in two different ways and you want to enter both sets of...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: define composite primary key with more than 900 bytes

    So you want the same patient to be able to take the same test on the same visit multiple times so long as they provide different answers? That doesn't...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Time unit used to measure CPU usage

    SQL Server Books Online is your friend.

    sys.dm_exec_query_stats:

    total_worker_time

    bigint

    Total amount of CPU time, in microseconds, that was consumed by executions of this plan since it was compiled.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: File Watcher Task - Trigger SQL

    I've done that before with just a very simple vb.net windows service. All it does is watch a folder and then fire a specific package based on the filename....

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: CROSS Apply or Outer Apply? DDL attached

    Not sure if I understand, but if you want to get values in separate columns rather than delimited in one column, why are you using XML PATH?

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: PATINDEX one set against another?

    That's progress, but I'm still not quite sure what you're looking for. So you only want to do an update if exactly one of the names is found within...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 466 through 480 (of 533 total)