Newer
Older
sqlmarker / UsedCars / Test_classes / Sale / UsedCars_Fixture_Sale.xml.in
<dataset>
  <table name="car">
    <column>vin</column>
    <column>registration</column>
    <column>make</column>
    <column>model</column>
    <column>year</column>
    <column>colour</column>
    <column>odometer</column>
    <column>first_registered</column>
    <column>last_serviced</column>
    <column>price</column>
    <column>flat_rate</column>
    <row>
      <value>7A8DH1E0701123456</value>
      <value>NFO214</value>
      <value>Holden</value>
      <value>Barina</value>
      <value>1999</value>
      <value>Green</value>
      <value>225271.8</value>
      <value>23-MAY-1999</value>
      <value>18-NOV-2013</value>
      <value>2999</value>
      <value>20</value>
    </row>
    <row>
      <value>7A8DH1E0701654321</value>
      <value>DEF234</value>
      <value>Subaru</value>
      <value>Impreza</value>
      <value>2004</value>
      <value>Silver</value>
      <value>95431.5</value>
      <value>06-AUG-2004</value>
      <value />
      <value>11995</value>
      <value>50</value>
    </row>
    <row>
      <value>7A8DH1E0701341652</value>
      <value>GEF20</value>
      <value>BMW</value>
      <value>M3</value>
      <value>2008</value>
      <value>Black</value>
      <value>45500</value>
      <value>14-APR-2008</value>
      <value>10-FEB-2014</value>
      <value>45995</value>
      <value>200</value>
    </row>
  </table>
  <table name="customer">
    <column>customer_id</column>
    <column>firstname</column>
    <column>lastname</column>
    <column>address</column>
    <column>phone</column>
    <column>email</column>
    <column>credit_rating</column>
    <column>comments</column>
    <row>
      <value>234567</value>
      <value>Russell</value>
      <value>Sang</value>
      <value>74 Patmos Avenue</value>
      <value>02139414116</value>
      <value>rsang@example.nz</value>
      <value>A</value>
      <value>A-grade customer.</value>
    </row>
    <row>
      <value>234569</value>
      <value>Helen</value>
      <value>Patrick</value>
      <value>28 Cherry Drive</value>
      <value>02137254888</value>
      <value>helen_patrick@foo.bar.nz</value>
      <value>D</value>
      <value />
    </row>
    <row>
      <value>234568</value>
      <value>Stephanie</value>
      <value>Torrence</value>
      <value>21 Elwyn Crescent</value>
      <value>02737076169</value>
      <value>stef_1234@example.com</value>
      <value />
      <value>Has she bought anything yet?</value>
    </row>
    <row>
      <value>234570</value>
      <value>Clifford</value>
      <value>Johns</value>
      <value>45 Pine Hill Road</value>
      <value>02136507402</value>
      <value>mobycat@frabjous.co.nz</value>
      <value>C</value>
      <value>Talks a lot.</value>
    </row>
    <row>
      <value>234571</value>
      <value>William</value>
      <value>Charles</value>
      <value>34 Scobie Road</value>
      <value>02232104933</value>
      <value />
      <value>B</value>
      <value />
    </row>
  </table>
  <table name="staff">
    <column>staff_id</column>
    <column>firstname</column>
    <column>lastname</column>
    <column>address</column>
    <column>phone</column>
    <column>date_hired</column>
    <column>date_of_birth</column>
    <row>
      <value>4567</value>
      <value>Sang</value>
      <value>Dyson</value>
      <value>74 Patmos Avenue</value>
      <value>02139414116</value>
      <value>05-DEC-2008</value>
      <value>17-JUN-1979</value>
    </row>
    <row>
      <value>4569</value>
      <value>Patricia</value>
      <value>Kwak</value>
      <value>28 Cherry Drive</value>
      <value>02137254888</value>
      <value>23-APR-2012</value>
      <value>08-AUG-1967</value>
    </row>
    <row>
      <value>4568</value>
      <value>Teresa</value>
      <value>Soto</value>
      <value>21 Elwyn Crescent</value>
      <value>02737076169</value>
      <value>04-APR-2005</value>
      <value>25-DEC-1986</value>
    </row>
    <row>
      <value>4570</value>
      <value>John</value>
      <value>Reed</value>
      <value>45 Pine Hill Road</value>
      <value>02136507402</value>
      <value>13-AUG-2013</value>
      <value>21-MAY-1985</value>
    </row>
    <row>
      <value>4571</value>
      <value>Charles</value>
      <value>Barajas</value>
      <value>34 Scobie Road</value>
      <value>02232104933</value>
      <value>09-NOV-2001</value>
      <value>15-SEP-1964</value>
    </row>
  </table>
  <table name="sales">
    <column>staff_id</column>
    <column>on_commission</column>
    <column>commission_rate</column>
    <column>gross_earnings</column>
    <row>
      <value>4567</value>
      <value>##TRUE_VALUE##</value>
      <value>0.15</value>
      <value>12345.67</value>
    </row>
    <row>
      <value>4569</value>
      <value>##FALSE_VALUE##</value>
      <value>0</value>
      <value>12345.67</value>
    </row>
  </table>
  <table name="warranty">
    <column>w_code</column>
    <column>max_age</column>
    <column>max_km</column>
    <column>duration</column>
    <column>distance</column>
    <column>notes</column>
    <row>
      <value>A</value>
      <value>4</value>
      <value>50000</value>
      <value>3</value>
      <value>5000</value>
      <value>Category A motor vehicle</value>
    </row>
    <row>
      <value>B</value>
      <value>6</value>
      <value>75000</value>
      <value>2</value>
      <value>3000</value>
      <value>Category B motor vehicle</value>
    </row>
    <row>
      <value>C</value>
      <value>8</value>
      <value>100000</value>
      <value>1</value>
      <value>1500</value>
      <value>Category C motor vehicle</value>
    </row>
    <row>
      <value>D</value>
      <value />
      <value />
      <value>0</value>
      <value>0</value>
      <value>Category D motor vehicle</value>
    </row>
  </table>
  <table name="purchase">
    <column>purchase_id</column>
    <column>purchase_date</column>
    <column>details</column>
    <column>amount</column>
    <column>vin</column>
    <column>customer_id</column>
    <column>salesrep_id</column>
    <row>
      <value>12345678</value>
      <value>10-JAN-2014</value>
      <value>Blah blah blah</value>
      <value>29995</value>
      <value>7A8DH1E0701123456</value>
      <value>234567</value>
      <value>4567</value>
    </row>
    <row>
      <value>12345679</value>
      <value>25-JAN-2014</value>
      <value>Blah blah blah</value>
      <value>45995</value>
      <value>7A8DH1E0701654321</value>
      <value>234568</value>
      <value>4569</value>
    </row>
  </table>
  <table name="sale">
    <column>sale_id</column>
    <column>sale_date</column>
    <column>details</column>
    <column>amount</column>
    <column>vin</column>
    <column>customer_id</column>
    <column>salesrep_id</column>
    <column>w_code</column>
    <column>tradein_id</column>
    <row>
      <value>12345678</value>
      <value>10-JAN-2014</value>
      <value>Blah blah blah</value>
      <value>29995</value>
      <value>7A8DH1E0701123456</value>
      <value>234567</value>
      <value>4567</value>
      <value>D</value>
      <value />
    </row>
    <row>
      <value>12345680</value>
      <value>15-FEB-2014</value>
      <value>Blah blah blah</value>
      <value>36950</value>
      <value>7A8DH1E0701341652</value>
      <value>234569</value>
      <value>4567</value>
      <value>B</value>
      <value>12345679</value>
    </row>
  </table>
</dataset>