1 give syntax example for each of the following group

Assignment Help Database Management System
Reference no: EM13380007

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: EM13380007

Questions Cloud

How tall must the antennas be if the link operates on a : how tall must the antennas be if the link operates on a frequency of 1450mhz d17miles d211miles and the obstruction is
Description provided with 6 papers we have to critically : description provided with 6 papers we have to critically analyse those papers and make a document with usual report
1nbspnbspnbspnbspnbspnbsp : 1.nbspnbspnbspnbspnbspnbsp ipnbspnbspnbspnbspnbspnbspnbspnbspnbspnbsp 143.190.149.158 subnet mast nbspnbspnbsp
Sorting a list is a common example in computer science : sorting a list is a common example in computer science functional languages make it very easy to express a sorting
1 give syntax example for each of the following group : 1. give syntax example for each of the following group functionsavgsumminmaxcountdistinctstddevvariance2. provide 2
Assess the idea that a system should be organized as a core : assess the idea that a system should be organized as a core system that implements the essential requirements with
Consider the type of software process used in your : consider the type of software process used in your organization or one in which you have previously worked. how many of
The paris bakery has decided to bake 30 batches of its : the paris bakery has decided to bake 30 batches of its famous beignets at the beginning of the day. the store has
Freds fasteners is a manufacturing company that has decided : freds fasteners is a manufacturing company that has decided they are large enough to choose to be self-insuring for

Reviews

Write a Review

Database Management System Questions & Answers

  Create an employee database

Create a report that contains the above data - be sure to include a Hampton University logo in your report.

  Using join sort results alphabetically by customer name

Using Join, list the items each customer ordered where the billing_price was lower than the item price (item, billing_price, and price). Sort the results alphabetically by customer name.

  Potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database and design a database solution and the potential business rules that could be used to house the sales transactions of the department store.

  Briefly explain the aries recovery algorithm

Briefly explain the ARIES recovery algorithm, including the main phases, main principles and key ideas behind the algorithm such as WAL protocol and checkpointing etc.

  Covert the extended entity relationship diagram

Covert the Extended Entity Relationship Diagram (EERD) for Orthopedic Alliance of Plano (OAP) described in assignment one to relations. See Lecture 5, slide 22 for relational schema.

  How referential integrity constraint prevent data

In physical database design, referential integrity constraints can be defined. What actions does referential integrity constraint prevent from happening when data is inserted in table which contains this constraint?

  Prepare a database design specification

Understand and interpret a set of business rules for a database and create an Enhanced Entity Relationship Diagram that models the requirements accurately

  Bonds and term structure1 graph the bond yield to maturity

bonds and term structure1. graph the bond yield to maturity ytm on the y-axis of an xy-scatter plot with the bond to

  Explain k-means clustering algorithm to group the homicides

In this assignment, analyze crime rates using data mining clustering techniques (K-means) to get an accurate prediction to enable police forces to get a clear picture of criminals and solve crimes.

  Determine columns that make up the primary key

Carry out the following tasks below by using the correct SQL statements. Create the statements in Oracle by using the following steps (SQL > SQL commands > Enter Command). Determine the columns that make up the primary key of the l_lunch_items tabl..

  Design update trigger on part table which raises error

Design the Update trigger on Part table which raises an error string if Count field of updated row has a higher value than value prior to Update.

  Explaining content of document in natural language

Explain the content of this document in natural language;Design the graph representation of document;

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