Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Can you design DB for following application? Application ‘expanse planner’
– current functionality only supports adding positive and negative items with
their description. Planned functionality is to be able to filter individual items
by type of record – for example groceries/entertainment. The DB design needs to be
prepared for future extensions.
We expect to have 100thousands of user with 1000 records per user.

What I have tried:

I am not sure of the answer. This is what I tried:

3 tables

customer
---------
id
name

Transaction_Tye
-----------
Trn_type_id
Trn_Type_Name

Transaction
--------------------

Trn_id
id (fk)
Trn_Type_id(fk)
Tran_Description
Trn_Amount
Trn_date

• Enable Table/ Database Compression
• Eliminate index fragmentation each night.
• Update statistics each night, and set Auto Update Statistics for the database to On.
• Back up the transaction log for the database at least once an hour to allow for reuse of the file and limited auto-growth.
• Either conduct full backups nightly, or conduct full backups weekly with nightly differentials.
• Schedule database integrity checks to run weekly because they probably won’t fit into your nightly maintenance window.
• Set all maintenance jobs to send email alerts on completion or failure of each task to more than one person.
Posted
Updated 12-Aug-18 3:57am
v2

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
And if you don't think that "interview questions" are homework, then you are in for a surprise when you end up having to interview applicants!

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
An "expense planner" should be easy; don't know anything about "expanse" planners.

Date
Item Description
Item Type (if you really get ambitious)
Amount
 
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