Question

Task 2.1.3. List the job id and purchase order id for any purchase order involving a quantity greater than 50 or involving it


You should write queries to answer the following questions. Example output is also provided and needs to match exactly (inclu
Task 2.1.3. List the job id and purchase order id for any purchase order involving a quantity greater than 50 or involving item id 'IRN For example: Result job.id po.id 004 004 004 006 CCc Answer: (penalty regime 0 %) Check
You should write queries to answer the following questions. Example output is also provided and needs to match exactly (including heading names). You need to pass all the quiz items to gain the checkpoint. Use 'AS' to change the column name where appropriate. It is recommended that you develop the answer to the question in SQLite outside of FLO. Add each query to a file one at a time (as the previous one is determined to be correct), for example, printing.query.ts2.1.sql In SQLite you can use the command.read to execute the SQL commands contained in a file, e.g sqlites read printing.query.ts2.1.sq if you turn on command echo it will also output the sql to make it for a tutor to help you sqlite .echo ON
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the query, which will get the Job_id and po_id from the table Result where the quantity is greater than 50 or item_id is equal to IRN.

In this query Purchase is the table name, we are fetching Job_id and po_id where the quantity is greater than 50 or Item_id equal to 'IRN'.

SQL>>SELECT job_id,po_id FROM Purchase WHERE quantity>50 OR item_id='IRN'

Add a comment
Know the answer?
Add Answer to:
Task 2.1.3. List the job id and purchase order id for any purchase order involving a quantity gre...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

  • Customer (CustomerId, CustomerName) Employee (EmployeeId, EmployeeName, Salary, SupervisorId) Product(ProductId, ProductName, ListPrice) Orders (OrderId, OrderDate, CustomerId, EmployeeId,...

    Customer (CustomerId, CustomerName) Employee (EmployeeId, EmployeeName, Salary, SupervisorId) Product(ProductId, ProductName, ListPrice) Orders (OrderId, OrderDate, CustomerId, EmployeeId, Total) OrderedProduct (OrderId, ProductId, Quantity, Price) Write the code to complete the methods in OrderJDBC.java (look for TODO items). <---**IN BOLD** throughout code. /* OrderJDBC.java - A JDBC program for accessing and updating an order database on MySQL. */ import java.io.File; import java.math.BigDecimal; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.util.Scanner; /** * An application for...

  • If possible please just send the SQL statement. Thank you Each question within deliverable 3 must begin on a new page and be sure to document the question as the title of each item at the top o...

    If possible please just send the SQL statement. Thank you Each question within deliverable 3 must begin on a new page and be sure to document the question as the title of each item at the top of each page. Also, using a 12-point font, include the SQL statement and then provide a screen shot of each query. The screen shots must include both the SQL statement and the results for each item below based on the data entered in...

  • The primary keys are underlined. The foreign keys are denoted by asterisks (*). Description of the...

    The primary keys are underlined. The foreign keys are denoted by asterisks (*). Description of the schema: • person — keeps track of the people who borrow books from the library. The attributes contain personal and contact information. • author — keeps track of personal information about authors. • publisher — keeps track of the publisher information. To keep it simple, most of the attributes have been truncated in the sample database. 1 trivial dependencies are things like X→X or...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT