Well, if you happen to be using Sql Server you can do that sort of thing in T-Sql. In Oracle, you can also accomplish the same thing using pl/sql. Either way i'd do it in a stored ...
The Structured Query Language, used in the MySQL database, has great flexibility for selecting subsets of data from database tables. SQL's SELECT statement shows data from whole tables or any subset ...