Viewing 15 posts - 2,881 through 2,895 (of 6,041 total)
This will give you what you want.
SELECT A.MemNo
FROM zzz_Overlapping A
JOIN zzz_Overlapping B
ON B.MemNo = A.MemNo
AND ((A.YMDStart BETWEEN B.YMDStart AND B.YMDEnd)
OR (A.YMDEnd BETWEEN B.YMDStart AND B.YMDEnd))
WHERE B.YMDStart !=...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 10, 2016 at 11:32 am
Also, I would expect custid to be a foreign key as well.
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 10, 2016 at 10:39 am
There is no need to index foreign keys by default. So long as employees(empid) is indexed, which it should be since the empid column is the primary key of employees...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 10, 2016 at 10:38 am
I'm assuming the goal here is to consolidate multiple OLTP databases into one OLTP database, and each existing line of business application will (at least for now) continue it's own...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 10, 2016 at 7:22 am
Matt Miller (#4) (2/9/2016)
Eric M Russell (2/9/2016)
...That's scary, though potentially not a problem. A number of states publish voter data as public records. A few might have restrictions on the...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 10, 2016 at 6:53 am
David.Poole (2/9/2016)
Data is like fissile material. Once it gains critical mass it's...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 1:47 pm
Have you ever wondered how much an IT staff member working for Department of Homeland Security earns?
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 12:23 pm
🙂
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 10:34 am
Steve Jones - SSC Editor (2/9/2016)
Eric M Russell (2/9/2016)
...That's scary, though potentially not a problem. A number of states publish voter data as public records. A few might have restrictions...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 10:32 am
ThomasRushton (2/9/2016)
Eric M Russell (2/8/2016)
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 8:27 am
...That's scary, though potentially not a problem. A number of states publish voter data as public records. A few might have restrictions on the use of that data, but the...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 9, 2016 at 8:06 am
There has been explosion in the number of relational SQL databases developed over the past 20 years. The broad sentiment that RDMS don't scale is due to the unfortunate fact...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 8, 2016 at 3:22 pm
If employees have interesting projects to work on, are well compensated, and generally happy with the direction of the organization, then having a "corporate culture" in place will give them...
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 8, 2016 at 9:46 am
Basically what you're describing is the underlying tables of a "distributed partitioned view" design pattern.
https://technet.microsoft.com/en-us/library/ms188299(v=sql.105).aspx
What you'll need to do is have each table insert identity values within a unique range....
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 8, 2016 at 7:45 am
Beatrix Kiddo (2/8/2016)
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
February 8, 2016 at 7:01 am
Viewing 15 posts - 2,881 through 2,895 (of 6,041 total)