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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:07:55+00:00 2026-06-16T07:07:55+00:00

That is my query: SELECT DISTINCT `row` FROM `parts` WHERE `wall` = ‘1’ ORDER

  • 0

That is my query:

SELECT DISTINCT `row` FROM `parts` WHERE `wall` = '1' ORDER BY `row`

That is an answer to the query:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 

It looks like if the statement WHERE `wall` = ‘1’ was ignored, because the result is the same as if I made such query

SELECT DISTINCT `row` FROM `parts` ORDER BY `row`

I want the first query give me
1 3 4 9 19 (these are the “rows” where “wall” really =1)
I have read some posts about similar issues, still I can’t find the solution

The schema

  • 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-16T07:07:56+00:00Added an answer on June 16, 2026 at 7:07 am

    I used my own sample data and got the correct results. I copied everything posted on SQL Fiddle to my local mysql database. And queried everything with phpmyadmin and everything worked. This a SQL query to insert data into your database.

    INSERT INTO `table` (`id`, `wall`, `row`, `place`, `long`, `proportion`, `shapeid`, `projid`, `quantity`, `rwall`, `rrow`, `rplace`, `status`, `barcode`, `position`) VALUES
    (1, '1', 5, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (2, '10', 1, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (3, '1', 2, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (4, '3', 20, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (5, '1', 40, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (6, '2', 4, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (7, '1', 1, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (8, '5', 1, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (9, '1', 13, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', ''),
    (10, '10', 13, 0, 0, '', 0, '', 0, NULL, NULL, NULL, 0, '', '');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following query that works well. SELECT DISTINCT city,region1,region2 from static_geo_world where
I have a query that looks like this: var ChangesOthersResult = surveyResponseRepository.Query.Select(r => r.ChangesOthers);
Right, so I've got a query that looks like this: $bestof_query = SELECT *
I have a query like this one : SELECT DISTINCT `a`.*, `b`.*, `c`.* FROM
I've got a sub-select in a query that looks something like this: left outer
I would like to delete all the rows found by that query: SELECT cart_abandon.*
I have a SELECT query that I am expecting millions of results from. I
I have an oracle sql query select distinct tab1.col1, tab2.col1 from table1 tab1 join
I have the following query: SELECT wm_concat(DISTINCT NAME) as Methods FROM TPM_TRAININGPLAN JOIN TPM_DELIVERYMETHODS
I am executing a following query: SELECT DISTINCT users.user_id, users.email, users.irc_nickname FROM users, user_group_map,

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.