SQL Basics

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Tutorialized ForumsDatabasesSQL Basics

Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
Unread Tutorialized Forums Sponsor:
Old April 19th, 2018, 02:59 PM
Trims30 Trims30 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
Join Date: Apr 2018
Posts: 0 Trims30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 8 sec
Reputation Power: 0
SQL Multi User Procedures

Im using MS SQL and have multi user question...

I have a Customer Database with Customer Table and Payment Table.
I have two workstations - one for Customer Service and one for payment processing.

Here's a scenario -
1. John Smith calls Customer service to change his address and review Account Balance. Customer Service opens his account, displays his info, enters new street address but does not save changes to Customer Table immediately.

2. In meantime, payment clerk process payment from John Smith and also changes his Phone Number in customer Table, Account Balance and saves it.

3. Now, Customer Service rep saves changes made to Customer Table.

Now here's the issue....
How do we save only changes made (Address) without overwriting any other info for John Smith?

I know we can do Begin Transaction Where Cust='JSmith' and do our changes and COMMIT.

Is there a way in SQL to only update one column (address) for Smith rather than attempt to replace all columns for Smith and overwrite Phone Number and Customer_Account_Balance that was changed by Payment Clerk while Customer data was on screen on Customer Service Terminal?

Looking or suggestions....

Any help is appreciated

Reply With Quote

Viewing: Tutorialized ForumsDatabasesSQL Basics > SQL Multi User Procedures

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap