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 trial

Databases SQL Basics Getting Data from a Database Categorizing Your Output with 'AS'

id column

in an SQL table, is the id column compulsory? What is its role apart from keeping count?

2 Answers

The id column uniquely identifies a record and is used with CRUD and with relations with other tables.

If you build a simple small business in your head you will have to see a small financial database. Inventory, sure. You probably can't help people work at your personal best, that's impossible. Still, I guess ethics does not play into your best I'd compulsion.