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

Basic Flask web app

 from flask import Flask app = Flask(__name__) #In Flask, URL rules can be added using either the @app.route() decorator or the app.add_url_...