Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

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

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:54:39+00:00 2026-06-01T12:54:39+00:00

I have a homework question please help with a little explanation so that I

  • 0

I have a homework question please help with a little explanation so that I can understand.

You are writing a query, looking for all customers who have never ordered a pepperoni pizza. Which of these queries is the best match?

select distinct 
  c.customer_name 
from 
  customer c, 
  orders o 
where 
  o.customer_id = c.customer_id 
  and o.pizza_type = ‘pepperoni

select 
   c.customer_name 
from 
  customer c 
where 
  c.customer_id not in 
  (
     select 
       o.customer_id 
     from 
       orders o 
     where 
       o.pizza_type != ‘pepperoni’
  )

select distinct 
  c.customer_name 
from 
  customer c 
  left join orders o 
    on on.customer_id = c.customer_id 
    and o.pizza_type = ‘pepperoni’ 
where 
  o.pizza_type is null

select 
  c.customer_name 
from 
  customer c, 
  orders o 
where 
  o.customer_id = c.customer_id 
  and o.pizza_type = ‘pepperoni’ 
group by 
  c.customer_name 
having count(*) = 0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:54:41+00:00Added an answer on June 1, 2026 at 12:54 pm

    3, assuming that on.customer_id is a typo on your part that should be o.customer_id

    Explanation:

    1: Selects all customers who have ordered a pepperoni pizza.

    2: Selects all customers who have only ever ordered a pepperoni pizza.

    3: Selects all customers who have never ordered a pepperoni pizza.

    4: Won’t select anyone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the homework question: Explain how a process can refer to objects that
I have a homework question that says: Problem 1: Given the array [ 22
I have a compiler homework question that wants me to draw a DFA for
Hey guys, I have a homework question that's been frustrating me to no end!
I want to list all integers that divide n. This is a homework question.
I have a homework. The question is: Write a function that takes as parameter
So I've been doing this all night - can't quite understand my homework, and
I have a homework that I just can't figure out how to do. I'm
So I have a homework question where I'm supposed to use a recursive method
I have a question about my C++ homework. I am just confused about *this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.