How to write a 4-part query?
-
--1. Query 1 --Get the shipvia method from ORDERS first (the one that orderid 10248 used ) --2. Query 2: --Get a list of orderids from the ORDERS table which have the same shipvia as in query 1. --3. Query 3: --Get the productid from order details which are IN the list of orderids you got from query 2. --4. Query 4: --Get productnames from products where productid is IN the list of productIDs from orderdetails
-
Answer:
i dont fully understand, do you need to list all the information you mentioned? are shipvia, orderids, productid, productnames columns in your table? won't this work? SELECT orderids, productid, productnames FROM ORDERS WHERE shipvia == 'ship method'
Davon at Yahoo! Answers Visit the source
Related Q & A:
- How To Write A Resume?Best solution by Yahoo! Answers
- How To Write A Letter?Best solution by Yahoo! Answers
- How to do a MySQL recursive query?Best solution by Stack Overflow
- How to write a query for PHP and MySQL?Best solution by Stack Overflow
- How to write a persuasive letter to a bank?Best solution by wikihow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.