Question: Consider the database table structure shown in the figure. (a) Write a SELECT statement (compatible with an Oracle RDBMS) that returns all the invoice numbers

 Consider the database table structure shown in the figure. (a) Write

Consider the database table structure shown in the figure. (a) Write a SELECT statement (compatible with an Oracle RDBMS) that returns all the invoice numbers for invoices with a total greater than 1200 or that are due after June of 2010 and that have an amount due that is positive. (b) Then write two rows of sample data that might be retrieved by the query. What is actually retrieved depends on what is in the table. The data you write does not have to match any data that is actually in our sample tables. Columns Data Constraints Grants Statistics Triggers |Flachback IDependencies Details Partitions Indexes sq NULLABLE ATA DEFAULT COLUMN ID COMMENTS NUMBER NUMBER VARCHAR2(50 BYTE) 3 INVOICE NUMBER INVOICE TOTAL 6 PAYMENT TOTAL 7 CREDIT TOTAL NUMBER(9,2) NUMBER(9,2) NUMBER(9,2) NUMBER 0 PAYMENT DATE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!