Home U.S. Coin Forum

MySQL database for my coins

Does anyone know how to use mySQL? Im in way over my head but I’m curious to see if this will successfully manage my coins. Im pretty sure MySQL is for database admins that work for global companies but I think i should use it for coins so if anyone has tips let me know.

Comments

  • @TomB said:
    I would imagine the overwhelmingly most popular ways to track coins for folks on this forum would be to use an Excel spreadsheet, the PCGS registry or good ol' paper.

    But excel is boring

  • scotty4449scotty4449 Posts: 701 ✭✭✭✭✭

    Yeah, excel would probably be the better choice. Unless you want to spend a lot of time learning programming and database development. I developed a .NET application that reads/writes to a SQL Server database for this, but I also have almost 20 years experience writing applications and developing data models.

  • @scotty4449 i want the challenge, I just don’t know where to start.

  • scotty4449scotty4449 Posts: 701 ✭✭✭✭✭

    Just FYI, when building an application there is "front-end" work, like building a user interface to input/output data, and there is "back-end" work, like building a data model to store your data. MySQL would be the "back-end" part of the application.

  • Yes I know

  • keyman64keyman64 Posts: 15,499 ✭✭✭✭✭

    I've done programming with mySQL and SQL but it has been a while since my peak programming days. Both are used on the backend of websites. For SQL, it would be a .NET site and for mySQL you would most likely be using a PHP website. So, in addition to mySQL, it would be helpful to know web programming and PHP. Get some books and/or let Google be your friend and start your journey down a path of a career change. Lol. Good luck.

    "If it's not fun, it's not worth it." - KeyMan64
    Looking for Top Pop Mercury Dime Varieties & High Grade Mercury Dime Toners. :smile:
  • yosclimberyosclimber Posts: 4,765 ✭✭✭✭✭
    edited August 8, 2022 7:18PM

    MySQL is freeware, so it is often used by beginners for simple stuff.
    I have used it, plus other DBs like PostgreSQL and MonetDB.
    I prefer Excel as well for maintaining various lists of coins.
    You could use both.
    You could enter the data in Excel, then Save As a CSV file, then import that into MySQL.

    If you are looking for a place to start, you can learn SQL for free at:
    https://www.w3schools.com/sql/
    (It's what I did).

    Normally, DBs are good for tables with a very large number of rows,
    and you just want to locate a few of them.
    It's also useful if you have multiple related tables.

    For coins, you could have an inventory of all denominations in a single table.
    I would recommend a "purchase_date" column.
    I'm not sure what you would do with SQL, except maybe to add up how much you have spent?
    You could break that down by denomination using GROUP BY in SQL.

  • semikeycollectorsemikeycollector Posts: 1,013 ✭✭✭✭✭

    Sqlite is even easier to use for small data sets, which fits you.

  • Dave99BDave99B Posts: 8,514 ✭✭✭✭✭

    I developed commercial software for 37 years. Spare yourself a lot of headaches and stick with Excel. Trust me!

    Dave

    Always looking for original, better date VF20-VF35 Barber quarters and halves, and a quality beer.
  • lkeneficlkenefic Posts: 8,160 ✭✭✭✭✭

    Dude! How big is your coin collection that you need a relational database to keep track of it? That's impressive...

    Collecting: Dansco 7070; Middle Date Large Cents (VF-AU); Box of 20;

    Successful BST transactions with: SilverEagles92; Ahrensdad; Smitty; GregHansen; Lablade; Mercury10c; copperflopper; whatsup; KISHU1; scrapman1077, crispy, canadanz, smallchange, robkool, Mission16, ranshdow, ibzman350, Fallguy, Collectorcoins, SurfinxHI, jwitten, Walkerguy21D, dsessom.
  • jesbrokenjesbroken Posts: 9,954 ✭✭✭✭✭
    edited August 8, 2022 10:00PM

    After trying most every software program that has came out over the last 30 computer years, I always come back to Excel. It is so much more powerful than just a spreadsheet. Information galore may be stored within each cubicle with just a mouseover or a click to include photos of your coins. As many as you have space for. No limit to the number of columns or rows. Here's a sample.
    Jim


    When a man who is honestly mistaken hears the truth, he will either quit being mistaken or cease to be honest....Abraham Lincoln

    Patriotism is supporting your country all the time, and your government when it deserves it.....Mark Twain
  • hbarbeehbarbee Posts: 187 ✭✭✭

    You may wish to look into Microsoft Access. It would be a powerful front end tool to meet your needs.

  • jesbrokenjesbroken Posts: 9,954 ✭✭✭✭✭

    Access would require a little education to go along with, whereas Excel is a little more user friendly and tons of easy tutorials available unless you have a good friend to help with learning the basics and specialities of Access. Just an opinion.
    Jim


    When a man who is honestly mistaken hears the truth, he will either quit being mistaken or cease to be honest....Abraham Lincoln

    Patriotism is supporting your country all the time, and your government when it deserves it.....Mark Twain
  • hbarbeehbarbee Posts: 187 ✭✭✭

    I agree that Excel is by far the best approach for something like a coin collection. I mentioned Access since the OP indicated that he wanted to work with a relational database and Access would allow him to create the joins without actually writing SQL.

  • ndeaglesndeagles Posts: 381 ✭✭✭✭

    I am a data architect for my career, unless you want to track millions or billions of records, a SQL DB is overkill for sure. As someone mentioned above, if you really want to learn databases, maybe start with Access, it has an easy to use interface that requires very little programming knowledge, but when you are ready for more advanced coding you can write SQL queries and VBA scripts for automation. You can also build input forms and reports, and it can easily be migrated to a SQL DB later. That said, Excel would be the tool of choice for me, and I have access to all the big players in data today, SQL, MySQL, snowflake, azure, mongo DB, and analytical tools like Python, QlikSense, PowerBI, Tableau, and many other tools.

    That said if you are dead set on SQL, take some free online training, or there are great paid options too, I use DataCamp through my employer

  • @Ikenefic > @lkenefic said:

    Dude! How big is your coin collection that you need a relational database to keep track of it? That's impressive...

    It's really not that big I'm just bored... I have nothing better to do so why not attempt to manage a database that massive corporations use to store countless records :)

  • @jesbroken said:
    After trying most every software program that has came out over the last 30 computer years, I always come back to Excel. It is so much more powerful than just a spreadsheet. Information galore may be stored within each cubicle with just a mouseover or a click to include photos of your coins. As many as you have space for. No limit to the number of columns or rows. Here's a sample.
    Jim


    I had no idea that excel could do that! I thought it was just a spreadsheet that simply had rows and columns.

  • @hbarbee said:
    You may wish to look into Microsoft Access. It would be a powerful front end tool to meet your needs.

    I'm going to try that out, and if all else fails I will go back to excel.

  • ndeaglesndeagles Posts: 381 ✭✭✭✭

    @FishtailApple12 said:

    I had no idea that excel could do that! I thought it was just a spreadsheet that simply had rows and columns.

    If you learn VBA, Excel can do almost anything you can program. I have developed several full blown applications based in excel. If you build that SQL skillset it's highly valued and a marketable skill!

  • jesbrokenjesbroken Posts: 9,954 ✭✭✭✭✭

    Yes, VBA is definitely a benefit, but is not necessary to build your database, just easier once learned. Not sure what you really have in mind, but like all software it is a tool for specific purposes and not toys. All of these software programs by microsoft and adobe are very deep in their programming and can do far more than the average user even has an idea of.
    Good luck.
    Jim


    When a man who is honestly mistaken hears the truth, he will either quit being mistaken or cease to be honest....Abraham Lincoln

    Patriotism is supporting your country all the time, and your government when it deserves it.....Mark Twain
  • @jesbroken said:
    Yes, VBA is definitely a benefit, but is not necessary to build your database, just easier once learned. Not sure what you really have in mind, but like all software it is a tool for specific purposes and not toys. All of these software programs by microsoft and adobe are very deep in their programming and can do far more than the average user even has an idea of.
    Good luck.
    Jim

    I'm not really sure what I have in mind either, I just want to test out everything and see what works best for me. I think everyone has convinced me to use excel, but where do I start? I'm looking to show an alphanumeric id that I have made myself, the name of the coin, the year, mint mark, comments (grade, anything else I notice about the coin), where and when I received it, and its value.

  • yosclimberyosclimber Posts: 4,765 ✭✭✭✭✭

    Where to start?
    Create a new Excel file.
    In the first row, type the column names that you want, and make them bold.
    Enter one coin per row.
    It's also good to use View / Freeze Panes / Freeze Top Row,
    so that you can always see the column names.

  • lkeneficlkenefic Posts: 8,160 ✭✭✭✭✭

    I use Excel. One workbook with multiple tabs for each set. I keep track of dates, grade, cost, variety, and a notes field too. I've started to hyperlink image files too... very user friendly. IMHO...

    Collecting: Dansco 7070; Middle Date Large Cents (VF-AU); Box of 20;

    Successful BST transactions with: SilverEagles92; Ahrensdad; Smitty; GregHansen; Lablade; Mercury10c; copperflopper; whatsup; KISHU1; scrapman1077, crispy, canadanz, smallchange, robkool, Mission16, ranshdow, ibzman350, Fallguy, Collectorcoins, SurfinxHI, jwitten, Walkerguy21D, dsessom.
  • alefzeroalefzero Posts: 967 ✭✭✭✭✭

    I wrote the whole SSDC Registry in perl and MySQL. It is very easy to work with, powerful, and has a short learning curve. Yes, it is natural for maintaining a catalogue of collections and more. I do everything on command lines and with vi editors. Most people would probably be more comfortable using a GUI interface and it probably has fine tools for producing reports. I really cannot stand GUIs and code builders. I went with portability and open free for the project, which is why it is also hosted on Ubuntu servers. But it comes down to how you want to use your data. Spreadsheets have their limitations but your use might not require more than that.

  • rickoricko Posts: 98,724 ✭✭✭✭✭

    My preference is Excel, which I have used in the past. Plus, my wife teaches it at college level, so if I have a question or get stuck... Voila'... answered or fixed :D Cheers, RickO

  • ElKevvoElKevvo Posts: 4,102 ✭✭✭✭✭

    Yeah Excel is the way to go. And if cost is an issue you could use the always very good Open Office which is free and community supported. Many of the features that were available only in relational databases such as data validation via keys etc. are available in Excel and other spreadsheets now, for example you can pick a coin denomination from a dropdown in Excel vs. typing it in each time etc. Plus you don't need to learn SQL to retrieve your data. I have spent over 3 decades dealing with relational databases starting with Borland Paradox so could design and code a coin collection database in my sleep but prefer Excel for it.

    Whatever your choice good luck and have fun! Always good to learn new things...

    K

    ANA LM
  • lkeneficlkenefic Posts: 8,160 ✭✭✭✭✭

    This is an earlier iteration of an Excel spreadsheet I came up with. It's pretty simple to add columns... I've added a couple extra... one for hyperlinks to image files... Enjoy!

    Collecting: Dansco 7070; Middle Date Large Cents (VF-AU); Box of 20;

    Successful BST transactions with: SilverEagles92; Ahrensdad; Smitty; GregHansen; Lablade; Mercury10c; copperflopper; whatsup; KISHU1; scrapman1077, crispy, canadanz, smallchange, robkool, Mission16, ranshdow, ibzman350, Fallguy, Collectorcoins, SurfinxHI, jwitten, Walkerguy21D, dsessom.
  • ernie11ernie11 Posts: 1,938 ✭✭✭✭✭

    @hbarbee said:
    You may wish to look into Microsoft Access. It would be a powerful front end tool to meet your needs.

    Agreed. I've used MS Access to design a database for my coin inventory, and write queries from the data to summarize, extract, etc. etc. It helps out a lot.

  • I have settled for excel, and it’s basically working how i want it to. I even did some formulas to add all the components of the coin into a long name which I’m very proud of.

    I’m not sure why I went with sql to start, it was very overkill. Anyway, thanks for all the suggestions guys!

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file