Forum Replies Created

Viewing 15 posts - 136 through 150 (of 434 total)

  • RE: overwrite the table with the new values only

    Not too clear. Do you want to delete the records in Table1 or just set the EID to null. Either way to get the opposite result of your...

  • RE: Sequential Update

    have to wait until Monday.

  • RE: Update from Max value

    works for me.

    what does this bring back for you?

    select a.code,a.price, b.code,b.price from table_b b join

    (select code,max(eff_date) eff_date from table_b group by code) tbmd

    on tbmd.code = b.code and b.eff_date = tbmd.eff_date

    join...

  • RE: Update from Max value

    use a derived table

    select code,price from tableb join

    (select code,max(date) from tableb group by code) tbmd

    on tbmd.code = tableb.code and tableb.eff_date = tbmd.date

    and join it to tablea

  • RE: Varchar

    You seem to be running a few threads all on this same topic. I would suggest that you post a sample (10 or 20 rows) of the data in your...

  • RE: Date

    isdate('13/34/2007') will return false

  • RE: Dynamic "TOP" values in select statements

    You should review BOL for SET ROWCOUNT as there are warnings about using this in updates,deletes, and inserts.

    If you are just doing selects then you should be ok.

  • RE: INSERT

    select * into #temp from mytable where

    (postion not in (4,6,7))

    or

    (datefield not between mindate and maxdate)

    or

    somefield <> [what it should equal]

    and you could do the same for table2

    You would need...

  • RE: Dynamic "TOP" values in select statements

    Only way I have ever heard of is with dynamic sql.

  • RE: Adding ID column to existing table

    Why do you care where it is? Data is displayed in the order you select it. I think when you do that through EM it causes the table...

  • RE: INSERT

    Why not

    select * into #temp from mytable where postion not in (4,6,7)

  • RE: Sequential Update

    I was working on a simialr solution but when I tried your index trick to get the update in the right order it still goes asc. Might be because...

  • RE: Adding ID column to existing table

    alter table mytable

    add id int IDENTITY(1,1) not null

  • RE: Need some decimal help

    to limit the display you want to cast or convert it after the math. Or you round it.

    SELECT CONVERT(DECIMAL(2,0),83)/CONVERT(DECIMAL(2,0),97)

    SELECT cast(CONVERT(DECIMAL(2,0),83)/CONVERT(DECIMAL(2,0),97) as decimal(9,2))

    SELECT round(CONVERT(DECIMAL(2,0),83)/CONVERT(DECIMAL(2,0),97),2)

  • RE: A puzzled entry exit problem

    The way ours works is if you don't scan in you cannot scan out and vice versa.All cards scanned in but not out are reset at the end of the...

Viewing 15 posts - 136 through 150 (of 434 total)