AllExperts > Experts 
Search      

Database Programming

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Database Programming Answers
Question Library

Ask a question about Database Programming
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Marty Landman
Expertise
Database installation, analysis & design and programming questions.

Experience
Have done application programming as well as some installation and administration mostly with MySQL for web servers and site development and also with IMS and DB2 on legacy systems in the past.

Education/Credentials
MS in computer science.

 
   

You are here:  Experts > Industry > Data Management > Database Programming > How to write procedure?

Topic: Database Programming



Expert: Marty Landman
Date: 9/13/2006
Subject: How to write procedure?

Question
I need a script for the below raised question or can you give the concept for the below question.
-------------------------

Followup To

Question -
I have a situation where I need to fetch all records from temporary table to permanent table. The record has to move from temp table to permanent table. When we inserting the records in permanent table we use to check for duplicate records. If we found the duplicate records then we need to update the same record. If no duplicate the record has to insert.

Still in detail:
Around 20 columns, 3 columns is PK by checking the 3 columns we need to update rest of the columns in update option.


Answer -
Balaji,

How can I help?


--
Marty Landman, Face 2 Interface Inc.
Free Database Search App:
http://face2interface.com/Products/FormATable.shtml
Web Installed Formmail: http://face2interface.com/formINSTal

Answer
This sounds like a merge application. It's a common problem in computer programming. Suggest begin by writing a simple process description or flowchart or pseudocode - however you like doing your planning stage. Then start implementing slowly, for instance just read the records one by one, printing each to the console for a sample input file and then build up step by step from there.

Let me know if you have more questions.  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.