Viewing 15 posts - 271 through 285 (of 366 total)
If you are setting the default date in enterprise manager try using ("2005-1-1").
HTH Mike
June 4, 2005 at 6:57 am
Hi the problem is that you have extra spaces to the right of good. Use rtrim. HTH Mike
declare @word char(50)
declare @anotherword char(50)
set @word ='good'
set @anotherword ='apple'
Set
print rtrim(@word) + ltrim(@anotherword)
/*...
June 4, 2005 at 6:35 am
Hi the following client side code (vb 6.0) will give you the results you want. Another thought is that since you must use row scans if you have a large...
June 4, 2005 at 5:56 am
Lost another post and I have to run but
Try this to get rid of exact matches first.
HTH Mike
DECLARE payments_cursor cursor FOR
SELECT *
FROM PAYMENTS P
INNER JOIN Bills b
on b.amount =...
May 31, 2005 at 5:43 am
It ate my post. The logic is not to bad you can use a bubble sort to find the values that are equal to...
May 30, 2005 at 11:01 pm
Question does the text file contain both new bills, and payments or just payments? What are the business rules for excess amounts since you do not record part payments (do...
May 29, 2005 at 12:52 pm
Hi I can not reproduce your problem. checking in QA I get the same execution plans for both queries.
Mike
IF Object_ID('TempDb..#T1') >0
DROP TABLE #T1
IF Object_ID('TempDb..#T2') > 0
DROP TABLE #T2
IF Object_ID('TempDb..#T3')...
May 28, 2005 at 7:31 am
This query will give you a running total of a customers account
HTH Mike
SELECT b.Account As Account#,
Sum(DISTINCT b.Amount) as "Total Billed",
Sum(DISTINCT P.Amount) AS "Total Payments",
(Sum(DISTINCT b.Amount) - Sum(DISTINCT P.Amount))...
May 27, 2005 at 8:40 pm
A couple of questions. Your example assumes that a payment will always equal a bill or the sum of several bills. What happens when a customer makes a partial payment....
May 27, 2005 at 7:57 pm
Raymond a quick question if the data is being updated daily as the rows are input then the Date field will be the current date and time that the row was...
May 27, 2005 at 9:04 am
I usually read all the post before adding to a thread. In this case I started developing a query and was interupted. Then when posting just glanced at Remi's Solution saw the ref...
May 27, 2005 at 8:43 am
"Like" will enable you to sort the data. Notice that like it is not case sensitive in finding strings.
HTH Mike
DROP TABLE #Test
IF Object_ID('TempDB...#Test')>0
DROP TABLE #Test
CREATE TABLE #Test
(
N VarChar(50)
)
INSERT INTO #Test...
May 27, 2005 at 5:32 am
Dan your
SELECT *
FROM Sales
WHERE CAST(Amount AS int) = Amount does not return the correct data. Try the following
HTH Mike
CREATE TABLE #Test
(
pk int identity(1,1),
DecValue decimal(5,2)
)
INSERT INTO #Test VALUES(12.00)--HERE
INSERT INTO #Test...
May 26, 2005 at 8:12 pm
Place the declare statement after the AS
CREATE PROCEDURE [dbo].[acsp_AC_PUNCHIMPORT_TO_AC_PUNCHIMPORT_TEMP]
AS
DECLARE @maxPunchID int
HTH Mike
May 26, 2005 at 5:36 pm
"Gee Joe do you mean that change is the only constant in the universe. What a thought.
Mike
May 24, 2005 at 3:12 pm
Viewing 15 posts - 271 through 285 (of 366 total)