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 !=...
February 10, 2016 at 11:32 am
Also, I would expect custid to be a foreign key as well.
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...
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...
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...
February 10, 2016 at 6:53 am
David.Poole (2/9/2016)
Data is like fissile material. Once it gains critical mass it's...
February 9, 2016 at 1:47 pm
Have you ever wondered how much an IT staff member working for Department of Homeland Security earns?
February 9, 2016 at 12:23 pm
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...
February 9, 2016 at 10:32 am
ThomasRushton (2/9/2016)
Eric M Russell (2/8/2016)
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...
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...
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...
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....
February 8, 2016 at 7:45 am
Beatrix Kiddo (2/8/2016)
February 8, 2016 at 7:01 am
Viewing 15 posts - 2,881 through 2,895 (of 6,041 total)