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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:50:45+00:00 2026-05-30T03:50:45+00:00

I have two tables Created_Labels : IF label_ID_from = label_ID_to (it means it has

  • 0

I have two tables

Created_Labels:

enter image description here

  • IF label_ID_from = label_ID_to (it means it has been only one label created), in column label_number is number of created label.

  • IF label_ID_from <> label_ID_to (more labels was created), in column label_number is NULL and in next two columns is interval of created labels with ID from table bellow.

Labels (list of existing lables):

enter image description here

How can I get the complete list of created label_numbers (get labels with ID 105, 110, 111, 112..120, 200, 201, 202..210, 394, 554)?

enter image description here

  • 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-30T03:50:47+00:00Added an answer on May 30, 2026 at 3:50 am
    SELECT 
          L.ID
        , L.label_number
    FROM
          Labels L
      JOIN
          Created_Labels CL
        ON
          L.ID BETWEEN CL.label_ID_from
                   AND CL.label_ID_to
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two auditing tables: Trip_aud and Event_aud. They were created in Envers, but
In SSRS I have created two tables, a parent and a subreport. Both reports
I have two tables created in html .. How could I move rows from
I basically created some tables to play around with: I have Two main tables,
I have two tables, we'll call them Foo and Bar , with a one
In my dbsql file, I have two CREATE TABLES the first works and the
I have two tables: codes_tags and popular_tags. codes_tags CREATE TABLE `codes_tags` ( `code_id` int(11)
I have two tables: entitytype and project . Here are the create table statements:
I have two tables A and B as defined bellow. create table A (
So I have two tables structured like so: CREATE TABLE #nodes(node int NOT NULL);

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.