Viewing 15 posts - 2,911 through 2,925 (of 8,731 total)
This is a quick test on the date you would be using when run at different times. Are the values correct? Other than the formula, your code doesn't seem to...
May 3, 2016 at 8:40 am
Does this help a bit?
Select a.mycolumn,count(distinct(c.mycolumn))
from table1 a with (nolock)
inner join table2 b with(nolock) on a.id=b.id
inner join table3 c with (nolock) on a.mycolumn LIKE '%' + c.mycolumn + '%'
group by...
May 3, 2016 at 7:57 am
May 3, 2016 at 7:47 am
If I understand correctly, this is a sample code base loosely on AdventureWorks database.
SELECT SUM(LineTotal)
FROM Sales.SalesOrderDetail d
WHERE d.SalesOrderID IN( SELECT i.SalesOrderID
...
May 3, 2016 at 7:32 am
If server is 5 hour ahead of CST, but you're still taking the time from the server. Why would you need to change the time? What time defines "today" and...
May 3, 2016 at 7:26 am
jeff.mason (5/3/2016)
The developer needs to get over it. It's a reasonable request and will take him five minutes to do.
Less if using a template, or more if he's not...
May 3, 2016 at 7:15 am
Alan.B (5/2/2016)
terry999 (5/2/2016)
I got this error on a scheduled integrity check. SQL 2005 sp2
Data row does not have a matching index row in the index '' (ID 2). Possible...
May 3, 2016 at 7:09 am
djj (5/3/2016)
Grumpy DBA (5/3/2016)
crookj (5/3/2016)
ThomasRushton (5/3/2016)
ChipsHighway (Patrol)
Ponch (Frank Poncherello)
Fat
Fluffy
May 3, 2016 at 7:00 am
If the procedure is stopped and it's properly written, it might have to rollback everything that has been done. Because you're using a single transaction, right?
May 3, 2016 at 6:59 am
Mac1986 (5/2/2016)
Thanks a million for differing me to the old thread. I got the answer from there .
ROW_NUMBER() OVER(PARTITION BY ser.servername ORDER BY ser.servername DESC) AS RowID,
Just a small note....
May 3, 2016 at 6:56 am
I'm heading out of the office, but the solution is the same as the one I posted on this thread: http://www.sqlservercentral.com/Forums/Topic1782605-3077-1.aspx
May 2, 2016 at 2:36 pm
Your data makes no sense. How do you define a relation between each fruit and its value?
There's no order in a table, you need additional values. Hopefully, this isn't a...
May 2, 2016 at 2:34 pm
You just add an INSERT INTO between the CTE and the final SELECT.
WITH CTE AS(
SELECT Something
FROM Somewhere
)
INSERT INTO Destination
SELECT *
FROM CTE;
May 2, 2016 at 2:12 pm
I understood this a little different from Smendle.
WITH CTE AS(
SELECT *,
ROW_NUMBER() OVER( PARTITION BY CUST_NUMBER, CAST(CASH_DRWR_DATE AS...
May 2, 2016 at 12:59 pm
Did you modify the report? Or just the call?
May 2, 2016 at 10:43 am
Viewing 15 posts - 2,911 through 2,925 (of 8,731 total)