Viewing 15 posts - 10,426 through 10,440 (of 26,489 total)
Okay, I may be missing something, but how do you accidently mirror a database?
July 27, 2012 at 5:00 am
Ramdas Baghel (7/27/2012)
Sorry! It is accentaly added. How to remove it
It is really hard to know the problem when part of it is in the header and not repeated in...
July 27, 2012 at 4:57 am
anthony.green (7/27/2012)
I just took Cadavre's solution and change it to a iTVF and craeated a test view and it took 13 seconds to...
July 27, 2012 at 4:53 am
Does the following query meet your requirements?
with BaseData as (
select distinct
[SID]
from
dbo.table3
), CIDData as (
select
bd.[SID],
t3.CID
from
...
July 27, 2012 at 4:27 am
Or, for the SID in table3, you want a distinct comma delimited list of CID's from Table3 and Table1.
July 27, 2012 at 4:07 am
You are saying that the SID in table2 does not relate to the SID in table3?
What I think I see is that for each PID in table2 you want a...
July 27, 2012 at 4:05 am
There could be many cuases for this. There really isn't enough information here to narrow it down. It could be due to the size of the inserts/updates to...
July 27, 2012 at 3:47 am
One piece is missing for my understanding, without the concatenation if I were to query the tables, how do they relate to one another, and based on the sample data,...
July 27, 2012 at 3:42 am
You do know that you had everything there you needed to do this, right?
here is my code, with your WHERE clause commented:
SELECT
j.name AS JobName,
...
July 27, 2012 at 3:34 am
I'm trying to figure out how the tables relate first, so I can figure out how the final result set is to be built. Think I could get 5...
July 27, 2012 at 3:25 am
anthony.green (7/27/2012)
CREATE TABLE [dbo].table1(
[PID] [int] NOT NULL,
[CID] [int] NOT NULL,
CONSTRAINT [PK_tbl1] PRIMARY KEY CLUSTERED ([PID] ASC,[CID] ASC)
)
GO
CREATE TABLE [dbo].[table2](
[PID] [int] NOT NULL,
[SID] [bigint] NOT NULL,
CONSTRAINT [PK_tbl2]...
July 27, 2012 at 3:19 am
Oh, and the expected results based on the sample data.
Thanks.
July 27, 2012 at 2:34 am
Not exactly sure what is happening, could you post the fdl for the table, some sample data, and your code so I can play a little?
July 27, 2012 at 2:33 am
Hate to say it, but I posted a reply. When I started it, Arron had not yet replied, but when I posted it, he had. I hope what...
July 26, 2012 at 9:03 pm
Viewing 15 posts - 10,426 through 10,440 (of 26,489 total)