Best way to setup this table


I always just use int and varchar for my tables, I know that is bad practice.

Can you please take a look at the screenshot and let me know what the correct 'type' should be on the rows.

Thanks for your help,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
You should use the domains data type of each column.

ID is fine. IP is a 32-bit integer number. It should be stored as such, and not in one formatted string version. Dealer_ID is empty, so it's hard to tell anything about it. Vehicle_ID is alpha-numeric, so VARCHAR is also fine. But I would not use it as key in the model, instead I would use a separate table. For date_time: Is it really a date/time or is it a date only column? When it's a date and time value then use DATETIME, when it's a date value then use DATE or when it's a time only value use TIMESTAMP. See also 11.3.1 The DATE, DATETIME, and TIMESTAMP Types.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
agree with @ste5an
But it seems that its just a date and not date and time
movieprodwAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.