Viewing 15 posts - 1 through 15 (of 32 total)
Thanks but that may not be possible. Is there any other workaround?
August 27, 2013 at 12:37 pm
Thanks for the info. Will keep in mind if the data grows out of hand.
July 9, 2013 at 1:18 pm
What i was looking like is the complete history.
for e.g. this gives me 2 rows, one from 4/1-4/30 and other from 4/1-4/15
declare @dtmPointInTime datetime = '04/10/2013';
select ms_id, startdate, enddate,...
July 9, 2013 at 12:52 pm
Can you please describe in more detail about the daily snapshot approach?
July 9, 2013 at 12:44 pm
Thanks that worked. I need to understand how it works though. will check out the article.
June 28, 2013 at 6:33 pm
Its not that simple.
The third party provides data, another team loads the data and we use the data to display on front end.
The team that loads the data will...
April 2, 2013 at 3:38 pm
You are correct, the data should be clean. But sometimes we have no control on the data and it is provided by third party. All we can do is some...
April 2, 2013 at 3:28 pm
Sorry, I was not clear. I want include values from table column that has leading/trailing spaces also.
For e.g.
table1
Col
----------
' ABC'
'XYZ '
' MNR'
' MCR'
table2
Col
-------
'XYZ'
'MNR'
Select * from...
April 2, 2013 at 3:09 pm
So both the queries will return same results? I want to include leading and trailing spaces from table2.
If I understanding correctly, LTRIM/RTRIM does not make any difference.
April 2, 2013 at 2:55 pm
If I have a query like
Select * from table1 WHERE ColVal IN (Select AllVals from table2)
Is it not better to have the following instead? It will bring in those values...
April 2, 2013 at 2:35 pm
using this query instead of using the view directly improved the performance times
SELECT
distinct ID,(Display+'--'+ID) as Display
FROM MyView WHERE ...
March 28, 2013 at 6:51 pm
CREATE TABLE [case1](
[CaseID] [varchar](15) NULL,
[Emp_ID] [varchar](15) NULL,
[Segment] [varchar](10) NULL,
[dischargedt] [date] NULL,
[discharge_entered_dt] [date] NULL
) ON [PRIMARY]
GO
/****** Object: Index [IX_PK] Script Date: 03/28/2013 13:58:55 ******/
CREATE UNIQUE CLUSTERED INDEX...
March 28, 2013 at 3:57 pm
Here you go
CREATE TABLE [case1](
[CaseID] [varchar](15) NULL,
[Emp_ID] [varchar](15) NULL,
[Segment] [varchar](10) NULL,
[dischargedt] [date] NULL,
[discharge_entered_dt] [date] NULL
) ON [PRIMARY]
GO
/****** Object: Index [IX_PK] Script Date: 03/28/2013 13:58:55 ******/
CREATE UNIQUE...
March 28, 2013 at 3:01 pm
Full Index search will need an index on the view.
And Indexed view will not be a good idea here since the data in case1 table is frequently updated.
March 28, 2013 at 2:50 pm
Viewing 15 posts - 1 through 15 (of 32 total)