Hello,
We are not aware who had discussed with last week, we do get the
discussion topics randomly so as per my understanding if you are
looking for query in oracle i have mentioned below the examples and
their explanation.Kindly let me know if you are looking for
something else so we can again help you on it.
Below are the queries and explanation:
Basically for finding the pop/Rock/Artists from your playlist:
We can use the follwing Oracle Query:
SELECT pop FROM Playlist; --Display all the pop songs from playlist
table.
SELECT count(pop) FROM playlist; -- Displays the total count of pop
songs from playlist table.
or SELECT Count(*) from playlist; -- Displays number of
playlist.
SELECT count(songs) from playlist; -- Displays the number of songs
from playlist.
Similarly we can get it for Rock songs and artists details from the
playlist table.
eg: SELECT rock FROM playlist; --
SELECT count(Rock) from playlist;-- Displays count of rock
songs
SELECT artist FROM playlist;
SELECT count(Artist) from playlist; -- Displays the count of
Artist
For average aggregate function:
SELECT AVG(Income) FROM employees;-- it will give the average of
income by total number of enployees in employees table.
SELECT AVG(Income) AS "Avg income"
FROM employees
WHERE income > 25000; -- It will display the average income of
employees based upon conditon income should be greater than 25000
and display in new column named as Avg income
For MAX aggregate function:
SELECT MAX(Income) AS "Highest income"
FROM employees; -- It will display the highest income in separate
column named as Highest income from all the employees in employees
table.
For MIN Aggregate function:
SELECT MIN(salary) AS "Lowest Salary"
FROM employees; -- It will display the lowest income in separate
column named as lowest income from all the employees in employees
table.
Sometimes the question that you want answered involves getting summarized results. For example, you may want...
Overview: You will be writing classes that implement a playlist simulation for a music streaming app.The Playlist class will contain a dynamic array of Song objects, and the Song class contains several pieces of information about a song. You will need to: 1) Finish the writing of two classes: Song and Playlist. The full header file for the Song class has been provided in a file called Song.h. 2) Write a main program (filename menu.cpp) that creates a single Playlist...
You will develop an E-Commerce database used to maintain
customers, products and sales information. You are required to 1)
gather and analyze requirements 2) design logical structure of the
database 3) create stored procedures to develop the tables and
insert the data 4) write SQL statements for data extraction and
reporting.
Throughout the course of this semester you have analyzed the
requirements for an eCommerce database, designed and developed your
database. As a class we have gone through the process...
If the focus in a form moves from left to right and you want the focus to move from top to bottom, change the _____. . a. . sort order . b. . tab order . c. . form layout . d. . focus grouping What do you change when you drag the right border of a form in Form Design view? . a. . the layout of the form . b. . the width of the form ....
Summarize these pages in your own style and you have to
include in your report some figures highlighting the relation
between these operations.
Basic AGGREGATE functions (Revision) COUNT: returns the number of tuples, which meet the specified condition: SELECT COUNT(DISTINCT Dept) AS Num_Depts FROM subject: SUM: returns the sum of the values in a specified column (i.e. numeric column) SELECT COUNT(*) AS hi_sal, SUM(salary) FROM Lecturer WHERE Salary > 4500 MIN: returns the minimum value in a specified column (numeri...
For this program you will build a modular equation evaluator
(you may want to start from your solution to programming assignment
1). Once again, you will write a C program that evaluates the
equations provided below. The program must prompt the user for
inputs for the equations and evaluate them based on the inputs. All
equations should be placed into a single .c file. This means you
should NOT have 7 Visual Studio projects
or 7 .c files. All variables...
Please answer this python questions.Thank you! Question Two Write a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, and then show the total pay at the end...
I want question 2 to be answered. thank you so
much
2. The calories for 20 brands of veggie dogs are given below. (Notice these data have been ordered from smallest to largest.): 40 45 45 45 50 50 55 57 60 60 70 80 80 81 90 100 100 110 95 190 a) Make a five-number summary of the veggie dog calories. b) Now make side-by-side boxplots and compare the distributions of calories for beef dogs and veggie dogs....
You are in charge of keeping track of Rutgers bus system. You
operate a number of different kind of bus, for example, “LX” or
“REXL.” For each kind of bus, you want to keep track of the
operating hours and days of operations (weekday or weekend). For
example, “A” bus operates from 7:00 AM until 9:30 PM during the
weekdays and “H” bus operates from 6:00 AM until 2:30 AM during the
weekdays. For each bus, you want to store...
*This question was posted earlier but I want to make sure my code differs from the other answer* CS50 Assignment 3 and Assignment 4 (Both Due By Sunday March 29 11:59 PM) Assignment 3: Bank Application In a recent lecture, we discussed getting input from the user by using the scanf() function. For your reference, I have included a simple example of using scanf() below: scanf() example: #include int main(void) { int number; printf("Enter a number: "); //prompt the user...
Write a Python program that calculate and summarize the sales of every day and finds out who are the best employee who made more profits. For simplicity: We assume that the program works for only two days and for only two employees. i.e. the program collects and summarize the sales of only two days for only two employees The program accepts undefined number of sales for each employee. For example: You could assume in the first day the first employee...