• mcfarlandparkway (12/18/2013)


    Using these two querys

    Select * from SNLunchSevereNeeds Where SystemCertificationID in(

    Select SystemCertificationID from SNSystemCertification where FiscalYear=2014 and

    SystemID=749 And IsActive=1 )

    Select * from SNLunchSevereNeeds Where SystemCertificationID in(

    Select SystemCertificationID from SNSystemCertification where FiscalYear=2013

    And IsActive=1)

    How can I update data from last year to current year (need to check system certification id from both the tables)

    see the current fiscal year for all the systems who are eligible.(updating from last year to current year)

    You have me at an extreme disadvantage here. I have no idea what your tables and data are like. Take a look at the first link in my signature about best practices when posting questions. With some details about your data and what you want to do it we can help you figure out how to do it.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/