IN THIS CHAPTER
The discussion of database and table structure in Chapter 1 demonstrated how to create a database by using VB.NET and SQL Server. In this chapter we're concerned with manipulating data in tables and creating and changing the structure of tables by using Structured Query Language (SQL). SQL queries give you the ability to retrieve records from a database table, match related data in multiple tables, and manipulate the structure of databases. SQL queries are also used when you manipulate databases in code. SQL is a standard way of manipulating databases. It's implemented in various forms in many relational database systems, including Microsoft Access and SQL Server, and systems provided by other vendors such as Oracle and IBM. (In fact, IBM gets the credit for inventing SQL.) Generally, SQL is used for creating queries that extract data from databases, although a large subset of SQL commands perform other functions on databases, such as creating tables and fields. Generally, SQL commands fall into two categories:
In this chapter we demonstrate how to use both kinds of commands. |