Viewing 15 posts - 1,951 through 1,965 (of 2,171 total)
You are welcome!
I am satisfied you liked the article. I really struggled to keep it simple and consise. And as you write, my purpose was to give away the base...
July 17, 2006 at 2:14 pm
The posted query can't be the complete query, right?
July 16, 2006 at 3:56 pm
Use this function for very simple encryption/decryption
CREATE FUNCTION dbo.fnSimpleEncDec ( @StringText VARCHAR(8000), @PasswordCharacter CHAR(1) ) RETURNS VARCHAR(8000) AS BEGIN DECLARE @Index SMALLINT, @ReturnText VARCHAR(8000) SELECT@Index = DATALENGTH(@StringText), @ReturnText =...
July 16, 2006 at 3:43 pm
You are missing the ItemType in your table definitions. Also you have renamed changeddate to balchangeddate in the query.
With the expected sample data above, what...
July 13, 2006 at 2:34 pm
No, it is not difficult at all.
I don't like subqueries much (like SQLZ's solution which do the job), because they take too much time to execute.
Derived tables however I like...
July 13, 2006 at 12:30 pm
If you only want unique Voyage_ID, this is the query to use
SELECT MAX(Voyage_ID) Voyage_ID -- Or MIN if you prefer
FROM MyTable
GROUP BY PlateNumber,
StartDate
July 13, 2006 at 7:49 am
SELECT z.Voyage_ID,
myt.PlateNumber,
myt.StartDate
FROM (
SELECT MAX(Voyage_ID) Voyage_ID -- Or MIN if you prefer
FROM MyTable
GROUP BY PlateNumber,
StartDate
) z
INNER JOIN MyTable myt ON myt.Voyage_ID = z.Voyage_ID
July 13, 2006 at 7:46 am
Maybe you can provide us with some additional information such as the real error message you get, and the real query?
July 13, 2006 at 4:19 am
First learn about arrays and list queries at http://sommarskog.se/arrays-in-sql.html and then realize that you are sending a lot of parameters to the stored procedure, instead of the intended array.
Remove all '...
July 11, 2006 at 1:50 pm
How do you pass the string to the stored procedure? Via ADO Command Object?
July 11, 2006 at 12:01 pm
And those financial fiscal year intervals are..?
July 11, 2006 at 11:58 am
We can't see your pictures since they are stored on your hard drive C:
Upload you pictures to a public web site (where we have access to read) and change the...
July 11, 2006 at 12:08 am
-- prepare test data
declare @test-2 table (SKU int, Status varchar(4), dt datetime, Warehouse varchar(2))
insert @test-2
select 111111, 'Sale', '1/1/2006', 'NY' union all
select 111111, 'Sale', '1/1/2006', 'TX' union...
July 10, 2006 at 12:43 pm
Viewing 15 posts - 1,951 through 1,965 (of 2,171 total)