
clause, the program sorts the records according to the values in the first field specified, then, within
that sort, the program sorts the records by the values in the second field specified, and so on. The
following SQL statement uses the ORDER BY clause:
SELECT
MYTABLE.'COMPANY',
MYTABLE.'CITY',
MYTABLE.'STATE'
FROM
'MYTABLE' MYTABLE
ORDER BY
MYTABLE.'STATE' ASC,
MYTABLE.'CITY' ASC
Note:
ASC indicates that the values in the field are sorted in ascending order rather than descending order
(DESC). Ascending order sorts letters from A to Z and numbers from 0 to 9.
23.2.4.6 GROUP BY
The GROUP BY clause retrieves a set of summary data. Instead of retrieving the data itself, GROUP
BY groups the data and summarizes each group with an SQL aggregate function. The server returns
only the summarization information for each group to Crystal Reports.
For example:
SELECT
MYTABLE.'STATE',
MYTABLE.'ZIPCODE',
SUM (MYTABLE.'SALES')
FROM
'MYTABLE' MYTABLE
GROUP BY
MYTABLE.'STATE',
MYTABLE.'ZIPCODE'
23.2.5 Defining an SQL Command
If the database you are using supports a query language such as SQL, you can write your own command
which will be represented in Crystal Reports as a Table object. This allows database users complete
control of the data processing that gets pushed down to the database server. A user who has experience
with databases and the SQL language can write a highly optimized command that can considerably
reduce the size of the set of data returned from the server.
You can write your own command by using the "Add Command" node in the "Database Expert" to
create a virtual table which will represent the results of processing the command. Once the command
has been created, you can store it in the SAP BusinessObjects Enterprise Repository so that it can be
shared between many users.
2012-03-14514
Understanding Databases
What are the upsides of contracting skilled web optimization organizations? Expert search marketing companies utilize teams of experts focused on elevating your site's content for browsing engines. This encompasses researchingsearch phrases, adjusting on site characteristics, and managing off-domain enhancements. Moreover, these firms monitor adjustment in from Google parameters and refresh the text on your website as needed. This saves both you your time and your workers from unwanted a
Securing the security of your home is essential in today's unsettled times. Among the best ways to safeguard your belongings and peace of mind is by committing in a trustworthy safe. Regardless of whether you're securing money, important documents, or precious heirlooms, a safe gives a protected repository solution. Regarding selecting the right safe for your house, there are several elements to consider. Above all, assess your safety requirements. Determine what items you plan to store in
Arranging an open-air wedding in Phenix and anxious about the unpredictable weather? Don't let Mother Nature rain on your parade – truly! At [Event Rentals Phoenix], we provide stunning wedding tent rentals that will ensure your distinctive day goes off without an hitch. Our wedding tent rentals are created to supply both charm and functionality. Say "I do" under tha elegant canopy of one of our tents, surrounded by your loved ones and tha breathtaking scenery of Pheonix. With one assortmen
In both personal and professional situations, encountering issues is unavoidable. However, mastering productive trouble-shooting techniques is key for triumphing over hurdles and accomplishing success. In this piece, we delve into the strategies and methods for efficiently addressing dilemmas. From analytical thinking to creative brainstorming, we look into various approaches that can help individuals tackle challenges with certainty and accuracy. Effective challenge solving begins wit
Hello, im noob :)