You are here: about Efficiency « MsSQL Server « IT news, forums, messages
about Efficiency

Posted by yicong on 09/20/06 08:51

I want to select one field from a table,but it should on some conditions
which refer to 5 table ,such as A.FILED1=B.FIELD1 AND B.FIELD2=C.FIELD3 AND
....
Should I use case "select sum(a.amount) from a,b,c,... where
a.field1=b.field1 and b.field2=c.field2 and ..." or "select sum(a.amount)
from select b.field1 from select c.field2 from...."?And which case is more
efficiency?
thanks!

�������һ�����е�ij���ֶεĺͣ����˼�¼���ڴӶ�����в�ѯ�˼�¼�Ƿ������ض�����������ô������select ..from ...where ..and ..and..and ..and ..������select ..from
select ..from select ..from ......����������һ��Ч�ʸߣ�
лл��

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация