查询
来源:互联网 发布:淘宝根据什么排名 编辑:程序博客网 时间:2024/06/11 22:03
select top 1000 * from
(select ROW_Number() over (order by vQuestionCode) as RowNumber,* from
(select * from
(
SELECT p.QuestionCode vQuestionCode,p.KdName,p.CreateDate,p.CreatorCode,p.CreatorName,CASE WHEN p.Fettle=1 then '启用' WHEN p.Fettle=2 then '禁用' END as vFettle FROM
(
SELECT y.ProjectCode,y.TkCode,y.KmCode,y.Qtcode,y.KdCode,y.TaskCode,y.QuestionCode QuestionCode,y.QuestionType,k.KdName,y.CreateDate,y.CreatorCode,y.CreatorName,y.Fettle FROM Sys_PublicProperty as y inner join TQ_Questions.dbo.Qs_KnowledgePoint as k on y.KdCode=k.KdCode
) p inner join Qs_QuestionBase as q on p.QuestionCode=q.QuestionCode where p.Fettle<>0 and q.MaxQuestionCode is null and p.KmCode='0001000100000001' and p.Qtcode='000000053'
) f
) vResult
) v
where v.RowNumber>0
Qs_KnowledgePoint KdCode
Sys_PublicProperty KdCode QuestionCode Fettle KmCode Qtcode
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- 查询
- JavaScript KeyCode数字键盘对应
- 【转】STL里的multimap使用简介
- SQL Server 年月日计算
- 段错误
- ajax 操作dataset 全国省/市/县3级联动
- 查询
- 比 Windows 更好用的 Linux
- Wingdings 符号编码对照表
- 亲爱的朋友们,大家好,我的博客开张了,欢迎您的到来
- String l数据对象的Hash Code值的理解
- java对mysql数据库的导入导出
- NOR flash和NAND flash的区别
- android1.5所有ContentProvider
- 消除运行MATLAB生成的exe程序的dos黑屏的三种办法