SELECT min_cons_amount
from min_cons_history
WHERE min_cons_acct = 225280001
AND min_cons_effective_date <= to_date( ......
select TOP (100) PERCENT dbo.vitem.Iid, COUNT(dbo.vote_c.Iid) AS num
cast(100*(case COUNT(dbo.vote_c.Iid) when 'a' then 1 else 0 end)/COUNT(dbo.vitem.Vid) as p)+'%' as percentage
from dbo.vitem INNER JOIN
&nb ......
±í TÈçÏÂ
ÏîÄ¿ ½ð¶î
A01 100
A02 6
A03 10
A04 52
A05 91
A55 23
A78 32
A45 1
A88 2
Ëæ»úÈ¡³ö µã ×ܽð¶î20%µÄ¼Ç¼ ³ýÁËÑ»· ......
ÈçÌâ¡£ÊäÈëÒ»¸ö·¶Î§£¬Éú³ÉÕâ¸ö·¶Î§ÄÚÁ¬ÐøµÄÊý×Ö¡£
ÀýÈçÊäÈë 100 123
Éú³É
100
101
102
...
...
123¡£
°ï¶¥£¡£¡£¡
Òª½èÖú¸¨Öú±í
ÒýÓÃ
SQL codeºÇºÇselect (100+number )AS Nfrom master..spt_valueswhere type='p'and (100+number)between100and123/*N
-----------
100
10 ......
SPEC NO.:123456
SPEC NO.:789012
SPEC NO.:33668535
SPEC NO.:2587981
ÔÚÊý¾Ý¿âÀïµÄÒ»¸ö×Ö¶ÎÈçÉÏ¡£¡£¡£¡£
ÎÒÏë½ØÈ¡
SPEC NO.:ºóÃæµÄ×Ö·û£¬Ö»½ØÎå룬ÇëÎÊsqlÔõôд£¿×¢ÒâSPECºóÃæÓÐÒ»¸ö¿Õ¸ñ¡£
½ØÇ°Îåλ£¿
SQL code:
substring
SPEC NO.:ºóÃæµÄÎåλ¡£¡£
SQL code:
select left(col ......
declare @mintime datetime;
select @mintime= min([¿ªÊ¼Ê±¼ä])from [ProjectManageDB].[dbo].[¹¤×÷¼Ç¼]
where convert(varchar(21),¿ªÊ¼Ê±¼ä,120) like '2010-02-02%'
and [Óû§±êʶ]='A2DA3D4F-9D63-4906-9964-CFBE81E2811B'
ÎÒÏë°Ñ @mintimeµÄÈÕÆÚÖеÄСʱºÍ·ÖÖÓ¸ÄÎ ......