Viewing 15 posts - 5,101 through 5,115 (of 6,036 total)
"TOP 11000" must prevent server from death. ![]()
September 14, 2006 at 7:00 am
Why these?
Why not those:
20002 0
NULL 1
20003 0
?
What is defining the order of rows in your table?
September 14, 2006 at 6:54 am
It's better to do it in function which will use a loop to reach the end of that chain.
Otherwise you can never guarantee that you are using enough of joins.
September 14, 2006 at 6:36 am
I guess your ID in table NBillingF is not actually ID, that's why join on this ID brings a lot of duplications and wrong value as a result.
Let's simplify Marino's...
September 14, 2006 at 6:16 am
Marino, there is no need for ISNULLs because you have already eliminated all NULLs by "> 0" and "< 0" conditions.
Vandy, what's not working?
Query from Marino seems OK.
I don't...
September 13, 2006 at 5:26 am
I believe your question was answered here:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=286040#bm286129
Even name of topics are quite similar. ![]()
September 13, 2006 at 5:07 am
I don't see what's wrong with database design. Whoever did it he did it right.
But I cannot see in those tables what does it mean "the customer is winning".
Can you...
September 12, 2006 at 3:51 pm
Did you notice function STR in my post?
Did you bother to open BOL and read couple of words about this function?
declare @f float
SET @f = 38966.419371064818
select STR(@F, 18,...
September 7, 2006 at 8:54 pm
Did you read every post in this topic?
September 7, 2006 at 7:08 pm
Probably this may help:
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'TimeSlotStart')
DROP FUNCTION TimeSlotStart
GO
CREATE FUNCTION TimeSlotStart
(@CurrentTime datetime, @SlotDuration datetime)
RETURNS datetime
AS
BEGIN
DECLARE @HH float
select @HH = cast(@SlotDuration as float)
RETURN CAST(FLOOR(cast(@CurrentTime...
September 7, 2006 at 12:37 am
getdate() IS datetime by definition. So, you don't need to cast it as datetime.
To get varchar use this:
SELECT STR(CAST(getdate() AS float), 12, 4)
September 6, 2006 at 7:45 pm
Answered in parallel topic.
September 5, 2006 at 10:43 pm
CREATE TABLE dbo.tmp_ABC
(
RecID int NOT NULL IDENTITY (1, 1),
Name varchar(100) NOT NULL,
Address varchar(100) NOT NULL
)
SET IDENTITY_INSERT dbo.tmp_ABC ON
INTO dbo.Tmp_ABC
(RecID , Name , Address )
SELECT RecID ,...
September 5, 2006 at 10:41 pm
Viewing 15 posts - 5,101 through 5,115 (of 6,036 total)