fix: converted single to triple backticks14 (#36241)
This commit is contained in:
@@ -15,15 +15,17 @@ localeTitle: COUNT COUNT Aggregate Function
|
||||
|
||||
كمرجع ، إليك البيانات الحالية لجميع الصفوف في قاعدة بيانات الطلاب الخاصة بنا.
|
||||
|
||||
`select studentID, FullName, programOfStudy, sat_score from student; -- all records with fields of interest
|
||||
`
|
||||
```sql
|
||||
select studentID, FullName, programOfStudy, sat_score from student; -- all records with fields of interest
|
||||
```
|
||||
|
||||

|
||||
|
||||
توفر عبارة SQL هذه حسابًا لكل الصفوف. لاحظ أنه يمكنك منح عمود COUNT الناتج اسمًا باستخدام "AS".
|
||||
|
||||
`select count(*) AS studentCount from student; -- count of all records
|
||||
`
|
||||
```sql
|
||||
select count(*) AS studentCount from student; -- count of all records
|
||||
```
|
||||
|
||||

|
||||
|
||||
@@ -43,11 +45,12 @@ localeTitle: COUNT COUNT Aggregate Function
|
||||
|
||||
في ما يلي مثال على ذلك باستخدام جدول أموال الحملة. هذا هو مجموع الدولارات في كل معاملة وعدد المساهمات لكل حزب سياسي خلال الحملة الرئاسية الأمريكية لعام 2016.
|
||||
|
||||
`select Specific_Party, Election_Year, format(sum(Total_$),2) AS contribution$Total, count(*) AS numberOfContributions
|
||||
from combined_party_data
|
||||
group by Specific_Party,Election_Year
|
||||
having Election_Year = 2016;
|
||||
`
|
||||
```sql
|
||||
select Specific_Party, Election_Year, format(sum(Total_$),2) AS contribution$Total, count(*) AS numberOfContributions
|
||||
from combined_party_data
|
||||
group by Specific_Party,Election_Year
|
||||
having Election_Year = 2016;
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user