Viewing 15 posts - 4,816 through 4,830 (of 6,036 total)
Do it right way:
Select
dbo.OffsetCalc(entered_offset,offset1) as Date1,
dbo.OffsetCalc(entered_offset,offset2) as date2,
dateadd(ss,Entered_offset+offset1,'1980-03-01') as realDate1,
dateadd(ss,Entered_offset+offset2,'1980-03-01')as RealDate2,
Sum(dcount) as test_count
from tbl_dummy1
Group by
entered_offset,offset1,offset2
and don't create problems for yourself.
November 8, 2006 at 3:21 am
It's better to have proper database design.
If you don't know in which column to search for a value then you don't have a database, just some mess without any order.
It...
November 8, 2006 at 12:35 am
Can you explain in plain English the logic behind effectivedate and expirydate?
November 7, 2006 at 10:04 pm
Yes. You may forget it's a view and treat it as a table.
The only thing you cannot do is modifying data in view.
November 7, 2006 at 10:00 pm
View is precompiled set of joins.
You may use in your query any subset of column list from the view.
You may apply your parameters in WHERE clause. If there are appropriate indexes on...
November 7, 2006 at 9:30 pm
If it's gonna be "SELECT with joins" you must put it into view.
View is much more effective and much more flexible.
November 7, 2006 at 8:39 pm
Consider using a view instead of SP.
November 7, 2006 at 4:48 pm
That's right.
Look at the data in DHB_service in both tables.
November 7, 2006 at 3:55 pm
UPDATE Table1
SET Col1 = Col3, Col2 = Col4
FROM Table2
WHERE Table2.ColumnX="xx" AND Table1.columnY="yy"
November 7, 2006 at 3:21 pm
Select ISNULL(T1.Date, T2.Date), ISNULL(T1.Biller, T2.Biller), ISNULL(T1.Amount, 0), ISNULL(T2.Lines, 0)
FROM Table1 T1
FULL OUTER JOIN Table2 T2 ON T1.Date = T2.Date and T1.Biller = T2.Biller
November 7, 2006 at 3:11 pm
You can create a job scheduled for the next second which will delete itself after it's completed.
November 7, 2006 at 2:39 pm
What are the datatypes of the clumns:
"Varchar" is not an answer.
November 7, 2006 at 3:56 am
Have you looked at your code??? ![]()
SET @Counter = CHARINDEX('QUOTATION', @UserText) + 16
If there is no word 'QUOTATION' then CHARINDEX = 0,...
November 7, 2006 at 12:19 am
Vijay, you don't know what you are talking about.
Text field takes 16 bytes in every row.
Text itself is not stored in the table pages. There is only pointer to...
November 7, 2006 at 12:05 am
Viewing 15 posts - 4,816 through 4,830 (of 6,036 total)