Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Refer the given tables and answer the question that follow: PRICE QUANTITY 100 56 36 Table: PURCHASE DETAILS ORDER NO PRODUCT NAME 1001 KEYBOARD 1002

image text in transcribed
Refer the given tables and answer the question that follow: PRICE QUANTITY 100 56 36 Table: PURCHASE DETAILS ORDER NO PRODUCT NAME 1001 KEYBOARD 1002 MONITOR 1003 MOUSE 1004 HARD DISK 1005 RAM 1007 CABINET 6 58 200 100 300 500 100 25 Write an SQL query to display the ORDER_NO, PRODUCT_NAME and PRICE details of products with PRODUCT NAME having 'a' letter exist in any position in the PRODUCT_NAME column values and amount is greater than 200. (Hint: Use PURCHASE DETAILS table). b) Develop an SQL query to display the ORDER_NO, PRODUCT_NAME and the length of values in ORDER NO column. Give an alias Name LEN_ORDER. from the table PURCHASE_DETAILS Write a SQL query to display the TOTAL Price of products for each ORDER_NO group. (Hint: Use PURCHASE_DETAILS table]. d) Develop an SQL query to display the unique ORDER_NO and PRICE for those products whose QUANTITY is either 200 OR 100 (Hint: PURCHASE_DETAILS Table]

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions