Questions tagged «derived-table»


5
创建一个SQL查询以检索最新记录
我正在为我的项目团队创建状态板模块。状态板允许用户将其状态设置为进出,也可以提供注释。我打算将所有信息存储在一个表中...数据示例如下: Date User Status Notes ------------------------------------------------------- 1/8/2009 12:00pm B.Sisko In Out to lunch 1/8/2009 8:00am B.Sisko In 1/7/2009 5:00pm B.Sisko In 1/7/2009 8:00am B.Sisko In 1/7/2009 8:00am K.Janeway In 1/5/2009 8:00am K.Janeway In 1/1/2009 8:00am J.Picard Out Vacation 我想查询数据并返回每个用户的最新状态,在这种情况下,我的查询将返回以下结果: Date User Status Notes ------------------------------------------------------- 1/8/2009 12:00pm B.Sisko In Out to …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.