Thanks for this thread. I was looking for resources to learn SQL as I could do with having more skills when job hunting. What is the normal cost for a microsoft certification? Are there any free certificates?
Honestly, I work with 30 analysts, none of which have any SQL specific qualifications.
The best thing to do is download some free software such as
SSMS, get some sample databases and just start practicing.
You may get an
ERD for the database which shows the tables, keys and the relationships between the tables. This will help you when querying multiple tables.
Learn simple selects, joins first. Learn to put things in transactions for anything that makes changes. A transaction makes the change a temp one until you commit it:
BEGIN TRAN
SQL QUERY THAT CHANGES DATA
-- ROLLBACK
-- COMMIT
PRINT @@TRANCOUNT
-- is a comment
rollback will roll back the change you've just made
commit commits the change
the print shows how many open transactions you have open
Personally, we use Transact SQL (TSQL) at work, there's a few different types so worth seeing what's out there.