Forum Replies Created

Viewing 15 posts - 391 through 405 (of 533 total)

  • RE: What is your opinion on Outsourcing?

    Steve Jones - Editor (6/1/2010)


    I'll only disagree on one part. I think that government can create jobs. Not by spending our tax dollars, but with tax incentives, especially a reduction...

    └> bt



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

  • RE: What is your opinion on Outsourcing?

    All peripheral and patronizing arguments aside, American jobs should go to our citizens first, not ship them overseas. It's just as simple as that.

    Actually, it's better for everyone in...

    └> bt



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

  • RE: What is your opinion on Outsourcing?

    I believe in free markets. I believe we'll all be better off the less government is involved in our lives with very specific exceptions where government oversight or control...

    └> bt



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

  • RE: Help - Query for Max concurrent users from a login and logout table

    Please don't re-post the same question in different places.

    Original post here.

    └> bt



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

  • RE: Help - Query for Max concurrent users from a login and logout table

    Please don't re-post the same question in different places.

    Original post here.

    └> bt



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

  • RE: Selecting different rows different criteria same table

    This is one way you can run it without using as much overhead. I'm sure there are ways to do it better but at least you'll avoid cursors and...

    └> bt



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

  • RE: How to default Zero-length string to NULL ?

    From a T-SQL standpoint you can do something like this:

    update myTable

    set Column1 = case Column1 when '' then null end,

    Column2 = case Column2 when '' then null end,

    Column3 = case...

    └> bt



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

  • RE: Crosstab Query

    Take a look at PIVOT in Books Online.

    └> bt



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

  • RE: Concatenate fields in Dynamic sql

    You didn't really provide much helpful information about what exactly you're trying to do, but if it's a simple string concatenation with a space between each field then it would...

    └> bt



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

  • RE: Getting most common value from several fields into one record

    kramaswamy (5/20/2010)


    Both our solutions are doing N number of queries against the same table, in order to get the most common occurring value for each column.

    Maybe I'm not understanding what...

    └> bt



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

  • RE: Getting most common value from several fields into one record

    Not sure what you mean by repeated queries.

    └> bt



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

  • RE: max date in a subset

    If you need something more inline you can also just do something like this:

    select rxno,

    patient,

    location,

    filldate

    from loadit l

    where l.filldate =

    (

    select max(sq.filldate)

    from loadit sq

    where sq.rxno = l.rxno

    )

    └> bt



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

  • RE: Getting most common value from several fields into one record

    A CLR would definitely work, but I don't think it's necessary here.

    I used a table variable instead of temp table for my own reasons but you can do whatever on...

    └> bt



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

  • RE: Only pull certain characters

    select LEFT(Name1, CHARINDEX(',', Name1) - 1) as NameLast,

    STUFF(Name1, 1, CHARINDEX(',', Name1), '') as NameFirst

    from UBMAST

    └> bt



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

  • RE: SQLCMD Gives Error Must declare the scalar variable

    Couple of things:

    SET NOCOUNT ON;

    BEGIN

    This needs to be at the beginning before you declare your variables.

    Also, you're passing a string into xp_cmdshell that has "@PriorMonthStart" and "@PriorMonthEnd". You need...

    └> bt



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

Viewing 15 posts - 391 through 405 (of 533 total)