473,473 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Comparison Operators

This may be the wrong newsgroup to be asking about this but I'll ask
anyway..
I have 200 possible conditions expressed as comparisons eg. A <= 100 And A
69. They are stored in an SQL database. I also have a datatable with one

row containing 10 values (A,B,C,D,E,F,G,H,I,J). How can I test the row as a
whole to see if it conforms to none, one or more of the conditions in the
database?
Nov 18 '05 #1
1 1061
On Tue, 23 Dec 2003 23:44:22 +0000, J Jones wrote:
This may be the wrong newsgroup to be asking about this but I'll ask
anyway..
I have 200 possible conditions expressed as comparisons eg. A <= 100 And A
69. They are stored in an SQL database. I also have a datatable with one

row containing 10 values (A,B,C,D,E,F,G,H,I,J). How can I test the row as a
whole to see if it conforms to none, one or more of the conditions in the
database?


Just so nobody is left with a mystery on my question I'll do a bit more
explaining..
The 'Conditions' are comparison strings such as :-

"A <= 100 And A > 69"
"B <= 31 And B > -1"
"C <= -71 And C >= -100"
"A > 69 And B < -19 And C < -19"
"I > 69 And ((H <= -41 And H > -71) Or H <= 19 And H > -11"

Etc. Etc...
There are 200 of these 'Conditions'. I have them as text in a table in SQL
server. I use this column as the pk. for the table.

Then - In my ASP.NET application - I have a Dataset with one row containing
calculated values for A,B,C,D,E,F,G,H,I and J. - i.e:

Column A = 90
Column B = 57
Column C = 36
Column D = 27
Column E = 77
Column F = 42
Column G = 42
Column H = -18
Column I = -100
Column J = 110

What I wanted to know was a way of checking if this array of values meets
any of the 'Conditions' that are stored in the Database table.

The array may or may not meet one or more of the conditions.
I hope my explanation clarifies my question.
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael Klatt | last post by:
I've just encountered a strange situation (at least to me) regarding friend operators and member operators: #include <map> class Key { friend bool operator<(const Key& lhs, const Key& rhs)...
13
by: jstanforth | last post by:
This is probably a very obvious question, but I'm not clear on what operators need to be implemented for std::map.find() to work. For example, I have a class MyString that wraps std::string, and...
29
by: Steven D'Aprano | last post by:
Playing around with comparisons of functions (don't ask), I discovered an interesting bit of unintuitive behaviour: >>> (lambda y: y) < (lambda y: y) False Do the comparison again and things...
2
by: PengYu.UT | last post by:
I'm wonder whether 1. stl directly defined the 6 comparison operators(== != < > <= >=) directly for iterator and const_iterator 2. or it only define == and < and using std::rel_ops to get the...
1
by: Thats Me | last post by:
TMALSS: Task With maintenance of Access Database I did not develop, don't ask about non-commented code problems or where data dictionary is (LOL). Have table with Inventory data for all...
2
by: Serve La | last post by:
Now that implementations are becoming available, I've started to learn more about C99. Now I was reading about the isgreater/isgreaterequal/isless/... macro's and I'm wondering about why they are...
37
by: spam.noam | last post by:
Hello, Guido has decided, in python-dev, that in Py3K the id-based order comparisons will be dropped. This means that, for example, "{} < " will raise a TypeError instead of the current...
17
by: Dinsdale | last post by:
I would like to compare a string value to a pre-determined list of other strings. Is there a simple way to do this in one statements like this: if(strMystring.ToUpper() == ("STRING1"| "STRING2"|...
2
by: Mark Rae | last post by:
Hi, This isn't *specifically* an ASP.NET question, so I've also posted it in the ADO.NET group - however, it's not too far off-topic... Imagine a SQL Server 2005 database with a table with an...
2
by: puzzlecracker | last post by:
Unlike C++, in Csharp you're only allowed to compare a generic type T with null, if the method it's passed in not implementing IComparable<Tor , IEquatable<T(still don't know why we need these...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.