Click here to Skip to main content
15,898,817 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
invoice header table in the database
Posted
Comments
[no name] 21-Aug-12 7:39am    
Which ever ones you want them to be.
bbirajdar 21-Aug-12 10:33am    
whichever you choose..

Probably you need following fields for a typical invoice table but rest depends on your requirement..

invoice_id (PK)
invoice_no
invoice_date
period_start_date
period_end_date
status
 
Share this answer
 
If you mean what columns should be included in an invoice header table, it depends on the requirements as others have already said. To have ideas how data can be normalized and divided, perhaps the AdventureWorks[^] samples would be good learning material.

On the other hand, if you mean how you can find out the columns of an existing table in the database, you can query for example sys.columns[^] or use sp_help[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900