sql server - SQL Updated since last visit column -


I am working with SQL Server and I am normally new to SQL, so if this is a very trivial question Please stand with me.

I have a database in which there is a datetime field representing some timestamps. When removing the table through a selection statement, I have a column of right / wrong whether or not the row has been updated after some time.

I have tried to do something like this:

I have earned something similar to working on the w3 online query tester. , But I think it could be in MySQL and I was unable to test the datasets. Now the database is complaining about the symbol.

Any valid query knows the string?

like something:

  select val1, val2, case when last stampstamp & Gt; '20 In the form of 'true' and 'false' end in the [true / wrong] table, then note that in the above, I have used a word literally 'yyyymmdd'  / P> 

Comments