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 3595816
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:54:08+00:00 2026-05-18T19:54:08+00:00

I am supposed to rewrite a SQL-query without using a subquery. My solution which

  • 0

I am supposed to rewrite a SQL-query without using a subquery.
My solution which uses a subquery is:

SELECT * from parts WHERE weight > 
(SELECT weight from parts WHERE name = 'tape-drive');

A simplified version of my table ‘parts’:

NAME    WEIGHT  
----------------------  
line-printer    520     
tape-drive      100    
line-printer      520  
tape-drive        100         
byte-soap          75          
card-punch        120

I’ve thought about it for quite some time and am unable to figure it out.

  • 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-05-18T19:54:08+00:00Added an answer on May 18, 2026 at 7:54 pm

    Answering, because it’s not often that I can;

    SELECT P1.* 
      from parts P1
      join parts P2 on
           P1.weight > P2.weight
     WHERE P2.name = 'tape drive'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am supposed to rewrite a SQL-query without using a subquery. My solution which
I know this is supposed to output what kind of shell I'm using, which
I have a set of rewrite rules that are supposed to process a URL
I'm currently trying to build a code which is supposed to work on a
After reading some items here I have decided to rewrite a little project using
( SELECT root_tags.tag_id, root_tags.tag_name, COUNT( root_tagged.pg_id ) FROM root_tags LEFT JOIN root_tagged ON (
So I've decided to rewrite an old ray tracer I had which was written
I've got a 2.0 server control that uses a dynamic query roughly in the
Supposed I have the following string: string str = <tag>text</tag>; And I would like
I supposed the include-command copy-pastes code in the compilation, it is wrong because the

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.