Spread the word.

Share the link on social media.

Share
  • Facebook
Have an account? Sign In Now

Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Home/ Questions/Q 3322
Next
In Process

SIKSHAPATH Latest Questions

Harshdalal15
  • 0
  • 0
Harshdalal15
Asked: November 6, 20212021-11-06T15:08:28+05:30 2021-11-06T15:08:28+05:30In: DBMS

DBMS-Write a query to create a view that shows for each order the salesman and customer by name.

  • 0
  • 0
Consider the following relations:

 

Salesman

salesman_id | name | city | commission ————-+————+———-+———— 5001 | James Hoog | New York | 0.15 5002 | Nail Knite | Paris | 0.13 5005 | Pit Alex | London | 0.11 5006 | Mc Lyon | Paris | 0.14 5007 | Paul Adam | Rome | 0.13 5003 | Lauson Hen | San Jose | 0.12   Customer customer_id | cust_name | city | grade | salesman_id ————-+—————-+————+——-+————- 3002 | Nick Rimando | New York | 100 | 5001 3007 | Brad Davis | New York | 200 | 5001 3005 | Graham Zusi | California | 200 | 5002 3008 | Julian Green | London | 300 | 5002 3004 | Fabian Johnson | Paris | 300 | 5006 3009 | Geoff Cameron | Berlin | 100 | 5003 3003 | Jozy Altidor | Moscow | 200 | 5007 3001 | Brad Guzan | London | | 5005   Orders ord_no purch_amt ord_date customer_id salesman_id ———- ———- ———- ———– ———– 70001 150.5  2012-10-05      3005   5002 70009 270.65 2012-09-10     3001     5005 70002  65.26   2012-10-05       3002  5001 70004  110.5   2012-08-17       3009  5003 70007 948.5  2012-09-10      3005   5002 70005 2400.6 2012-07-27     3007     5001 70008 5760     2012-09-10     3002     5001 70010  1983.43 2012-10-10      3004  5006 70003 2480.4  2012-10-10     3009   5003 70012 250.45  2012-06-27      3008   5002 70011 75.29  2012-08-17       3003   5007 70013  3045.6 2012-04-25      3002   5001   Write a query to create a view that shows for each order the salesman and customer by name. 

  • 1 1 Answer
  • 238 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. Professor
      Professor
      2021-11-07T14:09:27+05:30Added an answer on November 7, 2021 at 2:09 pm
      This answer was edited.

      FIRSTLY WE HAVE TO CREATE THE FOLLOWING TABLES:

      SALESMAN, CUSTOMER, AND ORDER TO SOLVE THIS PROBLEM.

      YOU WILL GET YOUR ANSWER IN BELOW ATTACHMENT:

      Attachment

        • 1
      • Reply
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 149
    • Best Answers 89
    • This Free AI Tool Translates Entire Books in Minute !
    • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
    • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
    • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
    • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.