Knowee
Questions
Features
Study Tools

Given a table with order details. Please find the table details and sample data below.TABLE NAME: AGG_ORDERS (Table names are case sensitive)FIELD NAMES: ord_no, purchase_amt, ord_date, cust_id, salesman_id

Question

Given a table with order details. Please find the table details and sample data below.TABLE NAME: AGG_ORDERS (Table names are case sensitive)FIELD NAMES: ord_no, purchase_amt, ord_date, cust_id, salesman_id

🧐 Not the exact question you are looking for?Go ask a question

Solution

I'm sorry, but you didn't provide a question or a task related to the table AGG_ORDERS. Could you please provide more details or clarify what you need help with?

Similar Questions

TABLE NAME: AGG_ORDERS (Table names are case sensitive)FIELD NAMES: ord_no, purchase_amt, ord_date, cust_id, salesman_idWrite a query to find the maximum purchase amount made by each customer from the 'AGG_ORDERS' table.

Given a table with order details. Please find the table details and sample data below.TABLE NAME: AGG_ORDERS (Table names are case sensitive)FIELD NAMES: ord_no, purchase_amt, ord_date, cust_id, salesman_idWrite a query to find the maximum purchase amount made by each customer from the 'AGG_ORDERS' table.Note: The required input details will be populated in the backend.This is only a sample data.Input format :The input tables are already prepopulated, as given in the problem statement.Output format :The output should display the customer ID and the corresponding maximum purchase amount as shown below.Customer_ID Amount123 788.50278 975.50367 3000.00456 2065.50567 123.25789 2500.00

From the following table, create a view named salesown to display the details of salesmen, including their ID, name, and city.Sample table: salesmanNote: Table name and column names are case sensitive.Input format :The input records are already prepopulated as per the given requirement.Output format :The output is a view named salesown that provides the details of salesmen, including their ID (salesman_id), name (name), and city (city) as shown below.

Orders table got below attributesOrder_no, Custnbr, Product, Qty, Amt, DiscountCustomers table got below attributesCustnbr, Company, Custrep, CreditlimPrint the Order_no, Amt, Company and creditlim of the customers who placed orders. Select Order_no, Amt, Company, Creditlim from Customers outer join Orders on customers.custnbr=orders.custnbrSelect Order_no, Amt, Company, Creditlim from Customers left outer join Orders on customers.custnbr = orders.custnbrSelect Order_no, Amt, Company, Creditlim from Customers inner join Orders on customers.custnbr = orders.custnbrSelect Order_no, Amt, Company, Creditlim from Customers right outer join Orders on customers.custnbr = orders.custnbr

i. Create a database called orderproc_db for an Order processing company usingMySQL.ii. Replace the data types in the tables given below with MySQL Compatible format.iii. Using the orderproc_db database, create the following tables.CUSTOMER (custno: INT, cname: STRING, city: STRING)ORDE (orderno: INT, odate: DATE, custno: INT, ord_amt: INT)ITEM (itemno: INT, unit_price: INT)ORDE_ITEM (orderno: INT, itemno: INT, qty: INT)WAREHOUSE (warehouseno: INT, city: STRING)SHIPMENT (orderno: INT, warehouseno: INT, ship_date: DATE)iv. Identify the primary key and define primary key constrains for the table.v. Identify the foreign keys and enforce referential integrity for the tables.vi. Describe the structures of the tables you have created above.vii. Insert the records to the tables. Records are available as text files with the respectivetable names in a folder called “Tables” on your desktop. You need to properly formatthese records before inserting into the tables.viii. List all customers from Batticaloa.ix. Propose an alternative method to execute the above question (viii).x. Select all customers who are from Batticaloa or Jaffna.xi. How many customers are there in Colombo?xii. List the customer’s name ending with the letters “na”.xiii. List all the order amount above 50000.xiv. List all customers name who made order above 50000.xv. List all customers name who have at least one warehouse in their city.xvi. How many different cities are there in the customer table.xvii. How many warehouses are there in Colombo?.xviii. How do you check all order dates are less than or equal to shipping dates?xix. List all the order number, order date, customer number and order amount where all theshipment made from Colombo warehouses.

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.