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

SQL Server ¸ÄΪORACLEµÄÓï·¨ - Oracle / ¿ª·¢

select ID as '²¿ÃűàºÅ', Department as '²¿ÃÅÃû³Æ', 
  [Õýʽ] = Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ),
  [ÁÙʱ] = Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ), 
  [´ÇÍË] = Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ),
  [ºÏ¼Æ] = Sum ( case when EmployeeType <> '' then Cnt else 0 end ) 
from VDepartmentEmployeeType group by ID, Department

ÉÏÃæµÄsqlÊÇsqlserverµÄ£¬ÊǸö±íµÄÐÐÁÐת»»
[Õýʽ] = Sum (...)£¬¸Ä³ÉoracleÓ¦¸ÃÔõôдÄØ£¿
select ID as '²¿ÃűàºÅ', Department as '²¿ÃÅÃû³Æ', 
  Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ) Õýʽ,
  Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ) ÁÙʱ , 
  Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ) ´ÇÍË,
  Sum ( case when EmployeeType <> '' then Cnt else 0 end ) ºÏ¼Æ 
from VDepartmentEmployeeType group by ID, Department

Õâ¸ö
SQL code:
select ID ²¿ÃűàºÅ, Department ²¿ÃÅÃû³Æ,
Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ) Õýʽ,
Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ) ÁÙʱ ,
Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ) ´ÇÍË,
Sum ( case when EmployeeType <> '' then Cnt else 0 end


Ïà¹ØÎÊ´ð£º

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



type Exception report


message

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

exception

org.apache.jas ......

Windows 7 ÔõÑù°²×°Oracle - Oracle / »ù´¡ºÍ¹ÜÀí

¸÷λ´ó¸ç£¬°ï¸öæ¡£

ϸöOracle for vista °æ±¾µÄ°²×°ÊÔÊÔ
10GºÍ11GµÄ 
http://www.oracle.com/technology/software/products/database/index.html 
------------------------------------------- ......

oracle 9i ×î½ü·¢Ïֵǽ±¨´í - Oracle / »ù´¡ºÍ¹ÜÀí

ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
  ORA-01034:ORACLE not available
  ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡

1. Oracle sid ÕýÈ ......

ÇóÒ»SQL - MS-SQL Server / »ù´¡Àà

tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......

JavaÖ®¸¸À뿪Oracle£¬±¯Í´°¡£¡£¡ - Java / ·Ç¼¼ÊõÇø

¿´µ½ÓÐÒ»¸öSUNµÄÔªÀÏ´ÓOracle¹«Ë¾´ÇÖ°£¬¶øÇÒÊÇJava´´Ê¼ÈË——´óÃû¶¦¶¦µÄJames Gosling£¬
ÐÄÖÐÏ൱ÊÜ´ò»÷£¡ºÜ±¯Í´£¡
OrableÕâÊÇÔõôÁË£¬ÄѵÀÕâ¾ÍÊÇËùνµÄÈںϣ¨Ö«½â£¬·Ö»¯£¬Ïûʧ£©Âð£¿
SUNµÄÒ»°ïÀÏÔ±¹¤¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ