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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:34:43+00:00 2026-05-25T23:34:43+00:00

sorry to ask so many questions about SQL but I am doing exercises that

  • 0

sorry to ask so many questions about SQL but I am doing exercises that help me revise for my test.

I am trying to display the names of all people who have 2 Ls in their name and are in depno = 30 or their super is “7782”. I have written some code for it but its giving an error. I have used the Column name “SUPER” for the manager.

SELECT   ENAME
FROM     emp
WHERE    ENAME LIKE 'L%', DEPTNO = 30;
OR       SUPER = '7782';

Thanks alot again!

-Jay

Found the answer:
The answer should actually be:

SELECT   ENAME 
FROM     emp 
WHERE    ENAME LIKE '%L%L%' AND DEPTNO = 30
OR SUPER = '7782';

because the other codes given here give me an error as the end of third line is not supposed to have a semicolon.

  • 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-25T23:34:43+00:00Added an answer on May 25, 2026 at 11:34 pm

    This should do it:

    SELECT   ENAME 
    FROM     emp 
    WHERE    ENAME LIKE '%L%L%', DEPTNO = 30; 
    OR       SUPER = '7782'; 
    

    Be aware that the LIKE ‘%L’ might prevent the usage of an index.

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

Sidebar

Related Questions

Sorry to ask this kind of questions. But I am eager to know some
Sorry to ask a question like that but I can't found a good answer
Sorry to have to ask this since there are many CSS 100% height questions
Hey guys sorry to ask but i need help with this query please I've
Sorry for being the 100000th person to ask the same question. But I guess
(I am sorry, I wanted to ask this question on meta first, but it
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One
Sorry the title isn't more help. I have a database of media-file URLs that
Sorry to flood so many questions this week. I assume thread index returned by
I am sorry to ask this trivial question but I could not find a

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.