ãµãã¯ã¨ãªã®ãã¾ãã¾ãªå ´æã§ã®å©ç¨ ããã¾ã§åãä¸ãããµãã¯ã¨ãªã¯WHEREå¥ã§å©ç¨ãã¦ãã¾ãããããµãã¯ã¨ãªã¯WHEREå¥ã ãã§ãªããã¾ãã¾ãªå ´æã§ãå©ç¨å¯è½ã§ããããã§ã¯ã代表çãªå©ç¨æ¹æ³ã§ããSELECTå¥ã¨FROMå¥ã§ã®å©ç¨ãåãä¸ãã¾ãã SELECTå¥ã§ã®ãµãã¯ã¨ãªã®å©ç¨ WHEREå¥ã§ãµãã¯ã¨ãªãå©ç¨ããå ´åããµãã¯ã¨ãªã®çµæãåå¾ãããã¨ã¯ã§ãããWHEREå¥ã«ã¦æ¡ä»¶å¼ã¨ãã¦å©ç¨ããã ãã§ãããä¸æ¹ãSELECTå¥ã§ãµãã¯ã¨ãªãå©ç¨ããå ´åãã¡ã¤ã³ã¯ã¨ãªã®çµæã¨ãã¦ãµãã¯ã¨ãªã®çµæãåå¾ã§ãã¾ããå ·ä½çãªä¾ãè¦ã¦ã¿ã¾ãããã SELECT CustomerID,COUNT(*) AS Cnt_Cust, (SELECT COUNT(*) FROM Sales.SalesOrderHeader) AS Cnt_All FROM Sales.SalesOrderHeader G
{{#tags}}- {{label}}
{{/tags}}