Hi Alicia
No, this is not a basic question and is one that continues to trip up even the most experienced consultant.
The answer is that 'it depends'
It depends on what your contract says. Hopefully this is all spelled out in the consulting contract.
You really don't want to be in the business of being a data repository for all of the consulting jobs that you may ever have.
Also, depending on the industry that you are or may be working in, the client may clearly own the data, the coding, the analysis, etc.
and you will find that you will be required to attest that you have returned or obliterated all copies of data and coding in any form.
Again, get it clear in the contract.
Many grants, contracts lay out what must be done with the data, how long it is to be stored, in what form, how or if it is
required to be released at some later point, etc. This is especially true if the base contract/grant is a Federal one.
So always ask, where is the money coming from to support this project. Also ask if there are grant/contract requirements
for data. The PI may not always understand these issues.
There is also the issue of coding and who 'owns' the code. If the task requires unique coding, who owns it.
What does the contract say?
Also as you code and develop or implement your data bases it is imperative (can't say strongly enough) to document, document
document. Clear and comprehensive documentation is a pain to do. However, I can't tell you the number of times that
I have been saved by clear documentation when a client returns a year or two after the initial project or publication and says, OK
now I want to reuse the data and reformat some of the analyses for a new purpose. Without the clear coding I would likely
never remember exactly what was done.
Get it in writing, make it part of your routine in accepting a task or job.
Remember, get it in writing. A verbal agreement is not work the paper it's printed on.....
Even the 'smallest' job should at least have a memo of understanding.
Good luck and welcome to the jungle :-)
-------------------------------------------
William Grant
Professor, Emergency Medicine
SUNY Upstate Medical University
-------------------------------------------