Compare multiple values in a single column oracle

I want to compare multiple values of a column with a single value of another column.I had tried a lot but it gives me "No row selected" here's my scenario... I have a table Bus_stop_table: Bus_ID(FK) ------STOP_ID 201 -------------------401 201...
more »

2017-10-03 05:10 (1) Answers

How to compare a record date with current date?

In my login form, I am trying to compare the user's finish date with the current date to determine if they should be allowed into the system or not. Unfortunately my code isn't working. My work is as follows; If Cdate(DLookup("[FInish Date]", "Empl...
more »

2017-08-23 13:08 (1) Answers

why is an identical array not equivalent?

e.g. $ node > [1, 2, 3] == [1, 2, 3] false Apologies if I am using "identical" and "equivalent" incorrectly. console.log([1, 2, 3] == [1, 2, 3]); I ask, because I am used to languages such as Ruby $ irb irb(main):001:0> [1,2...
more »

2017-08-08 21:08 (3) Answers

How to compare two classes in vb.net?

Let's suppose I have a Class like this: Class MyClass(Of Template) 'Some things here End Class So far, so good. However, I would like to do things depending on the template, like Class MyClass(Of Template) 'Some things here Public Sub...
more »

2017-07-25 16:07 (1) Answers

Sort a list of tuples by their first index in Elm

Assuming that I have a list of tuples that resemble the following example: [(5, "a"), (1, "c"), (7, "d")] in Elm, how do I go about sorting the list in ascending order by their first elements so that we get the following result? [(1, "c"), (5, ...
more »

2017-04-25 04:04 (3) Answers

Find matching entries in list which are different

I have two lists. The first one contains entries like RB Leipzig vs SV Darmstadt 98 Hertha Berlin vs Hoffenheim .. and in the second contains basically the same entries but could but written in different forms. For example: Hertha BSC vs TSG Ho...
more »

2017-03-29 00:03 (2) Answers

VHDL generic comparison and synthesis

I have a problem when synthesizing code with generics : My entity is : entity MyEntity is generic( OUTWIDTH : integer range 8 to 64; NBREG : integer range 2 to 8); port( port1 .... port2 .... ); end entity; architecture rtl of...
more »

2017-03-24 15:03 (2) Answers

Assembly how to compare strings

for a small assignment we have to compare strings we were given this code in C extern "C" { bool isStringEqual(const char *s1, const char *s2); } static char *testStrings[] = { "", "Test String 1", "Test String 2", }; #define NUM_TE...
more »

2017-03-24 08:03 (0) Answers

mysql function to compare similars strings

i need to search on my database for registers using "almost" the same email... my email is abc@gmail.com i need to see if we have register with small variations of this emails, like... abc1@gmail.com or abc@gmail1.com or abc@ggmail.com I tried alre...
more »

2017-03-03 21:03 (2) Answers

date conversion from list in python

I am new to Python, I have list l with 8th element like this, I want this to be compared with, Coding like this. Can some body let me know, is this right way of comparing string to time format? >>> l[7] '07APR2015' >>> import time ...
more »

2017-02-27 16:02 (1) Answers

Generic comparer using reflection

I am putting together simple generic comparer for unit testing. I don't want to use IComparable interface because there is just too much classes that would need to implement it, and it will be only used in Unit tests so performance of reflection is n...
more »

2017-02-27 09:02 (1) Answers

PHP date within 6 months

How I can check if given date (ie. 4/2017) is within 6 months from now in future? For example: 4/2017 true 8/2017 false 5/2017 true I have now: $datum = explode(': ', $given_date); // Separate date from string $datum = str_replace('/', '-', $da...
more »

2017-01-10 09:01 (3) Answers

JavaScript Array Comparison Function

I currently have a map of an array of users which all have a unique _id key / value. user = [{_id: "1", ... }, {_id: "2", ... }, ... ] I also have two other arrays, one named teams and another named accounts. teams = [{ _id: "1", members: [{ userI...
more »

2017-01-06 03:01 (1) Answers