Viewing 15 posts - 16 through 30 (of 44 total)
another way to go
DECLARE @t TABLE (price MONEY)
INSERT @t
SELECT 5 UNION ALL
SELECT 3 UNION ALL
SELECT...
June 16, 2008 at 10:37 am
insert A
select Employee, Phone, 5 from A where ID1=2
union all select Employee, Phone, 6 from A where ID1=2
delete from A where ID1=2
June 16, 2008 at 9:58 am
declare @t table(Customer int, Region varchar(2), Quarter tinyint, Sales money)
declare @t2 table(Customer int, Region varchar(2), Quarter tinyint, Sales money)
insert @t
select 123 , 'ON'...
June 9, 2008 at 8:52 am
Another solution:
SELECT a.Course, a.Grade,
COUNT(a.Grade) as 'TotalGrades',
pt= convert(varchar(50),convert(int, COUNT(a.Grade)*100/w.cCount)) + '%'
FROM Grades a
inner join
(
select cCount=count(course), course from Grades group by course
) w on w.Course=a.course
GROUP BY a.Course, a.Grade, w.cCount
order by a.Course,...
June 4, 2008 at 12:45 pm
Thank you.
March 27, 2008 at 2:13 pm
Thank you, everybody.
March 20, 2008 at 12:16 pm
Trader Sam (3/20/2008)
Is this...
March 20, 2008 at 11:16 am
Sergiy (12/6/2007)
And, how do you think it is sorted?
I agree with Sergiy. I think about the physical order data appears in the table.
December 6, 2007 at 2:50 pm
Vladan (11/22/2007)
If there is a possibility of multiple occurence of the same "sequence" value for one cuslink (shouldn't be, if that...
December 6, 2007 at 7:43 am
Storing a "modified date" of a stored procedure in sysobjects or somewhere else in SQL Server is helpful if SQL Server 2000 did that. And I cannot understand the reason as your word...
September 4, 2007 at 1:23 pm
I am using EM's diagram GUIs to add tables to my db schema diagram, and when I add an extra table the the diagram, I will see a table list...
August 29, 2007 at 2:40 pm
Thank all of you for your posts. "8 original bits are split into 2 group of four, then the left most 4 original are put in the left most. The other...
August 16, 2007 at 6:41 am
Lowell,
Thanks for your post. I agree with you about about the normal representation of binaries of 0 and 1. But if you double-read the business requirements, you will see...
August 15, 2007 at 1:16 pm
Shawn,
Thanks for your great hint. I add the GO statement after each SP and the batch script works fine.
Johnsql
July 30, 2007 at 9:07 am
Viewing 15 posts - 16 through 30 (of 44 total)