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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:30:48+00:00 2026-05-10T21:30:48+00:00

Is there a tool which tells you (or gives you a hint) why a

  • 0

Is there a tool which tells you (or gives you a hint) why a particular select statement dose not return any rows given the current data in your database.

eg if you had the following 4 table join

select *  from a, b, c, d where a.b_id = b.id and b.c_id = c.id and c.d_id = d.id 

If there were rows which satisfied the conditions a.b_id = b.id also rows which satisfied b.c_id = c.id but no rows which satisfied the condition c.d_id = d.id it would highlight c.d_id = d.id as the problem.

Ie it would brake up the where clause and find out which of the sub conditions returned true and highlight those which do not return true.

It would not work well for complex querys but many select statements are simple joins over lots of tables.

This would be useful when creating test data to exercise a peace of application code or debugging a problem with a live system.

Graphical explain tools (that show the plan of the actual exiection path) come close but they show too much info and do not highlight the missing link in the select stament.

I am using postgres, sqllight and mysql but would be interested in how tools for other databases/platforms work.

Im also interested in any manula techniques.

Does anybody else have this problem?

Would anybody be interested if I wrote such a tool?

  • 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. 2026-05-10T21:30:49+00:00Added an answer on May 10, 2026 at 9:30 pm

    This will get you started…

    select count(1) from a, b where a.b_id = b.id

    select count(1) from b, c where b.c_id = c.id

    select count(1) from c, d where c.d_id = d.id

    Note that you are using AND so the overlap of the above queries may not be what you expect.

    OR

    Using MS-SQL Server Management Studio… Display the ‘Execution Plan’ and mouse over the nodes for ‘Actual Number of Rows’.

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

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer the following code casts magic <meta name='viewport' content='width=device-width, minimum-scale=1.0, maximum-scale=1.0'/> May 11, 2026 at 8:59 am
  • added an answer See Three Body Problem on Wikipedia. When you have more… May 11, 2026 at 8:59 am
  • added an answer I think the problem is that you and your testing… May 11, 2026 at 8:59 am

Related Questions

Is there a tool which tells you (or gives you a hint) why a
Is there a tool which traces & logs all RMI activity of a Java
Is there a tool or script which easily merges a bunch of JAR files
Is there a tool (preferably free) which will translate Oracle's PL/SQL stored procedure language
Is there a tool out there which can convert SQL syntax to LINQ syntax?
As the question states - is there a good tool out there which lists
Is there a tool that will find for me all the css classes that
Is there a tool or a way to find out how much memory consumed
Is there a tool to automatically search through my site and test all the
Is there a tool or programmatic way to install an SSL certificate to the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.