Click here to Skip to main content
15,890,579 members

Comments by Shivam Chinna 2022 (Top 7 by date)

Shivam Chinna 2022 21-Jul-22 4:40am View    
should we use cursors to update the result set for by the above-mentioned update trigger requirement?
Shivam Chinna 2022 21-Jul-22 3:24am View    
select TransactionNumber, acid , tm.USERID,designation ,count(*) as nooftrans from TransactionMaster tm join usermaster um
on tm.userid = um.USERID
where datediff(dd,dot,getdate()) = 0 and um.designation = 'T'
group by TransactionNumber, ACID,tm.USERID ,Designation
order by ACID

Is this query correct to get whether the transaction was done by the teller or not?
Shivam Chinna 2022 21-Jul-22 2:24am View    
This is not an assignment for grades. I'm a freelancer from a non-IT background learning SQL server for free from SQL server videos shared by my friend because I can't afford the training fee. in those videos, triggers are missing, and now facing trouble implementing them practically. Just learning SQL to upgrade my skills for better opportunities. Any help would be much appreciated.
Shivam Chinna 2022 19-Jul-22 7:50am View    
No worries CHill60 I got it. Thanks for your help I'm able to get my desired output now with your idea. Thanks a lot, you made my day.
Shivam Chinna 2022 19-Jul-22 6:57am View    
Why I'm using a while loop is to print each row value by storing each row value into variables and then printing them in a report format. without the while loop how can I print the resultset from the temp table. You can see I'm iterating while loop until the @count times i.e., no of rows fetched and each row I'm storing and printing for output.