Sunday, February 23, 2020

GROUPING and SORTING the same column of a table by SQL


How to group and sort the same column in a table https://www.w3resource.com/sql/aggregate-functions/count-with-group-by.php

Counting the number of times a particular value appears in a column

select studentID, 15*count(*) as Fees FROM orders GROUP BY studentID;

No comments:

Post a Comment

Sample informal letters in Hindi

सैंपल 1: अपने छोटे भाई को पैसे बचाने और वित्तीय रूप से जागरूक होने की सलाह देते हुए एक पत्र लिखना। बी, 38 रेनबो अपार्टमेंट्स, 211001, लखनऊ, ...