ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¥ÎVBA¦Û¤v¿z¿ï ÁÙ¬O¥Î¤@¯ë¤è¦¡³B²z?

¦^´_ 10# joey0415

¯uªº«ÜÁÂÁ§A³o»ò¦³­@¤ßÀ°§Ú!!!

«á¨Ó§Ú¦³°Ñ¦Òºô¯¸¥Îgroup by
SELECT ¾Þ§@­û, sum(²£­È) FROM [¨RÀ£¤é³øªí$] GROUP BY ¾Þ§@­û  ³o­Ó¨S¦³°ÝÃD

¦ý¬O­n¼W¥[¤é´Á¤U¥h ­È´N¶]±¼¤F
SELECT ¾Þ§@­û, sum(²£­È),sum(¤é´Á) FROM [¨RÀ£¤é³øªí$] GROUP BY ¾Þ§@­û

ÁÙ¦³ Äæ¦ìªº¹w³]­È³£¬O³o¼Ë(¦p¹Ï)

TOP

¦^´_ 11# guaga


    SELECT ¾Þ§@­û, sum(²£­È) as Á`²£­È,sum(¤é´Á) as Á`®É¼Æ FROM [¨RÀ£¤é³øªí$] GROUP BY ¾Þ§@­û

as §â´N§â«e­±ªºªF¦è­«·s©R¦W

TOP

¦^´_ 11# guaga


±N§Aªº¸ê®Æ²¤Æ¤@¤U¡A¦p¤U

³]©w¤@¤U§Aªº¤é´Á®æ¦¡§Y¥i

select sum([Á`¤u®É(¤À)]) as ®É¼Æ  , ¤é´Á,¾Þ§@­û  from [¤u§@ªí1$] group by ¤é´Á,¾Þ§@­û
   

TOP

¦^´_ 13# joey0415

§A¦n §Ú«á¨Ó¥Î§A»¡ªº¤è¦¡§ï¼g
select
sum([¶}©l®É¶¡]) as ¶}©l®É¶¡  ,
sum([µ²§ô®É¶¡]) as µ²§ô®É¶¡ ,
sum([Á`¤u®É(¤À)]) as Á`¤u®É,
sum([¥ð®§®É¶¡])  as ¥ð®§®É¶¡
sum([À³§¹¦¨®É¶¡(¤À)]) as À³§¹¦¨®É¶¡,
sum([¤u®É®t]) as ¤u®É®t,
sum([²£­È]) as ²£­È ,
¤é´Á,¾Þ§@­û from [¨RÀ£¤é³øªí$]
group by ¤é´Á,¾Þ§@­û

¥i¬O¥ð®§®É¶¡·|¥X¿ù  «á¨Ó§Ú¥ý§â¥ð®§®É¶¡§R±¼


«á¨ÓÅܦ¨¶}©l»Pµ²§ô®É¶¡ ³£¸ò­ì¥»ªº¤£¦P  ¨ì¬O¨ä¥L­È³£¹ï?

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD