Answered step by step
Verified Expert Solution
Question
1 Approved Answer
table [ [ Customer , Order ] , [ CustomeriD , FirstName,LastName,Email,City,Onderib,Customento,Orderbate,totalPrice ] , [ 1 , Avined,N , ahned.aliaemal com,Ramallah, 1 , 1
tableCustomerOrderCustomeriDFirstName,LastName,Email,City,Onderib,Customento,Orderbate,totalPriceAvined,Nahned.aliaemal com,Ramallah,Fatima,Whan,tatima khangemall com,Bethlehem,Omx,Abdullah,omar abdulah Eemail com,Joricho,Laytin,Ahenad,layla ahmade emal.com,Nablus,Nada,Hassan,nada hasas femailcom,Hebron,Whated,Amin,Khalid amin Bremail com,Gaza,,,,Hars,Sadiq,hare sadiq e emall com,Jenin,,,,Karim,Rahman,karim rahman teemal oom,Tulkarm,,,,eAishe,Hamid,aisha hamidelemal com,Bethlehem,,,Yountert,Fawal,yousset fawei femalicom,Ramallah,,,,
tableOrderLineOrderDetailio OrderiD,ProductiD,Quantity,Price,
Given the data above write SQL queries to answer the following questions:
Print the ids of orders which contain at least one product of category fruit.
Print ids of orders which contain items of two different categories.
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