1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Norma-Jean [14]
1 year ago
14

(Queries of a single table with filtering conditions) Based on the plumbing supply store database from Chapter 7, write SQL quer

ies that perform the following tasks: A Show the name and unit price of all products priced below $50 (note: SQL treats currency amounts like any other number, so you not use a $ sign or quotes in your query.) should 244 Introductory Relational Database Design for Business, with Microsoft Access B Show the product name, units on order, and units in stock for all products for which the number of units on order is at least 40% of the number of units in stock. C Show the same information as in part (b), but with the additional restriction that the number of units on order is no more than 10. D Show the first name, last name, city, and state of all customers out- side New Jersey (state code "NJ"). E Show the first name, last name, city, and state of all customers who are outside New Jersey or have the first name "Robert" (or both).
Computers and Technology
1 answer:
saw5 [17]1 year ago
8 0
<h3>SQL Queries</h3>

Assuming your "Equipment" Table has the following attributes:

-product_name

-unit_price

-units_on_order

-units_in_stock

And Your "Customer" table has the following attributes:

-first_name

-last_name

-city

-state

<h3>A - </h3>

Solution:  Select product_name,unit_price from Equipment where unit_price<50

Explanation: Select product name, unit price from table Equipment where unit price value is less than $50

<h3>B - </h3>

Solution: Select product_name, units_on_order, units_in_stock from Equipment where units_on_order>=0.4*units_in_stock

Explanation: Select product name, unit on order and units in stock from table Equipment where unit on order is greater or equal to 40% of units in stock

<h3>C - </h3>

Solution:  Select product_name, units_on_order, units_in_stock from Equipment where units_on_order>=0.4*units_in_stock and units_on_order<=10

Explanation: Select product name, unit on order and units in stock from table Equipment where unit on order is greater or equal to 40% of units in stock as well as units on order is less than or equal to 10 (atmost 10)

<h3>D - </h3>

Solution:  Select first_name,last_name,city,state from Customer where state not in("NJ")

Explanation: select first name,last name,city,state from table Customer where state is not present in the following list ("NJ") i.e. New Jersey

<h3>E -  </h3>

Solution: Select first_name,last_name,city,state from Customer where state not in("NJ") or first_name="Robert"

Explanation: select first name,last name,city,state from table Customer where state is not present in the following list ("NJ") i.e. New Jersey or first name is Robert

Learn more about SQL: brainly.com/question/25694408

#SPJ4

You might be interested in
What is meant by Angular 4?
Blizzard [7]
Hehebebehehehdhdhyuwiiwwiuhwbbwb is bfbbend
6 0
3 years ago
Read 2 more answers
Which of these conclusions supports the fact that Eclipse is categorized as an IDE?
Drupady [299]

Answer:

The user must specify the programming language he or she wants to use.

Explanation:

6 0
3 years ago
Please help...........​
MrMuchimi

Answer:

Explanation:

As a user of GPL v3 software, you have lots of freedom: You can use GPL software for commercial purposes. You can modify the software and create derivative work. You can distribute the software and any derivative work you produce, without having to ask for permission or pay

4 0
3 years ago
Read 2 more answers
Which employees work directly with customers, helping them make deposits and withdrawals?
d1i1m1o1n [39]
I believe the answer is customer service
5 0
3 years ago
Read 2 more answers
An assembly line is an example of which of the following facility layouts?
ikadub [295]

Answer:

Product layout

Explanation:

In configuration of facilities, the four layouts used are the process, product, cellular and fixed-position layouts.In process layout, operations that have similar functions are placed together. Example is a machine shop in manufacturing scenario.Product layouts are applied where there is repetitive assembly and processes.For example in flow shops where large volume of products are produced in a short time. Products that are very large or too heavy use fixed position layouts.Example is ship building or dam construction which require on-spot job performing.Cellular layouts is an equipment layout that will ease the process of cellular manufacturing.For example in group technology, parts of similar designed are identified to be grouped with processes that have similar characteristics to avoid re-arranging of layouts.

6 0
3 years ago
Other questions:
  • Why is it important to use standard english when applying for a job
    13·2 answers
  • In some cases, certain Hyper-V guest operating system features do not function properly using the operating system's own device
    9·1 answer
  • A researcher wants to do a web-based survey of college students to collect information about their sexual behavior and drug use.
    7·1 answer
  • Which network component connects a device with the transmission media?
    9·1 answer
  • _______ view is used to size field names and controls and to apply formats.
    10·2 answers
  • Which task should happen during the planning stage of a project? reflect on the project outcomes prevent set-backs determine the
    11·1 answer
  • QUESTION 4 of 10: True or false: Paying for your ticket to a rock concert instead of a gym membership is an example of Opportuni
    9·1 answer
  • What is the answer ?? plz help
    9·1 answer
  • Select the best answer from the drop-down menu. Sometimes people feel threatened by new ideas and different ways of doing things
    5·1 answer
  • a company recently implemented a secure sockets layer/transport layer security (ssl/tls) version that supports secure hashing al
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!