Knowee
Questions
Features
Study Tools

Write a query to display the variance of the payable_amount whose payment_date is on the month of 'October'. Give an alias name to the variance as 'variance_payable_amount'.Note:1. Display only the variance of payable_amount in the given month from bill table.(only for the month october)2. Specify the alias name without any mistake.3.Specify the condition and retrieve the correct rows in the result(condition need to be specified on payment_date column).4. Use variance() to calculate variance.5. Compare your executed result with the sample output given below.​​​​​​​Sample output:

Question

Write a query to display the variance of the payable_amount whose payment_date is on the month of 'October'. Give an alias name to the variance as 'variance_payable_amount'.Note:1. Display only the variance of payable_amount in the given month from bill table.(only for the month october)2. Specify the alias name without any mistake.3.Specify the condition and retrieve the correct rows in the result(condition need to be specified on payment_date column).4. Use variance() to calculate variance.5. Compare your executed result with the sample output given below.​​​​​​​Sample output:

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

It seems like you want to write a SQL query. Here's how you can do it:

SELECT VARIANCE(payable_amount) AS variance_payable_amount
FROM bill
WHERE EXTRACT(MONTH FROM payment_date) = 10;

Here's the step by step explanation:

  1. SELECT VARIANCE(payable_amount) AS variance_payable_amount: This line is selecting the variance of the payable_amount column and giving it an alias name variance_payable_amount.

  2. FROM bill: This line is specifying the table from which to select the data, which is the bill table.

  3. WHERE EXTRACT(MONTH FROM payment_date) = 10;: This line is the condition that only the rows where the month of the payment_date is October (10) should be included in the calculation.

Please replace the table and column names with your actual table and column names if they are different.

This problem has been solved

Similar Questions

Write a query to display the variance of the payable_amount whose payment_date is on the month of 'October'. Give an alias name to the variance as 'variance_payable_amount'.

Write a query to display the standard deviation of the fine_amount whose payment_date is on the year 2018 from bill table. Give an alias name to the standard deviation to the fine amount  as 'standard_deviation_amount'.

Write a query to display the month and sum of fine_amount collected on the month between July to October. Give an alias name as 'monthly_fine_amount' also display the records in ascending order based on month.Note:1. Display only the month and sum of fine_amount collected in the month between July to October from bill table. (month will be 01, 02, 03,...12)2. Specify the alias name without any mistake.3. Order by is mandatory4. Group by month to get the month wise sum of fine_amount5. Compare your executed result with the sample output given below.

Write a query to display the sum of payable_amount whose payment_date is on the year 2018. Give an alias name to the total payable_amount as 'sum_payable_amount'.Note:1. Display only the sum of payable_amount in the given year from bill table.(only for the year 2018).2. Specify the alias name without any mistake.3.Specify the condition and retrieve the correct rows in the result(condition need to be specified on payment_date column).4. Compare your executed result with the sample output given below.

Write a query to display the variance of balance from the travel_card table. Give an alias name as balance_variance.Note:1. Display only the variance of balance from travel_card table.2. Specify the alias name without any mistake.3. Compare your executed result with the sample output given below.Sample output:

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.