What is the output when the following script is executed

Assignment Help Database Management System
Reference no: EM13187495

1. Give Syntax Example for each of the following Group Functions:

AVG

SUM

MIN

MAX

COUNT

DISTINCT

STDDEV

VARIANCE

2. Provide 2 Syntax examples of using the GROUP BY Clause on Multiple Columns

3. Provide 2 Syntax examples of creating joins with the USING Clause

4. Provide 2 Syntax examples of the HAVING Clause with Subqueries

5. Using the Employees and Departments tables below, provide the answer for Select Command using these tables. The goal is you walk though the Select Command on these tables manually and determine the answer (expected result) based on your reading of from text book: -  Just show the expected output when you run the syntax. 

EMPLOYEES  Table

1960_EMPLOYEES  Table.png

End of DEPARTMENTS Table

What is the output when the following script is executed?

SELECT AVG(salary), MAX(salary),

       MIN(salary), SUM(salary)

FROM   employees

WHERE  job_id LIKE '%REP%';

What is the output when the following script is executed?

SELECT employee_id, last_name, job_id, salary

FROM   employees

WHERE  salary >=10000

AND    job_id LIKE '%MAN%' ;

What is the output when the following script is executed?

SELECT employees.employee_id, employees.last_name,

       departments.location_id, department_id

FROM   employees JOIN departments

USING (department_id) ;

What is the output when the following script is executed?

SELECT last_name, job_id

FROM   employees

WHERE  job_id

       NOT IN ('IT_PROG', 'ST_CLERK', 'SA_REP') ;

Reference no: EM13187495

Questions Cloud

Under standard conditions one of the steps of glycolosis : Under standard conditions one of the steps of glycolosis does not occur spontaneously. Can the reaction take place in the cytoplasm of a cell where the concentrations
State what is the ph of a phosphate solution : What is the pH of a phosphate solution made by the addition of 2.5 equivalents to an initial solution of phosphoric acid. The three pKa values of phosphate
Major differences between a traditional hazard : Discuss two major differences between a traditional hazard such as the 2007 California Wildfires and the terrorist-related hazards associated with the Aum Shinrikyo Sarin Gas attack on the Tokyo Subway that occurred in March of 1995
Describe the supply and demand shifts that are occuring : The demand for the firms services has been increasing as more consumers use the service for convenience and due to higher parking rates and gasoline prices, wage rates for drivers increase cost for the firm. Describe the supply and demand shifts t..
What is the output when the following script is executed : Determine the answer (expected result) based on your reading of from text book: -  Just show the expected output when you run the syntax.
Calculate the solution must consider other equilibria : Calculate the [Zn2+] in a solution of ZnC2O4 held at a pH of 3.00. Remember C2O4^2- is a weak base so you must consider other equilibria.
How much of each type of sugar will be purchased : It is common for supermarkets to carry both generic (store-label) and brand-name (producer-label) varieties of sugar and other products. Many consumers view these products as perfect substitutes, meaning that consumers are always willing to substi..
Understanding hypnosis in terms of focused attention : Understanding hypnosis in terms of focused attention, distinctive brain activity, and the presence of an authoritative presence in a legitimate context, requires an integrated ___________________________ approach.
How to impact the consumers opportunity set : A recent newspaper circular advertised the following special on tires: Buy three, get the fourth tire for free-limit one free tire per customer. If a consumer has $500 to spend on tires and other goods and each tire usually sells for $50 how does ..

Reviews

Write a Review

Database Management System Questions & Answers

  Compute canonical cover for set of functional dependencies

Compute a canonical cover for the above set of functional dependencies (show each step of your derivation with an explanation).

  Create ascreenshot of each query and output data

Create 3 rows of data for each table ensuring that the referential integrity is valid and add the 30 rows of data to the appropriate table in your database (using any appropriate method available).

  Create structurally sound relational database schema

Create a structurally sound relational database schema showing the minimum number of fields, tables, and relationships between the tables.

  Computing functional dependencies

Compute the functional dependencies which exist in following table. After determining the functional dependencies, transform this table to an equivalent collection of the tables which are in third normal form.

  Create a data warehouse conceptual design

Create a Data Warehouse conceptual design using Star Schema Modelling and document all steps during the design process

  Prove-leaves of binary search tree are located in bottom

Examples for small n are given bellow, where a small square box represents an unsuccessful search. Prove that leaves of any binary search tree are located in the bottom two levels.

  Database for university keep track of its course offerings

Assume you are making a database to help university keep track of its course offerings. You might have following entities in database, as they are distinct items in real life.

  Design work breakdown structure for designing database

Design a work breakdown structure for the task below: Designing the database, Working on the website content

  Explain why data flow diagrams are developed in a hierarchy

Explain why data flow diagrams are developed in a hierarchy? What are the names of some levels in the hierarchy?

  Explain leaf of b tree which holds a sublist

Artificially small example of B+ tree is shown here (pdf). (Note only part of tree is shown in detail.) What nodes of example B+ tree are visited to find posting list for "dune"?

  Explain meaning of expression acid transaction

What is lock granularity? Explain the use of BEGIN, COMMIT, and ROLLBACK TRANSACTION statements. Explain the meaning of expression ACID transaction.

  Kinds of joins

It is not uncommon to have to access the data which reside in different tables, especially when formulating a report.

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