Question
Following tables with data are created: AGENTS (agent_code, agent_name, working_area, commission, phone_no, country) CUSTOMERS (cust_code, cust_name, cust_city, working_area, cust_country, grade, opening_amt, receive_amt, payment_amt, outstanding_amt, phone_no,
Following tables with data are created: AGENTS (agent_code, agent_name, working_area, commission, phone_no, country) CUSTOMERS (cust_code, cust_name, cust_city, working_area, cust_country, grade, opening_amt, receive_amt, payment_amt, outstanding_amt, phone_no, agent_code)
1. Create a view 'agentview6' with customer name, agent name from the table 'agents', and customers with the following condition:
Customers agents working area is in 'London'
2. Create a view 'top_customer' as the table 'customer' with the following conditions -
opening_amt, receive_amt, payment_amt, outstanding_amt is greater than 5000
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