Viewing 11 posts - 1 through 11 (of 11 total)
Hi Phil,
I am sorry if my question/code created a confusion. I am putting the entire code below. Could you please look at that:
***********************************************************************
DECLARE @db_name VARCHAR(100), @qry VARCHAR(500)
Declare...
June 18, 2020 at 1:23 pm
The problem with this is, it comes out of the cursor and do not continue Fetch statement.
June 17, 2020 at 8:58 pm
Hi Phil,
Below is my code: @db_name is coming from the cursor which is fetching the db_name from master database.
SET @qry = 'SET NOCOUNT ON Declare @days INT BEGIN TRY select...
June 17, 2020 at 7:53 pm
Hi Phil,
Thanks. But, it is still showing errors.
June 17, 2020 at 7:48 pm
Hi Phir,
Thanks for the response. I will try your suggestion.
But, also want to check if there is a way to ignore the errors and stop showing error message?
I have to...
June 17, 2020 at 4:45 pm
Yes first one worked for me.
Thanks alot for your help.
August 29, 2016 at 11:33 am
I am sorry actually it has one-to-many relationship between Sale and Exp.
The main problem I am facing is using group by with update statement.
I hope it make sense to you.
Thanks...
August 29, 2016 at 9:20 am
Thanks for your quick response.
Please find my answers:
Which table does the ordertype column live in? Exp
Are you summing the sale column from the sale table, or does Exp have a...
August 29, 2016 at 8:57 am
Thanks.
So, please let me the solution for this.
Thanks in advance.
Afreen
January 23, 2013 at 3:24 pm
For example:
select sum(total) as NetTotal, NetTotal/100 * 3.2 Gross from abc group by a
I want to use the NetToal to calculate the other column
January 23, 2013 at 2:11 pm
Viewing 11 posts - 1 through 11 (of 11 total)