TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
carlo gino catapang
NA
11
1k
HOW: create a MySQL DB relationship for specific function
Sep 23 2013 11:00 AM
I have a database named DBproducts that contains two tables, tblProductDescription(fields = ProductCode <-- p_key,ProductName,Price,Quantity) and tblIndividualProduct(fields = BarCode <-- p_key,ExpirationDate). My target output is that when I create a new item in the tblIndividualProduct the quantity in the tblProductDescription automatically incremented if they have the same ProductCode. And the value of quantity depends on how many entries the same ProductCode is stored in tblIndividualProduct. How can I create that relationship like that between the two tables. thanks in advance
Reply
Answers (
0
)
how to reduce in sqlserver
Why dosent my OR operator dont work..