Viewing 15 posts - 8,701 through 8,715 (of 8,722 total)
I'm not sure what you're trying to do because there's no cursor in there.
You're updating a table in the worst way possible (well, there might be something worse).
To update the...
July 14, 2012 at 11:56 am
I believe that the correct answer to this question is the most popular answer in this community:
It depends.
Because it depends on the Operating System maximum.
July 13, 2012 at 6:55 am
This would make the trick. But as noted by others, formatting should be done on the front end.
DECLARE@Datedatetime
SET @Date = '20120523 18:03:12.523'
SELECT CONVERT( char(10), @Date, 101) + ' ' +...
July 12, 2012 at 7:47 am
In my experience, Smash would need a slightly different approach if he needs the total due for each contact, because Chris' query will only return the total from one sale.
UPDATE...
July 12, 2012 at 7:15 am
Have you tried a cross join on the same table?
SELECT a.product,
b.product
FROM ProductTable AS a
CROSS JOIN ProductTable AS b
WHERE a.product <> b.product
That will give...
July 10, 2012 at 2:04 pm
As they say, it's not clear to see exactly what's going wrong. But I believe that there's an extra column in your GROUP BY clause (or maybe there's another reason...
July 10, 2012 at 11:29 am
We just made a similar script but focusing on the columns and not using the schemas (as they don't use them in here).
But because we're not dbas and we don't...
July 2, 2012 at 10:04 am
SQLKnowItAll (6/28/2012)
Luis Cazares (6/28/2012)
SELECT DISTINCT y.*
FROM Table x
CROSS APPLY (SELECT TOP 3 * FROM Table y...
June 28, 2012 at 1:06 pm
Will something like this apply? (I'm learning how to use CROSS APPLY :blush: )
SELECT DISTINCT y.*
FROM Table x
CROSS APPLY (SELECT TOP 3 * FROM Table y WHERE x.id =...
June 28, 2012 at 12:56 pm
Do you intend to show the first 3 values on SysCC for every ID?
June 28, 2012 at 12:50 pm
I was tempted with the first answer as it seemed correct. But a little bit of logic indicated me that there's no reason for the database backups to be incomplete...
June 28, 2012 at 7:40 am
As okbangas said, hex is used to represent the information. Your looking at the same thing:
a = 01100001 (binary) = 61 (hex) = 97 (decimal)
So you're looking at the binary...
June 26, 2012 at 7:57 am
My mistake, I meant ORDER BY.
June 19, 2012 at 7:00 pm
peacesells (6/16/2012)
balasach82 (6/16/2012)
Like ...
SELECT F1, F2, F3...
June 19, 2012 at 3:03 pm
Viewing 15 posts - 8,701 through 8,715 (of 8,722 total)