Questions tagged [intersect]

The SQL intersect operator returns rows that are common between two tables without returning duplicate records.

643 questions
-1
votes
2 answers

SQL Intersection with group by a column values

I want to intersect between values of one column based on another column. I mean if I have three different values in Id column, I want the values of LineGroupBy column to be assumed as one group(Id=1) and intersected with other groups(Id=5 or…
-1
votes
2 answers

Is it the right way to use 2 IN in one SQL-query instead of INTERSECT?

I have a product filter based on data from multiple tables. I make query using IN 2 and more times in one query. This works great and only selects products that have and needed attributes and needed options and needed categories SELECT COUNT(*)…
SergeTkach
  • 35
  • 3
-1
votes
1 answer

How to find intersection point from several line in a single plot in R?

Sample code: m=matrix(1:54,nrow=9) l=1:6 plot(l,m[1,],type="l",xlim=1:6) lines(l,m[2,]) lines(l,m[3,]) legend(2,3,legend=c("m1","m2","m3"))) Now, how can I find the point where say m1and m2 intersects? Any help is appreciated.
user20536224
-1
votes
3 answers

Why is this MySQL INTERSECTION with wrong syntax?

I have two tables, a and b: +-------------+--------+-----------+ | ID_do_aluno | Nome | Sobrenome | +-------------+--------+-----------+ | 154676754 | John | Brown | | 232565690 | George | Yellow | | 345896580 | Anne | Green …
titoco3000
  • 51
  • 1
  • 6
-1
votes
1 answer

intersect list of tuples and list of intergers

I want to intersect two list. But the lists are of different types, one is list of tuples and the other is list of integers. As a result I need a final list of tuples. List 1: [(1.0, 2481), (0.11764705882352941, 2), (0.033, 2), (0.0, 2479), (0.0,…
Sniper
  • 418
  • 3
  • 12
-1
votes
1 answer

Find difference between two sequences

I write a code, that finding a difference between two array sequences. There are a lot of versions that I tried and succeeded in. #include int main() { const int N = 10; int inputFirst[N]; int inputSecond[N]; int output[N]; int…
user14808261
-1
votes
3 answers

VBA:: intersect vs. match method

I had a question pertaining to the two built in VBA function of .Match and .Intersect. Currently I have 2 1-dimensional arrays that I wish to consolidate information into a new array. I realize I've posted a question about the approach to the…
user816845
-1
votes
2 answers

c# Intersect 2 lists with same but non identical objects

I want to intersect 2 lists of objects which have the same types and same properties in it, but the objects in the list got instantiated separatly. class foo { int id; string name; public foo(int Id, string Name) { id = Id; name…
Indycate
  • 11
  • 3
-1
votes
1 answer

select data Intersect / inner join MySql

i have two table in my database tb_bengkel, this is data of tb_bengkel +------------+--------------+----------------+--------------+ | id_bengkel | nama_bengkel | alamat_bengkel | id_sparepart…
Irfan F
  • 81
  • 7
-1
votes
1 answer

Is sql to Linq union by reference? (the same for except and intersect?)

When you perform a union in linq to sql, will it be by reference - if the reference to the object point to the same object - or is it by the id field? Example method: public IEnumerable GetCustomers(string searchCriteria) …
Niklas
  • 1,753
  • 4
  • 16
  • 35
-1
votes
1 answer

Getting ER_PARSE_ERROR when using Intersect and multiple input vaules of email format

I am trying to build a SQL query with INTERSECT clause. I get a array of email ids and in return I need to give out the common students between all the teachers provided by the email ids in the input. The structure of the table is: id |…
Harsh Vardhan
  • 675
  • 1
  • 11
  • 24
-1
votes
1 answer

Is there any query/code that can find common values in records?

Somebody can guide me (maybe Simple and fast query if there is or some fast code) to convert my CSV data file (with commas separation): 1,A,C,Z,F,G 2,G,Q,R,C, 3,Z,G,Q, 4,C,F, 5,O,P, 6,O,X,Y,J, 7,A,P,X, I have this table with ~1,000,000 records…
SmmSamm
  • 13
  • 4
-1
votes
1 answer

Intersect the common values from a grouped KeyValuePair list in C#

I have a Tuple list consisting of an Id (Item1) and a Value (Item2) as follows: var tupleList = new List> { Tuple.Create( 100, 1 ), Tuple.Create( 100, 1 ), Tuple.Create( 100, 2 ), Tuple.Create( 101, 1 ), Tuple.Create(…
Scho
  • 351
  • 1
  • 2
  • 12
-1
votes
2 answers

Determining if two line segments intersect with a tolerance

I'm using this code that was posted as an answer to this question: How do you detect where two line segments intersect? It is my understanding that this function only returns an intersection point if the two line segments exactly intersect. I need…
-1
votes
1 answer

Intersection algorithm

I have two objects in a CSharp project, which presents rectangles. Now I want to calculate if one object intersects another one. The objects cannot rotate. I've got the following methods: getX(); getY(); getWidth(); getHeight();
friedkiwi
  • 2,158
  • 8
  • 29
  • 52