How to check date of last change in stored procedure or function in SQL server

I need to check when function was changed last time. I know how to check creation date (it is in function properties window in SQL Server Management Studio). I found that in SQL Server 2000 it wasn’t possible to check modify date ( look at this post: Is it possible to determine when a stored … Read more

How to filter Pandas dataframe using ‘in’ and ‘not in’ like in SQL

How can I achieve the equivalents of SQL’s IN and NOT IN? I have a list with the required values. Here’s the scenario: df = pd.DataFrame({‘country’: [‘US’, ‘UK’, ‘Germany’, ‘China’]}) countries_to_keep = [‘UK’, ‘China’] # pseudo-code: df[df[‘country’] not in countries_to_keep] My current way of doing this is as follows: df = pd.DataFrame({‘country’: [‘US’, ‘UK’, ‘Germany’, … Read more