Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help using SQL plus or SQL Developer EMPLOYEE table [ [ EmplD , First _ Name,Surname,Contact _ Num,Email,Address ] , [ 1 0
please help using SQL plus or SQL Developer
EMPLOYEE
tableEmplDFirstName,Surname,ContactNum,Email,AddressCameron,Willis,cw@isat.coza Main rdJessie,Wait,iwait@imail.com, Water wayAndre,Gumede,agum@mcare.coza Cape stMarie,Du Preez,mduppie@isat.coza Long rdEric,Jones,ejones@nrom.coza Temperancest
CUSTOMER
tableCustomerIDFirstName,Surname,ContactNum,Address,BankAAsavela,Bitterhout, Table rdABSAAHenry,James, Sea Side rdNEDBANKAJoe,Bloggs, Upper End,FNBAClark,Smith, South end,ABSAAJabu,Xolani, Main rdFNB
SUPPLIER
tableSupplierIDSupplierName,ContactNum,RatingAdventure Gear,Ultra Outdoor,Xtreme Gear,Sky and Surf Gear,
PRODUCT
tableProductIDProductName,Price,Warranty,SupplierIDProdX Kanoe, year,ProdZ Goggles, year,ProdK GPS Device, years,ProdL Moutain Harness, year,ProdAqua Extreme Watch, years,
SALES
tableSalelDSaleDate,SaleQty,EmplD,CustomeriD October A October A October A October A
PRODUCTSALES
tableSalelDProductIDProdProdProdProdProd
Question
Marks:
Create a SQL query to display the Customer ID Employee ID Product ID and the Sale Date of the sale transactions that have a product price of less than
Question
Marks:
Create a PLSQL query that will display the Customer Name, Product Name and the Product Price.
In your query only display the products that have a supplier rating of
Question
Marks:
The management of XTREME GEAR SA require a report on the best performing products. Create a SQL query that will display the product names that have a total sales greater than the average sale amount.
Question
Marks:
Create a view called OverallReport that will display the Employee Name, Customer Name, Product Name, Supplier and the Sale Date. In your query only display the sales that occurred on the October
Question
Marks:
Create a procedure called SaleCount that will receive an Employee ID as an input parameter and return the count of the sales made as an output. Your solution must also determine if the performance of the employee is good or poor. If the sale count is greater than or equal to then the performance is considered good, otherwise the performance is poor. In your query use Employee ID as the input parameter and supply the code to run the procedure.
Question
Marks:
Create a function called LowestSales that will display the product name and the lowest sale transaction amount. In your answer also supply the code to run the function.
Question
Marks:
Create a trigger called SupplierEntry that will restrict a user from entering in a Supplier Rating that is less than or equal to zero. In your query also provide a suitable message and the insert statement to test the trigger.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started