SQL has different flavors for different databases. They are mostly pretty simliar. SO a query which works on SQL Server may not work on an Oracle database (although many of them will).
for some good reading material:
Useful Reference Books for SQL Server Professionals faq183-3324
I find O'Reilly books to be some fo the best - they cut to the chase.
Coming from an Access background there are some things you will need to learn that you may not have run across. First Access is both a database engine and a User interface. As such there are things it can do that don't translate well to SQL Server. For instance, You can put the form field in as a parameter in an Acess query, you cannot in SQL Server. You need to make it a variable and then use it as an input value for a stored procedure.
YOu should read about views and stored procedures in BOL. And really get to know the differences.
ALso in Access performance tuning is virtually impossible, but it is an important part of writing SQL for SQL Server. THe databases can be much larger so performance is critical. But don;t worry about this until you get somewhat of a handle on the basic syntax. Just be thinking about it as you go along.
ANother topic to look at right away is the subject of joins. Get to know them, how they work and why and how to properly use them in a statement. If you don;t use joins properly you end up with the wrong result set, something that may be hard to notice when you have 10 million records.
Check out the data types available. Much bad SQl writing can be avoided by using the correct datatypes to begin with.
ANd look up the following types of statements and get to know their most common options especially pay attention to how to use joins in them.
SELECT
DELETE
INSERT
UPDATE
If you learn these four statements backwards and forwards, you can do most of what you need to do in querying a database.
THere is plenty more to learn, but start with that. (And whatever you do, do not waste time learning to do a cursor. They are performance hogs and about 90% of the ones written are unnecessary IMHO.)
Questions about posting. See faq183-874
Click here to
help with Hurricane Relief