Viewing 15 posts - 24,256 through 24,270 (of 59,102 total)
You've marked your own answer as the "worked for you" answer but it's not the correct answer. You don't need a cursor for this at all. The following...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:02 am
adhamihab (3/2/2014)
USE northwind
SELECT max(OrderID) as OrderID
FROM Orders join Employees
on Orders.EmployeeID = Employees.EmployeeID
...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 10:51 am
Jake Shelton (3/2/2014)
BTW - we are...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 9:35 am
What is the datatype of the DATE column?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2014 at 7:39 pm
born2achieve (2/28/2014)
almost 25 columns i need to track and put it in audit table. any suggestions please
Post the CREATE TABLE statement for the audit table, please. I need to...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2014 at 7:33 pm
manavairajan (3/1/2014)
I have two tables and similar column like (year, week, day, and shifts, Totalvalue)
Table 1 having full data of 2013 but Table2 few weeks of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2014 at 7:28 pm
caippers (3/1/2014)
I believe what I have is to take the first character of the string ensure...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2014 at 7:21 pm
Yes, there are many other possible ways that use things like Tally Tables, cascading CTEs, etc, but... none of them are faster than what you have. This is one...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2014 at 2:38 pm
I believe that you shouldn't stop counting days just because of the latest location. I believe that you need to consider how long something has been at the latest...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2014 at 10:18 pm
Lempster (2/27/2014)
Jeff, I don't see it as much of...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2014 at 8:55 pm
sqldriver (2/28/2014)
Jeff Moden (2/2/2014)
sqldriver (2/1/2014)
Yes, Jeff, now give me something to spend all this DBA money on that wasn't bottled and corked by a guy in a kilt.
BWAAA-HAAAA!!!!! I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2014 at 8:48 pm
Lizzie (2/28/2014)
I agree with you about the password, but my manager is trying the diplomatic approach first, i.e. finding out...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2014 at 7:43 am
pmadhavapeddi22 (2/27/2014)
...but I need everything in a single query.
Why?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2014 at 7:08 am
Thanks for the feedback. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2014 at 4:01 pm
muthyala_51 (2/27/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2014 at 3:47 pm
Viewing 15 posts - 24,256 through 24,270 (of 59,102 total)