Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbiel Ortega
2,171 PointsHow to Practice SQL commands and how to work with DataBases at home?
I wanted to know if there's any way I can practice what I'm learning at home without having to open a workshop here on treehouse. Is there any way I can practice on the side and I don't know maybe make my own database at home?
2 Answers
Robert Stefanic
35,170 PointsIt depends on what your goal is. Are you just trying to practice SQL for creating web apps? Or are you trying to practice running a server like a DBA and focus on databasing? If it's just to practice SQL, download SQLite. If you're interested in really digging into databases, then download either MySQL, SQL Server, or PostgreSQL and practice setting it up. Just pick one that sticks out to you, and go with it.
If you are just wanting to practice simple queries, then model a business problem (think, for example, a warehouse that may have tons of inventory and customers with login names, or a hotel that has to keep track of guests, rooms, staff, and so on), and try to model the data for that problem. Once you have 6-7 tables of information, try to practice querying information across those tables. Whenever you're working with Databases, always think about how you want the data returned (i.e. the format, the order that the information's displayed in, etc.).
If you're really digging into databases, then practice what I just mentioned, but also look into setting up different roles for different users. For example, if you were to go with the hotel model, you'd want to have different DB accounts that have access to different tables. A manager may have access to the table with all of the employee's salaries, while the staff would not have access to that information.
Codi Hasbrouck
41 PointsMore details for syntax flexibility, gives you extra control. What you see fit is actually probably an access debate. If you need a stream, pipe, request, get, download. Like customized application wizards, bulk bloat ware that you need to clean on computers you don't administer.
Abiel Ortega
2,171 PointsAbiel Ortega
2,171 PointsOK thank you so much for this. I ended up downloading MySQL on my mac and it's running the MySQL Server and to interact with it I'm simply using my terminal logging in and using my password for it and from there using the commands and making the databases to practice.