Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔõôдÕâ¸öSQLµÄÇóºÍÓï¾ä

select a.strno,a.strnam,b.sum(score) from
(select strno,strnam from name where strnam >2) a,
(select strno,sum(score) from score where strdate>'1-1ÔÂ-2009' group by strno having sum(score)>300) b
where a.strno=b.strno group by a.strno,a.strnam

±íAÖÐÊÇѧºÅºÍѧÃû£¬±íBÖÐÊÇѧºÅºÍ³É¼¨£¬ÎÒÏëÊä³öÒ»ÕŽñÄêѧÃû´óÓÚ2¸ö×ֵ쬳ɼ¨´óÓÚ300·ÖµÄ±í¸ñ¡£
µ«ÊÇÖ´Ðкó×ÜÊDZ¨´í£¬b.sum(score) ÊÇÎÞЧ±êʶ·û£¬Çë¸÷λָµãһϰÉ
sum([b].[score])

SQL code:
select a.strno,a.strnam,sum(b.score) from
(select strno,strnam from name where strnam >2) a,
(select strno,sum(score) from score where strdate>'1-1ÔÂ-2009' group by strno having sum(score)>300) b
where a.strno=b.strno group by a.strno,a.strnam


sum(b.score)Ó¦¸ÃÒ²¿ÉÒÔ,×ÜÖ®sumÊǺ¯Êý,Ó¦¸Ã·ÅÔÚÍâÃæ,Ò²¿ÉÒÔ¼ÓasÆð¸ö±ðÃû,±ÈÈç:sum(b.score) as bscore
ÒýÓÃ
SQL codeselect a.strno,a.strnam,sum(b.score)from
(select strno,strnamfrom namewhere strnam>2) a,
(select strno,sum(score)from scorewhere strdate>'1-1ÔÂ-2009'groupby strnohavingsum(score)>300) bwhere ¡­


SQL code:
select a.strno
, a.strnam
, sum(b.score)
from (sel


Ïà¹ØÎÊ´ð£º

SQLÓï¾äЧÂÊÎÊÌâ - ÆäËûÊý¾Ý¿â¿ª·¢ / ÆäËûÊý¾Ý¿â

´ó¼Ò°ïæ¿´¿´Õâ2¸ösqlÓï¾äÄĸö²éѯµÄËٶȸü¿ìµã¡£Ð»Ð»°ïæ¡£±È½Ï׿±¡£ÔÚ×öÐÔÄܲâÊÔ¡£
select * from
  ±íA LEFT OUTER JOIN ±íB ON (±íA.id || ' ' =±íB.id) ,±íC , ±íD, ±íE
WhereÆäËûÌõ¼þ
select * ......

ÐÂÉú£¬Win7£¬¸ÃÑ¡Ôñʲô°æ±¾SQL£¿

СµÜÕý×¼±¸×Ô¼ºÌáǰѧϰÊý¾Ý¿â£¬µ«ÊÇÏÖÔÚÓиöÎÊÌ⣬²»ÖªµÀ¸ÃÑ¡Ôñʲô°æ±¾µÄSQL

ѧУÒÔºóµÄÊéºÃÏñ½²SQLÓõÄÊÇSQL 2000£¬µ«ÊÇÎÒµÄϵͳÊÇWindows 7£¬Ã²ËƲ»ÄÜ×°£¬Ò²²»Ïë»»»ØXP£¨07Äê¾Í²»ÓÃXPÀ²£©£¬ËùÒÔÔÚÏ룬ÄÜ· ......

SQLÃÔ»ó

CREATE TABLE [Test_xcmtmp] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[subject] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[Sourc ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ