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

  Assume that a student table in a university

Assume that a student table in a university database has an index on StudentID (the primary key). and additional indexes on Major, Age, Marital status, and HomeZipCode.

  Data dictionary serves as important data management tool

The data dictionary serves as an important data management tool by? assigning attributes to the data, maintaining data in updated form.

  Write an essay on marketing management

The customer is always right -The customer doesn't know what's best. It's the baker's (marketer's) job to educate him. The above statements succinctly point out a subtle battle which rages within the marketing discipline.

  Explain the average length of stay per room type

What is the average length of stay per room type. What is the average number of visitor per room type. What is the base income per room (i.e., length of visit multiplied by the daily rate) during a specified period of time

  Dimensions and attributes in a star schema model

Explain the use of facts, dimensions and attributes in a star schema model. Explain the use of facts, dimensions and attributes in a star schema model.

  Explain what do business rules require to be effective

What are the advantages of having the DBMS between the end user's applications and the database. What are some reasons for studying file systems. IT 645 - Database Management Systems

  Find out which data from database to archive

Find out which data from database to archive; that is, for each table, Write down whether data requires to be archived.

  Explain techniques for distributed data placement

Create a diagram using Visio, Microsoft Paint, or other graphical creation utility of your choosing to illustrate the diagrams supporting your conclusion. Note: The graphically depicted solution is not included in the required page length.

  Design an expanded entity relationship model diagram

You are to design an Expanded Entity Relationship Model Diagram. An example of the Expanded Entity Relationship Model Diagram is seen in Figure 3.27 on page 89.

  Create the table for the relation training courses

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Does the resulting relation have an mvd

Does the above have one or more functional dependency (do not list FDs by applying derivation rules)? If so, what is it? Show how you will remove it by decomposition.

  Create a table with the following column headings

You learned that WIPO is the global arbitrator for all intellectual property-related issues. Read any two cases for the year 2007 on cybersquatting. Create a table with the following column headings.

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