© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
N0mlss

❔ SQL: Shared data. One or two table

Hey, im currently creating a database and I need to store the information about vehicles.
The vehicles can be bought or rented. Obviously depending on the type of financing, one will need some fields while the other would need other fields.

That being said, most information are the same no matter the financing type such as the model, the year etc.

My question is: Should I create two table to store the information to avoid having row with empty data in my table or should i not care and just do one table?

PS: For bought vehicles we are talking about 10 fields more or less and rented one about 20 fields
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Enum or SQL Table?
C#CC# / help
4y ago
❔ Getting SQL data from a relationship table
C#CC# / help
3y ago
✅ Csharp returns nothing while reading SQL data table
C#CC# / help
4y ago
❔ SQL Table to Object
C#CC# / help
3y ago