Skip to content

Tag: sql-server

SQL Group with time

Sample table id dept ctime 100 A 09:15:12.0000000 200 B 08:00:00.0000000 300 A 09:00:00.0000000 400 B 08:50:00.0000000 expect to see countid dept xtime 2 A …

SQL Syntax – Section in MERGE Statement

It’s been a while since I’ve worked in a T-SQL environment. I previously worked for Google, and, of course, they had their own special flavor of SQL. Now that I’m back, I’m reading back up on my T-SQL features. I understand the MERGE statement (at least, I think I do!), but I was looki…