Professional Documents
Culture Documents
Test 5
Test 5
4. The expected result of a test case that needs to describe the correct behavior is:
• Only important when testing the whole system
• Only important when testing the component (feature / behavior)
• Never specified in advance
• Derived from the code
• Most useful when specified in advance----corect
8. Write a SQL statement in order to determine the number of people that placed an order with
a value higher than 300. Use table 'cust_order' table.
SELECT COUNT(price)
FROM cust_order
WHERE price>300;
9. Write a SQL statement in order to display the name, order number and purchase date of the
customers that have their orders processed (if is_processed is 1 then the order has been
processed, if is_processed is 0 it has not been processed). Use 'cust_order' and 'order_details'
tables.
10. Write a SQL statement in order to display the name, order number and purchase date of the
customers that have their orders processed (if is_processed is 1 then the order has been
processed, if is_processed is 0 it has not been processed). Use 'cust_order' and 'order_details'
tables.
11. Write a SQL statement in order to update every order such as all of them will be processed
(value for is_processed should be 1).
UPDATE order_details
SET is_processed='1';
API