Home Forums SQL Server 2008 T-SQL (SS2K8) Sql Query - get most recent data and put record numbers into columns RE: Sql Query - get most recent data and put record numbers into columns

  • CELKO (11/27/2012)


    Or not. It's not portable to versions/engines that don't follow that particular ANSI standard which would also discourage people using an older version of SQL Server from helping. 😉

    Or is might encourage them to upgrade to a version of SQL Server 2005 or later. Do you want to keep using *= and a compatibility setting for that same reason? :crazy:

    One problem. this:

    INSERT INTO Readmits

    (mr_nbr, birth_date, first_name, last_name, discharge_timestamp)

    VALUES

    ('SHL295834', '1955-09-12', 'JK', 'Aaron', '2011-05-03 20:56:00'),

    ('SMC101149', '1955-09-12', 'JK', 'Aaron', '2011-11-07 20:50:00'),

    ('SSC101149', '1955-09-12', 'JK', 'Aaron', '2011-12-22 18:00:00');

    Doesn't work in SQL Server 2005. Also, upgrading for some may not be an option. Sometimes you are held hostage to what vendors support.