Viewing 15 posts - 3,721 through 3,735 (of 4,820 total)
I looked at your query from a slightly different perspective. Not sure if this is going to be any better, but I'm joining to your transactions table...
May 27, 2015 at 12:57 pm
myjobsinus (5/27/2015)
Data in the Source Database and Archive Database is different. so we want...
May 27, 2015 at 12:30 pm
I'm not sure why you would want to do that. Those views would just end up with the same kind of resultset as the following:
SELECT *
FROM TABLE1
UNION ALL
SELECT...
May 27, 2015 at 9:45 am
DBA2015 (5/27/2015)
sgmunson (5/26/2015)
May 27, 2015 at 9:37 am
Why even parameterize the date if you have the date needed in the table? Just change the query that exists for the report itself to do an INNER...
May 27, 2015 at 9:30 am
ramana3327 (5/26/2015)
SELECT TOP 20
ROUND(s.avg_total_user_cost *
s.avg_user_impact
* (s.user_seeks + s.user_scans),0)
...
May 26, 2015 at 3:08 pm
PJ_SQL (5/26/2015)
I have table which consists of images. I am trying to export those images to a folder.
declare @path varchar(100)= 'c:\images\'
SELECT [PICTURE]
,@path+[PICTURE] AS Path
FROM [A].[dbo].[PICTURE]
I am getting this error:...
May 26, 2015 at 12:58 pm
I suspect that the original poster meant to use FROM in place of WHERE, but given the code, I'm fairly sure that there's a much easier way to code this...
May 26, 2015 at 12:38 pm
Velveeta22 (2/17/2015)
February 18, 2015 at 5:55 am
Velveeta22 (2/17/2015)
February 17, 2015 at 11:44 am
The following part of the LEFT JOIN isn't needed:
AND O.CompanyClientMemberID IS NOT NULL
That field is already part of the rest of the JOIN condition (the specific line follows) based on...
February 16, 2015 at 11:55 pm
Let me know if the following simplified version of that previous query is functionally equivalent:
DECLARE @p0 DATETIME = '2013-12-23 15:09:31.000';
DECLARE @p1 INT = 1;
DECLARE @p2 INT = 1;...
February 13, 2015 at 9:52 pm
Matt Miller (#4) (2/12/2015)
Jeff Moden (2/12/2015)
February 12, 2015 at 10:07 pm
ChrisM@home (2/12/2015)
February 12, 2015 at 11:48 am
ChrisM@home (2/12/2015)
sgmunson (2/12/2015)
Just curious, but I've never seen anyone use an ON clause together with CROSS APPLY. Given that it's an ON 1=1, it would seem to be...
February 12, 2015 at 11:24 am
Viewing 15 posts - 3,721 through 3,735 (of 4,820 total)