2009年9月13日
摘要: SQL - SELECT TOP n or SELECT TOP Random n Rows From a Table For Each Category or GroupYou may need asql querythat willselect top n recordsorrandom n recordsfor each categoryin a table. Thet-sql queryt... 阅读全文
posted @ 2009-09-13 22:33 shawnliu 阅读(605) 评论(0) 推荐(0) 编辑
摘要: INSERT INTO dbo.T1(keycol, datacol) VALUES(4, 'b');INSERT INTO dbo.T1(keycol, datacol) VALUES(6, 'c');INSERT INTO dbo.T1(keycol, datacol) VALUES(7, 'd');--looking for the minimum missing integer for d... 阅读全文
posted @ 2009-09-13 14:39 shawnliu 阅读(248) 评论(0) 推荐(1) 编辑