Viewing 15 posts - 31 through 45 (of 90 total)
Hello Luis, I did understand your point and I also want to add that the use of a variable was just at the beginning of the stored procedure, and that...
June 24, 2016 at 8:37 am
That is correct too. I am aware now that SQL 2012, which is the version I am using, supports IIF expression.
June 23, 2016 at 11:21 am
I tried to do the following down below, but it is not working since it returns nothing:
/*
EXEC Test_String 'VQAL1-SQ994.1'
*/
Stored Procedure contents:
ALTER PROCEDURE [dbo].[Test_String] (@ProductID VARCHAR(25))
AS
BEGIN
DECLARE...
June 22, 2016 at 1:06 pm
Thank you for your solution Luis.
I have a question. I need to replace the VB code with SQL and put it in a stored procedure that will take in...
June 22, 2016 at 12:53 pm
The current output record for type Cash Management Services and sub type One Card is the one actual record, all the other records for type Cash Management Services, are a...
November 25, 2015 at 8:03 am
I changed my original query to use 23:59:59, and that also gave me the missing record back.
May 26, 2015 at 10:53 am
How would I need to change the query in order to be able and use a date format like MM/DD/YYYY?
Many thanks.
May 26, 2015 at 10:37 am
This did the trick for me:
SELECT orderno
FROM _order
WHERE CAST(FLOOR(CAST(order_date AS FLOAT)) AS DATETIME)
BETWEEN CAST('5/14/2015' AS DATETIME)
AND CAST('5/15/2015' AS DATETIME)
ORDER BY order_date asc
The date will come...
May 26, 2015 at 8:54 am
I think this is the right way?:
UPDATE a
SET [Talks] = b.found_talks_type
FROM [dbo].[mp_sessions_teamcouples] a
INNER JOIN @Find_Missing_Talks b
ON a.sessionid = b.sessionid
AND a.coupleid = b.coupleid
October 6, 2014 at 10:59 pm
Hi.
I am not an expert, but do you need to use the single quotes around the column names in your case expression?
Good luck 🙂
August 14, 2014 at 9:59 am
Thank you guys. Both solutions gave me clarity to where I was making a mistake.
July 24, 2014 at 10:03 am
I am adding some test data. I hope this helps.
July 15, 2014 at 2:17 pm
I need to be able to group by each item
Something like:
current sales quote current...
July 15, 2014 at 1:53 pm
Viewing 15 posts - 31 through 45 (of 90 total)