Forum Replies Created

Viewing 15 posts - 13,201 through 13,215 (of 15,381 total)

  • RE: Need some help with query WHERE clause....

    TimeToShine (1/19/2012)


    I am thinking of doing the items in a delimited value. So each product that has an attribute (not all do) will have an entry in the Attributes...

  • RE: Count occurances across several fields?

    Well if you can't change the structure then you will have to use one of the ways presented. They are both management sinkholes. You are going to constantly be fighting...

  • RE: Count occurances across several fields?

    mick burden (1/20/2012)


    both examples look good to me, is there a way of making that dynamic? the amount of names are 10 in number at present and although that could...

  • RE: Count occurances across several fields?

    If at all possible you should normalize that table. You don't want to have columns for each person. You should probably have two tables for this. One table is your...

  • RE: Updating Table Approach

    Sounds like you need to investigate triggers. It is very hard to understand exactly what you are trying to accomplish but it sounds like an update trigger on your validation...

  • RE: billy-yons and billy-yons of rows

    Nice straight forward question with a nod to Carl Sagan. Great ending to the week and "keep looking up". 😀

  • RE: Need some help with query WHERE clause....

    This is one of the challenges of the way your tables are designed. You are using a table as a catch all. In other words the table holds multiple types...

  • RE: Daylight savings is for the birds!

    GSquared (1/19/2012)


    Daylight Savings Time was originally proposed as a joke.

    And, yes, it should be cancelled. Should never have been enacted.

    I agree with one small caveat. If we got rid...

  • RE: t-sql ,sql server 2000

    It is very unclear what you are trying to do here. Perhaps if you posted some ddl (create table statements), sample data (insert statements) and a clear explanation of what...

  • RE: string to table

    roryp 96873 (1/19/2012)


    I guess my only complaint is that you would have a problem if the text string was longer than 2048 characters. I suppose that could be fixed...

  • RE: string to table

    Agreed. That is pretty slick Mark. I was going to use Moden's splitter...

    select * from

    dbo.DelimitedSplit8K('2:42 1/29 On R.P.C resolved vendor was instructed on Friday failed to send 2020817 813 811...

  • RE: Help with Datetime datatype

    It is most likely due to differences in dateformat. run DBCC USEROPTIONS on both servers and the dateformat is likely different.

  • RE: Howdo I format the money field from 206960.8333 to 206,961 in sql.

    declare @MyMoney money = 206960.8333

    select CEILING(@MyMoney) --Always round up to next dollar

    , FLOOR(@MyMoney) --Rounds down to next dollar

    , ROUND(@MyMoney, 0) --Round but keep as money type with decimals

    , CONVERT(int, @MyMoney)...

  • RE: Joining 2 tables, with all values from first

    That is where the "Top 1" will come in handy.

    cross apply (select top 1 date from table order by DateCol desc)

  • RE: Unique key

    drew.allen (1/18/2012)


    Sean Lange (1/18/2012)


    I would ask though why do you need more than 1 column that is unique? The point of a unique index is to allow you to identify...

Viewing 15 posts - 13,201 through 13,215 (of 15,381 total)