|
| The SQL- query is the parent of amost search routines in databases. For all of those who don't trust our developer's skills in programming search routines, and who might have fun trying out an sql-query themselves, we left our test-tool from the developing phase simply in the Moodmixer.
|
|
|
| H Warning: Die SQL-Query hasn't got any error checking- in some cases ( ie. if a query uses wrong syntax) the Moodmixer can crash! SQL-queries are done at your own risk!
|
|
|
| The SQL-query can be started via the menu option [Search- SQL-query] .
|
|
|
|
|
|
| The syntax for queries in SQL is as follows:
|
|
|
| Fieldname- condition -value-logical operator
|
|
|
| The following fields and values are availble:
|
|
|
|
|
|
| as condition one can use the normal operators:
|
|
|
| The can be used in strings as well as numeric fields
|
|
|
|
|
| = equals
|
| <> doesn't equal
|
| <= is lower than or equal ( for strings it is higher in the alphabet)
|
| < is lower than
|
| >= is higher than or equal
|
| > is higher
|
|
|
| Only for string entries there are other conditions:
|
|
|
| LIKE equals ( can be used with string and placeholder % )
|
| NOT LIKE doesn't equal ( can be used with string and placeholder % )
|
|
|
| as logical operators there are
|
|
|
| AND both values have to be true at the same time
|
| OR just either of those value has to be true at the same time
|
|
|
| G Attention: AND-combinations have a higher associativity than OR - combinations (as in mathematics the usual precedence rules : multiplication has higher associativity than addition' - in GB: BODMAS ) !
|
|
|
| A SQL-query of our search for christmas titles as in the combined search would look like this:
|
|
|
|
|
|
|
|
| The result displays the same amount of titles !
|
| So , if somebody out there has fun using SQL-queries - go ahead and check if our developers haven't made a mistake in their search routins after all!
|