Create database salesinformation

Assignment Help PL-SQL Programming
Reference no: EM131826904

Assignment

1. CREATE DATABASE salesinformation;

CREATE TABLE sales_data (sale_date date, client_name varchar, product_name varchar, total_dsum int);
SELECT total_dsum FROM sales_data WHERE total_dsum > 0; SELECT * FROM sales_data ORDER BY sale_date ASC;
SELECT * FROM sales_data ORDER BY total_dsum DESC;

2. CREATE TABLE sales_data (sale_date date, client_name varchar, product_name varchar, total_dsum int);
SELECT * FROM sales_data ORDER BY sale_date ASC; SELECT * FROM sales_data ORDER BY total_dsum DESC;

3. CREATE TABLE sales_info (sale_year int, sale_month varchar, client_name varchar, product_name varchar, total_msum int);
SELECT sale_year, sale_month FROM sales_info GROUP BY sale_year, sale_month; SELECT total_msum FROM sales_info WHERE total_msum < 15000;

4. CREATE TABLE client_info (client_name varchar, total_ysum int); SELECT total_ysum FROM client_info WHERE total_ysum IS NOT NULL;

5. CREATE TABLE client_info (client_name varchar, total_ysum int); SELECT client_name FROM client_info WHERE client_name like ‘R%';

6. CREATE TABLE client_info (client_name varchar, total_ysum int); SELECT * FROM client_info ORDER BY total_ysum DESC;
SELECT TOP 3 * FROM total_ysum;

7. CREATE TABLE product_info (client_name varchar, product_name1 varchar, product_name2 varchar, product_name3 varchar, total_sum int);

SELECT * FROM product_info ORDER BY client_name ASC; SELECT * FROM product_info ORDER BY total_sum DESC;
SELECT total_sum FROM product_info WHERE total_sum > 0;

Reference no: EM131826904

Questions Cloud

Prepare a trial balance for the end of the month : On January 4, Mary Markham, an attorney, opened her private law firm...Markham Law (ML). Prepare a trial balance for the end of the month
Question has four possible answers : Christie is taking a multiple-choice test in which each question has four possible answers. She knows the answers to 40% of the questions and can narrow
Probability that they are drawn in the order red : A box contains 9 red balls, 6 white balls, and 5 blue balls. If 3 balls are drawn successively from the box, determine the following:
Prepare a corrected classified balance sheet in good form : Notes payable are long-term except for the current installment due of $100,000. Prepare a corrected classified balance sheet in good form
Create database salesinformation : CREATE DATABASE salesinformation; CREATE TABLE sales_data (sale_date date, client_name varchar, product_name varchar, total_dsum int);
Approximate measure of subcutaneous body fat : Use the ice data set to see if the intramuscular temperature changes more for people with smaller Skinfold measurements.
Temperature measurements from the ice data set : Use the B1930 temperature measurements from the ice data set to see if there is evidence that any of the following differ between men and women.
Predict waist-to-hip ratio : Does the genetic marker in fusion1 predict waist-to-hip ratio (phenol where)? Fit an appropriate model to answer this question.
Create a java class that implements floating point add : For this assignment, you will be creating a Java class that implements floating point Add and Multiply. The layout of your class should look like this.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd