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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:58:33+00:00 2026-05-20T17:58:33+00:00

I need help with this exercise where I have to translate properties from English

  • 0

I need help with this exercise where I have to translate properties from English into sql.

Questions:

  1. length has at least one 0

    Answer: MIN(ABS(length)) = 0
    
  2. length has more that one value

    Answer: MIN(length) < MAX(length)
    
  3. there are no nulls for length

    Answer: COUNT(*) = COUNT(length)
    
  4. values of length are either positive or negative

    Answer: MIN(length) * MAX(length) > 0
    
  5. length differs above and below zero by the same amount

    Answer: MIN(length) = -max(length)
    
  6. all values of length are different

    Answer: COUNT(DISTINCT length) = COUNT(length)
    
  7. only one of min(length) or max(length) is positive

    Answer: MIN(length) * MAX(length) < 0 
    
  8. length has one value or null value

    Answer: MIN(length) = MAX(length)
    

Are these correct? I’m not sure about #3, 5, 6 and 8 in particular.

  • 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-20T17:58:34+00:00Added an answer on May 20, 2026 at 5:58 pm
    1. length has at least one 0

      Answer: MIN(ABS(length)) = 0
      
    2. length has more that one value

      Answer: MIN(length) < MAX(length)
      or
      Answer: COUNT(distinct length) > 1
      
    3. there are no nulls for length

      Answer: COUNT(*) = COUNT(length)
      
    4. values of length are either positive or negative

      Answer: MIN(length) * MAX(length) > 0
      or
      Better Answer: Sign(MIN(length)) * Sign(MAX(length)) > 0
      
      -- Because, with large values of length, multiplying two of them
      -- together can give you an overflow.
      
    5. length differs above and below zero by the same amount

      Answer: MIN(length) = -max(length)
      
    6. all values of length are different

      Answer: COUNT(DISTINCT length) = COUNT(length)
      
    7. only one of min(length) or max(length) is positive

      Maybe Wrong Answer: MIN(length) * MAX(length) < 0 (0 is not positive)
      or
      Answer: MIN(length) <= 0 and MAX(length) > 0
      
      -- IF: one must be positive and the other must be negative
      -- change <= 0 to < 0
      
    8. length has one value or null value

      Wrong Answer: MIN(length) = MAX(length) -- null=null does not return true
      or
      Answer: COUNT(distinct length) <= 1
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to android and need help on this. I have two views
Sorry to bother again, but I really need help transforming this Python2 code into
I need help decoding this regular expression from sprockets. I am not sure what
Need help figuring this out. I have two tables user ---- name skills (comma
I have another exercise I have to do that I really need help with.
I really need help this time - Joomla 2.5 and latest K2. I'm using
i need help with this. I'am using JQuery's Dynamic Form plug-in, it duplicates my
I need help finishing this statement. It is frustrating that two of the PHP
I really need help with this last part of my program. I need to
I Really need help in this ... I'm building an application where I need

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.