All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sql.dql.select_order_by.xml Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<sql-cases>
    <sql-case id="assertSelectWithOrderBy" value="SELECT * FROM t_order o ORDER BY o.order_id, 2 DESC" />
    <sql-case id="assertSelectWithOrderByForIndex" value="SELECT i.* FROM t_order o, t_order_item i WHERE o.order_id = i.order_id AND o.status = 'init' ORDER BY o.order_id DESC, 1" />
    <sql-case id="assertSelectWithOrderByForAlias" value="SELECT o.order_id as gen_order_id_ FROM t_order o ORDER BY o.order_id" />
    <sql-case id="assertSelectWithOrderByForDate" value="SELECT i.* FROM t_order o, t_order_item i WHERE o.order_id = i.order_id AND o.status = 'init' ORDER BY i.c_date DESC, o.order_id DESC, i.item_id" />
    <sql-case id="assertSelectWithOrderByForNullsFirst" value="SELECT o.order_id as gen_order_id_ FROM t_order o ORDER BY o.order_id NULLS FIRST" db-types="Oracle" />
    <sql-case id="assertSelectWithOrderByForNullsLast" value="SELECT o.order_id as gen_order_id_ FROM t_order o ORDER BY o.order_id ASC NULLS LAST" db-types="Oracle" />
</sql-cases>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy