Answer:
SELECT
COUNT(SN), SUM(TaxAmount)
FROM ORDERS
or
SELECT
COUNT(SN) AS NumOrder, SUM(TaxAmount) As TotalTax
FROM ORDERS
Explanation:
Finding it difficult to add my explanation. So, I used an attachment instead
<em />
She should send a personal letter.
Answer:
- def processDict(dict):
- for x in dict:
- print(dict[x])
-
- dictA = {
- "Name": "Tom",
- "Age": 21,
- "Gender": "Male"
- }
-
- processDict(dictA)
Explanation:
Firstly create a function and name it as processDict that takes one input dictionary, dict (Line 1).
Create a for loop to iterate through each of the dictionary key, x, and use that key to look up the corresponding value and print it out (Line 2-3).
We test the function using a sample dictionary (Line 5-11). We shall get the output:
Tom
21
Male