Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions