Advertisement

08.17.2007 at 11:53AM PDT, ID: 22770549
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

SELECT query not filtering records properly

Asked by itcaptain in Btrieve 4GL Database

Tags: , , ,

I have our accounting database in a BTREIVE Pervasive SQL 8.5 and am testing a few queries to it through the Pervasive.SQL Data Manger.  Through all my experience with SQL I have never seen anything as strange as this.

For example I have a table named TABLE_A with 2 columns COL_X (text) and COL_Y (text).  Let's assume TABLE_A has the following data:

COL_X    |    COL_Y
aa1, 55
aa1, 234
aa2, 40
bb1, 50
bb2, 70

You would think to filter all the records where COL_X = aa1 you would write this query:

SELECT * FROM TABLE_A WHERE COL_X = 'aa1'

However I do not get any results.  I then tried the following query:

SELECT * FROM TABLE_A WHERE COL_X LIKE 'aa1%'

And got NO RESULTS.

I then tried the following query:

SELECT * FROM TABLE_A WHERE COL_X LIKE 'aa%'    (ommiting the numerical '1' in this case)

And it behaved perfectly giving me all the records (the 1st three in my sample) where there was an "aa".

It's strange the first 2 queries do not work despite the fact there THERE ARE records that match the criteria in the "WHERE" clause.

Why would this be?  On a side note my accounting package that uses the Pervasive SQL database is BusinessVision 7.11.Start Free Trial
[+][-]08.17.2007 at 12:04PM PDT, ID: 19719471

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 01:02PM PDT, ID: 19719892

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 01:47PM PDT, ID: 19720225

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 01:49PM PDT, ID: 19720243

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 02:00PM PDT, ID: 19720337

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 04:16AM PDT, ID: 19729369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 01:54PM PDT, ID: 19741460

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 05:22PM PDT, ID: 19742781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 11:49AM PDT, ID: 19756781

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 12:10PM PDT, ID: 19756964

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Btrieve 4GL Database
Tags: pervasive, sql, select, query
Sign Up Now!
Solution Provided By: BillBach
Participating Experts: 2
Solution Grade: B
 
 
[+][-]08.23.2007 at 12:18PM PDT, ID: 19757012

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 12:23PM PDT, ID: 19757041

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 12:48PM PDT, ID: 19757250

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628