You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/kexi/examples/Simple_Database.kexi.sql

685 lines
104 KiB

BEGIN TRANSACTION;
CREATE TABLE kexi__db (db_property Text(32), db_value CLOB);
INSERT INTO "kexi__db" VALUES('kexidb_major_ver', '1');
INSERT INTO "kexi__db" VALUES('kexidb_minor_ver', '2');
INSERT INTO "kexi__db" VALUES('kexiproject_major_ver', '1');
INSERT INTO "kexi__db" VALUES('kexiproject_minor_ver', '0');
CREATE TABLE kexi__fields (t_id UNSIGNED Integer, f_type UNSIGNED Byte, f_name Text(200), f_length Integer, f_precision Integer, f_constraints Integer, f_options Integer, f_default Text(200), f_order Integer, f_caption Text(200), f_help CLOB);
INSERT INTO "kexi__fields" VALUES(1, 3, 'id', 0, 0, 119, 1, NULL, 1, 'ID', NULL);
INSERT INTO "kexi__fields" VALUES(1, 3, 'age', 0, 0, 0, 1, NULL, 2, 'Age', NULL);
INSERT INTO "kexi__fields" VALUES(1, 11, 'name', 200, 0, 0, 0, NULL, 3, 'Name', NULL);
INSERT INTO "kexi__fields" VALUES(1, 11, 'surname', 200, 0, 0, 0, NULL, 4, 'Surname', NULL);
INSERT INTO "kexi__fields" VALUES(53, 11, 'a', 200, 0, 0, 200, '1', 0, NULL, NULL);
INSERT INTO "kexi__fields" VALUES(53, 11, 'b', 200, 0, 0, 200, '2', 1, NULL, NULL);
INSERT INTO "kexi__fields" VALUES(2, 3, 'id', 0, 0, 119, 1, NULL, 0, 'ID', NULL);
INSERT INTO "kexi__fields" VALUES(2, 11, 'model', 200, 0, 0, 0, NULL, 1, 'Car model', NULL);
INSERT INTO "kexi__fields" VALUES(103, 4, 'id', 0, 0, 119, 1, NULL, 0, 'Id', NULL);
INSERT INTO "kexi__fields" VALUES(103, 3, 'owner', 0, 0, 0, 0, NULL, 1, 'Owner', NULL);
INSERT INTO "kexi__fields" VALUES(103, 3, 'car', 0, 0, 0, 0, NULL, 2, 'Car', NULL);
INSERT INTO "kexi__fields" VALUES(103, 3, 'since', 0, 0, 0, 0, NULL, 3, 'Since', NULL);
CREATE TABLE kexi__objectdata (o_id UNSIGNED Integer NOT NULL, o_data CLOB, o_sub_id Text(200));
INSERT INTO "kexi__objectdata" VALUES(4, '<!DOCTYPE UI>
<UI stdsetdef="1" version="3.1" >
<kfd:customHeader version="2" />
<pixmapinproject/>
<class>QWidget</class>
<widget class=TQWIDGET_OBJECT_NAME_STRING >
<property name="name" >
<cstring>formularz1</cstring>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>200</height>
</rect>
</property>
<property name="caption" >
<string>formularz1</string>
</property>
<property name="dataSource" >
<string>persons</string>
</property>
<property name="dataSourceMimeType" >
<cstring>kexi/table</cstring>
</property>
<property name="paletteBackgroundColor" >
<color>
<red>255</red>
<green>220</green>
<blue>168</blue>
</color>
</property>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>TextLabel1</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>40</y>
<width>152</width>
<height>36</height>
</rect>
</property>
<property name="dataSource" >
<string>name</string>
</property>
<property name="font" >
<font>
<family>Verdana</family>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>0</bold>
<italic>1</italic>
<underline>0</underline>
<strikeout>0</strikeout>
</font>
</property>
<property name="shadowEnabled" >
<bool>true</bool>
</property>
<property name="text" >
<string>Name</string>
</property>
<property name="tqalignment" >
<set>WordBreak|AlignBottom</set>
</property>
</widget>
<widget class="Line" >
<property name="name" >
<cstring>Line1</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>80</y>
<width>450</width>
<height>11</height>
</rect>
</property>
<property name="frameShadow" >
<enum>Plain</enum>
</property>
<property name="lineWidth" >
<number>3</number>
</property>
<property name="orientation" >
<enum>Horizontal</enum>
</property>
</widget>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>TextLabel2</cstring>
</property>
<property name="geometry" >
<rect>
<x>180</x>
<y>40</y>
<width>182</width>
<height>36</height>
</rect>
</property>
<property name="dataSource" >
<string>surname</string>
</property>
<property name="font" >
<font>
<family>Verdana</family>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>0</bold>
<italic>1</italic>
<underline>0</underline>
<strikeout>0</strikeout>
</font>
</property>
<property name="shadowEnabled" >
<bool>true</bool>
</property>
<property name="text" >
<string>Surname</string>
</property>
<property name="tqalignment" >
<set>WordBreak|AlignBottom</set>
</property>
</widget>
<widget class="KexiDBImageBox" >
<property name="name" >
<cstring>obrazek2</cstring>
</property>
<property name="geometry" >
<rect>
<x>380</x>
<y>10</y>
<width>90</width>
<height>70</height>
</rect>
</property>
<property name="tqalignment" >
<set>AlignTop|AlignRight</set>
</property>
<property name="storedPixmapId" >
<number>3</number>
</property>
</widget>
<widget class="KexiDBAutoField" >
<property name="name" >
<cstring>age</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>150</y>
<width>148</width>
<height>21</height>
</rect>
</property>
<property name="dataSource" >
<string>age</string>
</property>
</widget>
<widget class="KexiDBAutoField" >
<property name="name" >
<cstring>name</cstring>
</property>
<property name="geometry" >
<rect>
<x>10</x>
<y>100</y>
<width>159</width>
<height>21</height>
</rect>
</property>
<property name="autoCaption" >
<bool>false</bool>
</property>
<property name="dataSource" >
<string>name</string>
</property>
</widget>
<widget class="KexiDBAutoField" >
<property name="name" >
<cstring>surname</cstring>
</property>
<property name="geometry" >
<rect>
<x>170</x>
<y>100</y>
<width>200</width>
<height>21</height>
</rect>
</property>
<property name="autoCaption" >
<bool>false</bool>
</property>
<property name="dataSource" >
<string>surname</string>
</property>
</widget>
</widget>
<layoutDefaults spacing="6" margin="11" />
<tabstops>
<tabstop>TextLabel1</tabstop>
<tabstop>TextLabel2</tabstop>
<tabstop>obrazek2</tabstop>
<tabstop>age</tabstop>
<tabstop>name</tabstop>
<tabstop>surname</tabstop>
</tabstops>
</UI>
', NULL);
INSERT INTO "kexi__objectdata" VALUES(65, X'3C21444F43545950452055493E0A3C5549207374647365746465663D2231222076657273696F6E3D22332E3122203E0A3C6B66643A637573746F6D4865616465722076657273696F6E3D223222202F3E0A3C7069786D6170696E70726F6A6563742F3E0A3C636C6173733E515769646765743C2F636C6173733E0A3C77696467657420636C6173733D225157696467657422203E0A3C70726F7065727479206E616D653D226E616D6522203E0A3C63737472696E673E666F726D313C2F63737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2267656F6D6574727922203E0A3C726563743E0A3C783E303C2F783E0A3C793E303C2F793E0A3C77696474683E3533303C2F77696474683E0A3C6865696768743E3232303C2F6865696768743E0A3C2F726563743E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D226175746F54616253746F707322203E0A3C626F6F6C3E747275653C2F626F6F6C3E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2263617074696F6E22203E0A3C737472696E673E666F726D313C2F737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2264617461536F7572636522203E0A3C737472696E673E636172733C2F737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2264617461536F757263654D696D655479706522203E0A3C63737472696E673E6B6578692F7461626C653C2F63737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D22666F637573506F6C69637922203E0A3C656E756D3E4E6F466F6375733C2F656E756D3E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2269636F6E22202F3E0A3C70726F7065727479206E616D653D2270616C657474654261636B67726F756E64436F6C6F7222203E0A3C636F6C6F723E0A3C7265643E3230333C2F7265643E0A3C677265656E3E3233383C2F677265656E3E0A3C626C75653E3138353C2F626C75653E0A3C2F636F6C6F723E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2270616C657474654261636B67726F756E645069786D617022202F3E0A3C77696467657420636C6173733D224B65786944424C6162656C22203E0A3C70726F7065727479206E616D653D226E616D6522203E0A3C63737472696E673E546578744C6162656C313C2F63737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2267656F6D6574727922203E0A3C726563743E0A3C783E33303C2F783E0A3C793E32303C2F793E0A3C77696474683E3236363C2F77696474683E0A3C6865696768743E33343C2F6865696768743E0A3C2F726563743E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2264617461536F7572636522203E0A3C737472696E673E6D6F64656C3C2F737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D22666F6E7422203E0A3C666F6E743E0A3C66616D696C793E56657264616E613C2F66616D696C793E0A3C706F696E7473697A653E31363C2F706F696E7473697A653E0A3C7765696768743E37353C2F7765696768743E0A3C626F6C643E313C2F626F6C643E0A3C6974616C69633E303C2F6974616C69633E0A3C756E6465726C696E653E303C2F756E6465726C696E653E0A3C737472696B656F75743E303C2F737472696B656F75743E0A3C2F666F6E743E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2270616C657474654261636B67726F756E645069786D617022202F3E0A3C70726F7065727479206E616D653D22736861646F77456E61626C656422203E0A3C626F6F6C3E747275653C2F626F6F6C3E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D227465787422203E0A3C737472696E673E4D6F64656C3C2F737472696E673E0A3C2F70726F70657274793E0A3C2F7769646765743E0A3C77696467657420636C6173733D224B65786944424C6162656C22203E0A3C70726F7065727479206E616D653D226E616D6522203E0A3C63737472696E673E546578744C6162656C323C2F63737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2267656F6D6574727922203E0A3C726563743E0A3C783E33303C2F783E0A3C793E3131303C2F793E0A3C77696474683E37363C2F77696474683E0A3C6865696768743E32343C2F6865696768743E0A3C2F726563743E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D227465787422203E0A3C737472696E673E49443C2F737472696E673E0A3C2F70726F70657274793E0A3C2F7769646765743E0A3C77696467657420636C6173733D224B65786950757368427574746F6E22203E0A3C70726F7065727479206E616D653D226E616D6522203E0A3C63737472696E673E50757368427574746F6E313C2F63737472696E673E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D2267656F6D6574727922203E0A3C726563743E0A3C783E3331303C2F783E0A3C793E3130303C2F793E0A3C77696474683E3133303C2F77696474683E0A3C6865696768743E34303C2F6865696768743E0A3C2F726563743E0A3C2F70726F70657274793E0A3C70726F7065727479206E616D653D226F6E436C69636B416374696F6E222
INSERT INTO "kexi__objectdata" VALUES(96, '<!DOCTYPE UI>
<UI stdsetdef="1" version="3.1" >
<pixmapinproject/>
<class>QWidget</class>
<widget class=TQWIDGET_OBJECT_NAME_STRING >
<property name="name" >
<cstring>report2</cstring>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>590</width>
<height>590</height>
</rect>
</property>
<property name="caption" >
<string></string>
</property>
<widget class="Label" >
<property name="name" >
<cstring>Label1</cstring>
</property>
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>566</width>
<height>134</height>
</rect>
</property>
<property name="backgroundOrigin" >
<enum>ParentOrigin</enum>
</property>
<property name="font" >
<font>
<family>Trebuchet MS</family>
<pointsize>48</pointsize>
<weight>75</weight>
<bold>1</bold>
<italic>1</italic>
<underline>0</underline>
<strikeout>0</strikeout>
</font>
</property>
<property name="text" >
<string>Sales Report</string>
</property>
</widget>
<widget class="PicLabel" >
<property name="name" >
<cstring>PicLabel1</cstring>
</property>
<property name="geometry" >
<rect>
<x>420</x>
<y>170</y>
<width>1</width>
<height>1</height>
</rect>
</property>
<property name="backgroundMode" >
<enum>PaletteBackground</enum>
</property>
<property name="backgroundOrigin" >
<enum>ParentOrigin</enum>
</property>
<property name="cursor" >
<cursor>0</cursor>
</property>
<property name="frameShape" >
<enum>NoFrame</enum>
</property>
<property name="pixmap" >
<pixmap>image0</pixmap>
</property>
<property name="scaledContents" >
<bool>true</bool>
</property>
</widget>
<widget class="KexiSubReport" >
<property name="name" >
<cstring>SubReport1</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>170</y>
<width>330</width>
<height>290</height>
</rect>
</property>
</widget>
</widget>
<images>
<image name="image0" >
<data format="XBM.GZ" length="79" >789c534e494dcbcc4b554829cdcdad8c2fcf4c29c95030e0524611cd48cd4ccf28010a1797249664262b2467241641a592324b8aa363156c15aab914146aadb90067111b1f</data>
</image>
</images>
<layoutDefaults spacing="6" margin="11" />
<tabstops>
<tabstop>SubReport1</tabstop>
</tabstops>
</UI>
', NULL);
INSERT INTO "kexi__objectdata" VALUES(101, '<!DOCTYPE script>
<script language="python" ># This is Technology Preview (BETA) version of scripting
# support in Kexi. The scripting API may change in details
# in the next Kexi version.
# For more information and documentation see
# http://www.kexi-project.org/scripting/
# Saves the contents of &quot;persons&quot; table, without the &quot;id&quot; column
# to a &quot;SimpleReport54321.txt&quot; text file in the current user''s home
# directory. Totals about average, minimum, maximum age are appended.
import krosskexidb, krosskexiapp, os, codecs
keximainwindow = krosskexiapp.get(&quot;KexiAppMainWindow&quot;)
connection = keximainwindow.getConnection()
table = connection.tableSchema(&quot;persons&quot;)
if not table:
raise(&quot;No table ''persons''&quot;)
query = table.query()
cursor = connection.executeQuerySchema(query)
if not cursor:
raise(&quot;Query failed&quot;)
sum = 0
max = 0
min = 1000
count = 0
# Walk through all items in the table.
filename = os.path.expanduser(&quot;~&quot;)+os.sep+&quot;SimpleReport54321.txt&quot;
f = codecs.open(filename, &quot;wt&quot;, &quot;utf-8&quot;)
if not f:
raise(&quot;Opening file failed&quot;)
f.write(&quot;%s\t%s\t%s\n-------------------------\n&quot;
% (query.fieldlist().field(1).caption(),
query.fieldlist().field(2).caption(),
query.fieldlist().field(3).caption()))
while cursor.moveNext():
count += 1
sum += cursor.value(1)
if max &lt; cursor.value(1):
max = cursor.value(1)
if min > cursor.value(1):
min = cursor.value(1)
f.write( &quot;%s\t%s\t%s\n&quot; % (cursor.value(1), cursor.value(2),cursor.value(3)))
f.write( &quot;\nAverage age:\t%.2f\n&quot; % (sum / count) )
f.write( &quot;Minimum age:\t%.2f\n&quot; % min)
f.write( &quot;Maximum age:\t%.2f\n&quot; % max)
f.close()
</script>
', NULL);
INSERT INTO "kexi__objectdata" VALUES(104, 'SELECT persons.name, persons.surname, persons.age, cars.model, ownership.since FROM persons, ownership, cars WHERE cars.id = ownership.car AND persons.id = ownership.owner', 'sql');
INSERT INTO "kexi__objectdata" VALUES(104, '<query_layout><table name="persons" x="380" y="54" width="110" height="132"/><table name="ownership" x="180" y="49" width="110" height="132"/><table name="cars" x="9" y="57" width="110" height="92"/><conn mtable="cars" mfield="id" dtable="ownership" dfield="car"/><conn mtable="persons" mfield="id" dtable="ownership" dfield="owner"/></query_layout>', 'query_layout');
INSERT INTO "kexi__objectdata" VALUES(103, '<!DOCTYPE EXTENDED_TABLE_SCHEMA>
<EXTENDED_TABLE_SCHEMA version="1" >
<field name="owner" >
<lookup-column>
<row-source>
<type>table</type>
<name>persons</name>
</row-source>
<bound-column>
<number>0</number>
</bound-column>
<visible-column>
<number>3</number>
</visible-column>
</lookup-column>
</field>
<field name="car" >
<lookup-column>
<row-source>
<type>table</type>
<name>cars</name>
</row-source>
<bound-column>
<number>0</number>
</bound-column>
<visible-column>
<number>1</number>
</visible-column>
</lookup-column>
</field>
</EXTENDED_TABLE_SCHEMA>
', 'extended_schema');
INSERT INTO "kexi__objectdata" VALUES(105, '<!DOCTYPE UI>
<UI stdsetdef="1" version="3.1" >
<kfd:customHeader version="2" />
<pixmapinproject/>
<class>QWidget</class>
<widget class=TQWIDGET_OBJECT_NAME_STRING >
<property name="name" >
<cstring>form1</cstring>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>514</width>
<height>611</height>
</rect>
</property>
<property name="autoTabStops" >
<bool>true</bool>
</property>
<property name="dataSource" >
<string>ownership</string>
</property>
<property name="dataSourceMimeType" >
<cstring>kexi/table</cstring>
</property>
<property name="paletteBackgroundColor" >
<color>
<red>154</red>
<green>168</green>
<blue>198</blue>
</color>
</property>
<widget class="KexiDBComboBox" >
<property name="name" >
<cstring>comboBox</cstring>
</property>
<property name="geometry" >
<rect>
<x>100</x>
<y>90</y>
<width>121</width>
<height>26</height>
</rect>
</property>
<property name="dataSource" >
<string>owner</string>
</property>
</widget>
<widget class="KexiDBComboBox" >
<property name="name" >
<cstring>comboBox2</cstring>
</property>
<property name="geometry" >
<rect>
<x>100</x>
<y>130</y>
<width>121</width>
<height>26</height>
</rect>
</property>
<property name="dataSource" >
<string>car</string>
</property>
</widget>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>label</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>90</y>
<width>55</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Owner:</string>
</property>
</widget>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>label2</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>130</y>
<width>69</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Car:</string>
</property>
</widget>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>label3</cstring>
</property>
<property name="geometry" >
<rect>
<x>20</x>
<y>170</y>
<width>59</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Since:</string>
</property>
</widget>
<widget class="KexiDBLineEdit" >
<property name="name" >
<cstring>textBox</cstring>
</property>
<property name="geometry" >
<rect>
<x>100</x>
<y>170</y>
<width>172</width>
<height>26</height>
</rect>
</property>
<property name="dataSource" >
<string>since</string>
</property>
</widget>
<widget class="KexiDBLabel" >
<property name="name" >
<cstring>TextLabel1</cstring>
</property>
<property name="geometry" >
<rect>
<x>30</x>
<y>20</y>
<width>266</width>
<height>44</height>
</rect>
</property>
<property name="dataSource" >
<string></string>
</property>
<property name="font" >
<font>
<family>Verdana</family>
<pointsize>16</pointsize>
<weight>75</weight>
<bold>1</bold>
<italic>0</italic>
<underline>0</underline>
<strikeout>0</strikeout>
</font>
</property>
<property name="paletteBackgroundPixmap" />
<property name="shadowEnabled" >
<bool>true</bool>
</property>
<property name="text" >
<string>Ownership</string>
</property>
</widget>
<widget class="KexiDBImageBox" >
<property name="name" >
<cstring>image</cstring>
</property>
<property name="geometry" >
<rect>
<x>320</x>
<y>20</y>
<width>175</width>
<height>149</height>
</rect>
</property>
<property name="storedPixmapId" >
<number>5</number>
</property>
</widget>
</widget>
<includehints>
<includehint>kcombobox.h</includehint>
<includehint>klineedit.h</includehint>
</includehints>
<layoutDefaults spacing="6" margin="11" />
<tabstops>
<tabstop>TextLabel1</tabstop>
<tabstop>image</tabstop>
<tabstop>label</tabstop>
<tabstop>comboBox</tabstop>
<tabstop>label2</tabstop>
<tabstop>comboBox2</tabstop>
<tabstop>label3</tabstop>
<tabstop>textBox</tabstop>
</tabstops>
</UI>
', NULL);
INSERT INTO "kexi__objectdata" VALUES(106, '<!DOCTYPE macros>
<macro xmlversion="1" >
<item action="open" >
<variable name="name" >cars</variable>
<variable name="object" >form</variable>
</item>
<item action="navigate" >
<variable name="record" >last</variable>
</item>
</macro>
', NULL);
INSERT INTO "kexi__objectdata" VALUES(107, 'SELECT name, surname, age FROM persons WHERE persons.age > [Enter minimum person''s age] ORDER BY age', 'sql');
INSERT INTO "kexi__objectdata" VALUES(107, NULL, 'query_layout');
CREATE TABLE kexi__objects (o_id INTEGER PRIMARY KEY, o_type UNSIGNED Byte, o_name Text(200), o_caption Text(200), o_desc CLOB);
INSERT INTO "kexi__objects" VALUES(1, 1, 'persons', 'Persons in our company', NULL);
INSERT INTO "kexi__objects" VALUES(2, 1, 'cars', 'Cars', NULL);
INSERT INTO "kexi__objects" VALUES(4, 3, 'persons', 'Persons in our company', NULL);
INSERT INTO "kexi__objects" VALUES(65, 3, 'cars', 'Cars', NULL);
INSERT INTO "kexi__objects" VALUES(96, 4, 'report', 'Report', NULL);
INSERT INTO "kexi__objects" VALUES(101, 5, 'write_simple_text_report', 'Write simple text report', NULL);
INSERT INTO "kexi__objects" VALUES(103, 1, 'ownership', 'Ownership', NULL);
INSERT INTO "kexi__objects" VALUES(104, 2, 'persons_and_cars', 'Persons and cars', NULL);
INSERT INTO "kexi__objects" VALUES(105, 3, 'ownership', 'Ownership', NULL);
INSERT INTO "kexi__objects" VALUES(106, 7, 'open_cars_and_go_to_last', 'Open cars and go to the last row', NULL);
INSERT INTO "kexi__objects" VALUES(107, 2, 'persons_by_age', 'Persons by age', NULL);
CREATE TABLE kexi__parts (p_id INTEGER PRIMARY KEY, p_name Text(200), p_mime Text(200), p_url Text(200));
INSERT INTO "kexi__parts" VALUES(1, 'Tables', 'kexi/table', 'http://koffice.org/kexi/');
INSERT INTO "kexi__parts" VALUES(2, 'Queries', 'kexi/query', 'http://koffice.org/kexi/');
INSERT INTO "kexi__parts" VALUES(3, 'Formularze', 'kexi/form', 'http://koffice.org/kexi/');
INSERT INTO "kexi__parts" VALUES(4, 'Reports', 'kexi/report', 'http://www.koffice.org/kexi/');
INSERT INTO "kexi__parts" VALUES(5, 'Scripts', 'kexi/script', 'http://www.koffice.org/kexi/');
INSERT INTO "kexi__parts" VALUES(7, 'Macros', 'kexi/macro', 'http://www.koffice.org/kexi/');
CREATE TABLE kexi__querydata (q_id UNSIGNED Integer, q_sql CLOB, q_valid Boolean);
CREATE TABLE kexi__queryfields (q_id UNSIGNED Integer, f_order Integer, f_id Integer, f_tab_asterisk UNSIGNED Integer, f_alltab_asterisk Boolean);
CREATE TABLE kexi__querytables (q_id UNSIGNED Integer, t_id UNSIGNED Integer, t_order UNSIGNED Integer);
CREATE TABLE persons (id INTEGER PRIMARY KEY, age UNSIGNED Integer, name Text(200), surname Text(200));
INSERT INTO "persons" VALUES(1, 32, 'Georege', 'Foster');
INSERT INTO "persons" VALUES(2, 62, 'Joan', 'Shelley');
INSERT INTO "persons" VALUES(3, 51, 'William', 'Gates ™');
INSERT INTO "persons" VALUES(4, 45, 'John', 'Smith');
INSERT INTO "persons" VALUES(10, 58, 'Александр', 'Пушкин');
INSERT INTO "persons" VALUES(12, 79, 'Μιχαήλ', 'Στεφανόπουλος');
CREATE TABLE kexi__blobs (o_id INTEGER PRIMARY KEY, o_data BLOB, o_name Text(200), o_caption Text(200), o_mime Text(200) NOT NULL, o_folder_id Integer UNSIGNED);
INSERT INTO "kexi__blobs" VALUES(1, X'89504E470D0A1A0A0000000D4948445200000040000000400806000000AA6971DE0000000467414D410000AFC837058AE90000142349444154789CD59B79745CD57DC73FF7BD37FB48335A2DCBB2E47DB7B18D6D9684B0248436EC04DA104228344B2124E4A42181344DD2B43D49D3939ED393363D25699AD07242A0610D3B0683C166B321DE6D61C992656BD748B3BC99B7DEFEF1DE482369644B6008F99D73A5D168E6CEEFF7BDDFDF727FF70E7C10E49ACE395CDB75165CA3BEDF1F2DDEEF0F1C2797EDAF209EF85C5583F6351908360DB7F5FC2BF72FBB13C8FF41F57ACFE5DCEF6A5CDBF5A9D02D7DBBAEFE55413E724CCA1F1E93B2EE1F32924B77FD9AC4B9C9F74B95F79D727CB6F7E3346EBCEB9C0D89AF7FF3D3C959977F442312833931A8591EA42757B16AD03A731D849F67E895CC7BADCEFBE702D71D5B4F2C70C78A7981AB3FF5F1A4D8B81250C1B241FA8A0455D89E81FB7E5360FFEF0E6FE3D8F337B2EBCB87DE4BB5DE7B006EE89E4748BD7DEE6CEDC6CBCEAF8A9CBD160211306D9072B2329A0AAD06DCF75B83BDBF6DDBE71E7DE57A76DFB4F3BD52EFBD03E0FA911A22C6ADD5B5815B3E7E76B2FE431B2156094619C3278AAA408F84C71E36D8F9EB235D76D79BD7F3FB6BB7BC176A9E7A00AED916A176E9F5D10AE5AF3FBC3EB1E4C39B04893A283820DDE94FA32AD007BCBAD9E08D5F1C19D28FECFB3C7BAF7AE054AB7B0A01F8AEC22DB75E1A8A697FB366497CE339676954378221C175DED98C9A80B4023B5FB178E3A76DF95CFBE1DBD877F1CF4E9DCEA70A809B3BAA948AC47FCD69085EB96A5384F50B4117E0BC43C34B4501F21AB4EFB679ED27879DE1D623DF66DF9FFCF0DDCFECC9A949836B6F59BBA439FEC3CBAF8A2BDB02D06D422560BB60BCCB517041DA10A857A85A92540A9DDAC732E6656186EEDE0ABC6B884F0D00F3AF9BDFD05C7BDDAE55616D7D183AD3B033078E0B48705DB05C305D301C3067308AEF9336384905774925A1FED087470A97CEC2D5B752D867BC1BD5B55302803484702569171E52E0925A08F7C1AB83100E4052856A0DE22A8415080A10BEF395F341E9FFB0A4C7809C0BC3360CDAA08755E6DFD8C82235F085B7B77E2647EAFE6F02D63B55FDD4006003AE44051C090F031FAD83B380EDC3D0A3400F9ED1017F04050495F20098D25B75CB07C19578A848581A83458B15DACFAF446CD137496802DADFA9EAA70600189FDC256C16F0A17A384FC2964140783698FEC84D7B5E6FCC8BC2790DB0AE0E1E57A0DB71114E2128BD7023FC57CE584E210326A820E16560CD2CF8A880177ABC974D3BEFF8863786E1CC0658DD006A10065D68B340481033A82BA69253C4001BE996590009BB242CACF741E8F27CFA8420F886D784E1ECD9B0B8014418522E2836645DE8B2212E25722695D514720A5D00A44359321E7640AF867305BC7204462C2683200117AAC3B06E362C68041981011784098A800070C084BC0B150E27AFA9A721A706000B2F52D98CAEE044E9060A95B0711EEC6A83BE025E9503E04222042B664353232831E893200C0F27050F0017D89BC74BDE6E313ABE3B39B541B058964CA157CA816D51D8B4102287A1230BD1002C9D05CD4D6046A11FDF70E1192EFC11003A6C48994010EFB33E5031C0F10198820145D16D7851830B17C3653A1C8C40360E9D1230BCC5157800148D5785173B0E15FCB915FCCFFAA030C00CBAB84C0B0000D7869D1AACAA870379D04A0D2F198ACF0217E830BDDA00FCCF71E50787010BC4A184EA2E51B1F1349EC6C25812DED461D8828818BFEAA3D417604B18B2FDEC5114C50FB87FE82C20CFA68204373F1BF98FDBBE252E0A38D3640078795CBA9035C0564A0C2F66073FA6E6DD32D339FC616380BC06D5CCF36927C2EDEAB296D595F3AEC46E0F7B85C9C482682A5101075C0BF2627C563C29860A5ECDED6581E97E6259993100D6C55CE43ADC115CDC701E675D081B3F49A3BB0C6B8F456CAF4E7E7594BC39BDB964316E88192EA6031812B121BB4C7C71DE77E4D6CC6DFCFBE0F199DA023300207B11EBC351BE251AAAAE52CE3C47B0EE32A85B03224013697E7EB5CEE7EE31091AF5F4AE89932DBAC31422A56F88CDCCDB320A485B125BE85444CE8A5E3D100EB73851AEE79F070FCE70A6930390BF98059AC6EDA23A7A837AFAE911D67D02E66C00350A863E1A88CE6891DCFF992C9FFD1F93A03E9BFE4D0906EC13CF2D7D5F96330140F5F60066AF45405188348FD02C6A3776BA358F3A7FC7757C77F0F519CC3635F6E94BA80D2B7C494D046F5656AD98C5BA8F41F3260824BC5E9774C636EE45A7D55C8E0F06B8F6574D74D7CEA1707E0D474DCA3221A9C169517861E4445A9488026A00021D79E403C7A8E9E9E76BDF53A8B97837DFE3FB886309FA5E71BAF483BD37F13743CFBC6300E49944AC3AAE57E2EA37D4250B16B2F623D0B209C2B55E6BA76878B10891723C108ACB4856E3867BE7B3479B8FB8A88EB79DC94E9ED4604D1C5E4C9D040001220091010BE5896E22FB8F73D1E539AEB819EAEB0482206FF3363FE01FC9764B72DBC3A991D6DEBFE28E81FB6604C07DD7A05E99E31211E7DBEABCB91B587B06CCDB08D1599EF2AE3366A42CF93DF139BC7DAA9E57B9F5E1C56C359613FA443D7B853AAE83370AC010637B82899A0520967551B7F41178E3281BCE1EE2D25B0BCC5F244777E000010274D1C54FF937527D79B22F878C546BDF57F8E6C05DD306C0B892BF0FCE9FF36D56AE869675106FF434739DF1068F33BCF4799F11EE1808AE2DF8EA63CB782AB396C4A58DBC2134CFEF8164C00760B00C0001885A92F0EB43385BBA58B
INSERT INTO "kexi__blobs" VALUES(3, X'89504E470D0A1A0A0000000D4948445200000040000000400806000000AA6971DE0000000467414D410000D904DCB2DA020000135949444154789CD59B7B9025557DC73FE774F7EDFB98E7CE30B3B33B3BFB6477D9058145107CA06CB994C19060225652BE922ACBB24CA2FFA42A9A5425B18C1563122B188BC20A5634C45891604011214A11C00701161784957DB13BFB9CF7EBCE7DF5E39CFC714EF7ED7B7756B0E66E343DD5D3EFEEDFEF7B7EBFEFF9FD7EE75CC1C55B04E0FCC57B0AAF1FECD21FF05DF6F99EDEE638E038E04881230582783156FA450D4F2E54DC073E7C576D3F1003EA22CAD622E4C578A7F8BD9BF3EB770F7247D117EF92A9D220A5D97A9E4BCECFE3E6F2B8AE44EA081D2E134495A341C05DF73E1FDD7DEFF729739181B81800381F7E7BE1EA2D97E86F79AE1871A4696DA3B86E82E0402E972797CF93F30B787E012F57C0118AB03A4DA33A796E7E517FE2035F0CBF0E4480BE08B2E274F87DF2A6CBF21B2EDF20BE2B8533AAB5406B81D2A035986373A306B4D6081C341210201CA4EB93EB1AC6EF5EDBED8BE577DDF6FAE8D28A8C1F3D7292808B004227011040FED63DB94FE73DF97652A5CD252DECB1106884BDA6ED7589100E0803821002E9E629F46D4452BF7CF760E52619AB6FBD78861A1D06A193004860E02D977A770A210A68AB3456629D553CB10681D6CA3C2A84114708732C1D100E85DE31745C5FBF6970F9DA2367D57F4E2E76D6123A058000DCB75CEA5E75CD36E7A3911684B1304AEBA6D26414CF5A88D6809008213160242E61F6F3BDA3C4D5994DBB36349C6F3FA39EC0704247964E002000E76F3F90DB77F3D5E26BC3FDAA6B7448B37640B35C835A3D51B85DE9042050060152E5535730FB4238E4BA86508BE3D70EF5F0C833C7D4393A64059D00407E649F77D9EE51F9B074C41A8D00348EA311B2A8A7E795D02AAB745BCB6B61B8009DB67CD3129A6EE17A45A2B0EE94E4E29A07F7AB0781A003B2AF1A000114DF7FA3FBD9822FAE4DFC3D69DD2D9B2F17575F7F0B9540333335795ECB5BFD536E40E9D4EC110291708205C4F37B6894C7B7D72AF1378E4E314307AC60B5004860E0D66BDCBF914274D1E6EF97BDF9838C5EF10E46378C3170C908A74E1C230802B400682545B2AED0AEBCB50C2757A4BA3821BBFC68F2B197E2A7E80017B8AB7C5EEE19F3D649C4DA300295097AB4D4745DB29352CF20859E014A7D43AC1BDBCC03FFFECF4C9D1D27B64151F6FE5869948E40446811A0A503C205E1185165809B1FA4AB50DE0B7C11A8FDD201E82AA9E130767100854661CC4AB83EBD831B414548295933BC897CB187F77D7880EFDCF72F1C7CFE1994046581D009102AC2B8B7551A172D1C10010817E1F59077D9037401F3AC32545EAD0BE446FAE4B69DEB9DDF6D129A21BAB51BAF64C7D5EFC0B8A902ADF0FC02F9522F5BB6ED402379E5C8CB2DDD641A1F288D161264B33710492F01541626720B95E89BA7E638FBCB06C09D5DD23D375E96FB5012F1986E4D70C5F5BFC9F0E8762B5FD3D11DC7C52F76B361E3468647C678F9A73F218AE2D61E024B96A9D2D2B881ED12CB7367A9D4C5932F9E560759250FACD605542DA25EAEA9E9922F2F518EC6D120356CD9F906505186C464BAEF484977DF30575DF7662E5937CAD7FFE90EA6274EA10CF51957D291C91184E501E998D5770915F89E1EEA80FCD6A6560100505BA8EA639182303611E0F0E84EBA4ABD1087CD55256B042A44A0C8977AD8B869071FFBB3CF71FD5BDF49AC24610451240823683422EA8D887A23A0518F68D443824640180984145D1D90BF23815061C31A6FEB6097BC36F1E3EBDEF66ED6AF1F83AC5FA459814A8F85D638AE4BCEF7D97DD5B55CBEE78DCC4C4D3179EE8CED224DB224B440A188823ACB4BB3444183A945F5C39F9E523F02EAAB11BE13003871A40ADB47BCDB0442680DEF78F7C729BA3168437E2B847F49860468840029047D7D035C77E3DBB9E686BD14BB7B4138848D06E5A579824695B8510555A711A9897B7F147CA11A32CE2A23C2D5FA9006EA87A7D4E199B27A79B05BEEEA2EF53130B209E60F59FF952063EBFF4E8613EC3969CF27C98F920CAF5DC72DBFF53E732E5862FAF063DC79E71D6955E9F9F1E8C1E92AA780C62AE55F3D89605A60FAD844F4706F31B76B78F452D0B159556C14D489E22B00A125089509812D61266B58C6753D8250E068982BC707EFDF1FDD074C02E16A855F3589600A980B3F3A1A7E6FB9AA678BA55E8802438F71B0C21A36B7093126D754DB39154063917313D384114CCEAB135F7DB2FE79E008B0480772814E00A0814A23E6E4CB93D17D7D5DDD467001C40D03C64A4028BB8D32BD440B3091390EAB1C3E32CED9B2F7ECDD4FD43EBDDCE06960820ED5043A01001861A61E7F39B85F214F138526B34B156E5865DB95CF1E8719EB0820AAC1C23150217B6F7A2BCF4F16BEAA144F03C7812A1DAA07748203C0187C1938592A75ED4745A3088C82D2109B09662C1FA80C0F48C7F280D3E40715406DCA58815B40B872E1C523E70E0027810A1D2C89750A00306438373BB77812151A85750C718C61784B88B6D68770DA08D2A6BF61158265105647E932313B770C98A3832D9F2C9D0440038DA327675E21AA81F4005B0A161A7404B1B0E1B10D6B556205D2F418519D34B7B1754284C7E989B943C072F362E7964E7140B2444F1E383E4E6883B3D20820C80C0C8052C6D7A3865138AC417D09828A01210D98B0204A9E3F7AF61026E2EBF8B840A70108BFF3D491B341BDDA4029A340692D48D72AA55A8150B1B1886CA89C02A0D224E86B0FFCF800FF4F008880A5277EBCFFFB0
INSERT INTO "kexi__blobs" VALUES(4, X'89504E470D0A1A0A0000000D4948445200000080000000800806000000C33E61CB0000000467414D410000AFC837058AE90000001974455874536F6674776172650041646F626520496D616765526561647971C9653C0000380F4944415478DA62FCFFFF3F03232323C328A00B60026266208605F83F244C77008A7B800062198D13FA447CAF1D83A88938433E3323831D28CF7DF9C570DC7323431B50EE0710FF02E23F03E1308000621C2D01689EE3590E84321472B1305402D9FCC0E06680E1B73F1836F86C62C8018A7F04E2EF40FC97DE25004000318DC6116D321628E2770733849D8A64B8C3CDC2D0018A7C0660A4F36A3A30B08B2A80980C42EC0C01B9FA0C3640260F10B322550D74030001345A05503FE299370730188B7032F4B2323258832B7A606CB38B28302866CC67E0D57260F8F3F503C3E944417022D01761F00252E7A125C06F2CA50023B4246182B2FF23B51BFE53EA6080001A4D00D403CCABBC195464F918EAD89818A220452C30D6380518E4E3FA1944EC121081CE2DC0C0074C081FAE1E6010E36430020A7103313B107F434B00CC6BFD8066F232D401A35AFED73F862757DE30CCCCD8C37016DA76F843690312208046130015EAF9E9CE0C22BAA20C859CCC0C59403E1F2CF225831A18C43DF31998B904A04A1F43E3589D814F1B920004D8197480025C40CC068D0F5029C034CB8D41444F14DC76A80099052A4558806580B1188357963E83CFB48B0C5780EABE40D5935D120004D06802A0B04B77388221898795A1131805FCFFA1112F649BC0201554CFC006ACEB21E00D10CF03E29B50BE2CB0043003AB05455DB5098373EB198665D076C0DF43110C41FCEC0C5D400B64FF411B8C3C1A0E0C9FAE1D00D501BC9E0A0C65C00490072D01FE52D2780408A0D10440663DBF3794C119987B7B80DD3A1D683C8223491218F13CC0861E048072FB2620DE8D66C463067E6D6B06983E453E7035B0B1C69241335815D8766062B086E57A6EA09952D1FD0C9C72060C77FB0319DE9FDEC000949703AAE705E2CF94F61E00026834019016F14C2B7D1854550519660323DE06D6C0631356609000463C28E723C06E68E47FC361DC4D067E603BE0FD95030C125C0CFA5B8319AA15F919426111CF04AC36A4A3FA19046D2066FEF9FAECE77FE62FBF401D89BFFFC0A50F27B4C460865603640180001A4D004436F02603EB794B29863E766003EF1FB4C60535F0C4DC0B182402EB9194821AF42BA0C53E3E004C00C076C08FDBC086A02003A8AE50808D0F08BB16308805D483DB0EFF7E7FFEF3FEF2DC976F4EB73EFFFEE08D04B0C8E015E660D086463E0BA55D4780001A4D0004EAF9D9C0C698BE18432107B081070C693E586B4BC4AD80413CB01EA98107AADF3722D5F3F8C1F79BF7804A7731F07343221D94A8B8D41D18A493E733B08A40DA0E5F1EED7DFFE240CE833F1F6E7C676464F8CFF99781F927349140733E33B42D42360008A0D10480A78177229A21898B95A11AD4188335F0780D03C075329B0872030F54D41F25CAE03F6FBF30BCDD7C9EE1D3D1DB0CB0061E0BB00A118FEC079B0D023FDFDDFCF6F270C983AF0FB67C646262F8C70CC4A004C0F58F91E903B00800B9255683416DF10D86279496000001349A00B034F080AD7067010E48030F56CF73C81A304802EB6450A30CD1C0DB03ADEBBF1165F8FB2DE719DEEFB9CAF0F7DB2F702482EA7941970206113F4815022AEEDF9CE97DFAF654E33368C4FF872500903CC72F060E5835C1CF06EE6EB2209502648D070004D06802406AE06D0C645051E067E8656362F086D5F3A0DC29E65FCF206083DCC03B0AADE7898BF86F171F32BC597592E1F79B2FF05CCF6795C020EC5B0F2FEEBF9D9DC0F0F454CB8D3FBFDE7E0646F85F78CE47EAE3733322E6115404185491AA01B24B0180001A4D00A0811C5706510B29867A4E16864C7000834215983B85808D3121D77CB47A7E1E110D3C4471FF66D161866F379FC3238E4DC6804134BC1F5CDF83078CDE5F6478B73981E1F7AB0B0CC048E7646265F8881CF9A0A21FA48EED2364808909C8072622466022E545EA05909D00000268242700F04CDDC5448606606066C31A7820CC0FCC9DA03A1975046F39D10DBC7FDF7F317CDC7A9EE1E3BEABB0061B0323B0C7201AD60FCEF9908A1E587D3F6A61607C7F9DE1DFA7DB608BD9FE33F0013BF4CFC1118F14F9E016DF2FF04821030730617C063606A5B81874D1AA00B20040008DC404009EA93B13C790C4CD0669E0C1EA792E350706C924442B1C52C4AF20BA8107029FF75F0547FE1F503D0F2BEE9D8025894F3DB8CE67F8FB8981E1C502209E0F610333361BBF18C3F7EFF71998FE831321D6DCCCFC93113457001A04FA07349319584280E60FD8284D000001C432C2229EF9580C83333F3B432D30D75BC3EA7950B12C16812896C969E0FDBCFD82E1C3DA130C3F1FBF830FF172A83A3088C6CF07B723201D86B50C0C4F2741723F1C7C02260071866F2FC009809DE92F03CF7F26F0FA0038002DD960FF068E70067666705A65E0656550A446090010402C2324E299B68630A82809808759BD61F53C2B306284812D7078B10C6FE06D22BA9EFFFBEE0B30E24F327C0736F4600D3C6621050691B8F90C1C6AD004F5ED3AB0B86F06C6F549AC66708870C16B17E6BF0CFC7F59183E814A02E40620F30FF08411030F0BE35FD0420E905D91AA0C1ACB6F83BB8264270080001AEE098069960783A895346A030F5414F33B1730083AE7438A6578036F39B4BE27AE9EFF7AE02AC3E7EDE721110F1D19E4712C6010F0868E0C828AF8C76D0C0CAF8139FF3FEE5E1A23CB0F06561E418
INSERT INTO "kexi__blobs" VALUES(5, X'89504E470D0A1A0A0000000D4948445200000080000000800806000000C33E61CB0000000467414D410000AFC837058AE90000001974455874536F6674776172650041646F626520496D616765526561647971C9653C0000380F4944415478DA62FCFFFF3F03232323C328A00B60026266208605F83F244C77008A7B800062198D13FA447CAF1D83A88938433E3323831D28CF7DF9C570DC7323431B50EE0710FF02E23F03E1308000621C2D01689EE3590E84321472B1305402D9FCC0E06680E1B73F1836F86C62C8018A7F04E2EF40FC97DE25004000318DC6116D321628E2770733849D8A64B8C3CDC2D0018A7C0660A4F36A3A30B08B2A80980C42EC0C01B9FA0C3640260F10B322550D74030001345A05503FE299370730188B7032F4B2323258832B7A606CB38B28302866CC67E0D57260F8F3F503C3E944417022D01761F00252E7A125C06F2CA50023B4246182B2FF23B51BFE53EA6080001A4D00D403CCABBC195464F918EAD89818A220452C30D6380518E4E3FA1944EC121081CE2DC0C0074C081FAE1E6010E36430020A7103313B107F434B00CC6BFD8066F232D401A35AFED73F862757DE30CCCCD8C37016DA76F843690312208046130015EAF9E9CE0C22BAA20C859CCC0C59403E1F2CF225831A18C43DF31998B904A04A1F43E3589D814F1B920004D8197480025C40CC068D0F5029C034CB8D41444F14DC76A80099052A4558806580B1188357963E83CFB48B0C5780EABE40D5935D120004D06802A0B04B77388221898795A1131805FCFFA1112F649BC0201554CFC006ACEB21E00D10CF03E29B50BE2CB0043003AB05455DB5098373EB198665D076C0DF43110C41FCEC0C5D400B64FF411B8C3C1A0E0C9FAE1D00D501BC9E0A0C65C00490072D01FE52D2780408A0D10440663DBF3794C119987B7B80DD3A1D683C8223491218F13CC0861E048072FB2620DE8D66C463067E6D6B06983E453E7035B0B1C69241335815D8766062B086E57A6EA09952D1FD0C9C72060C77FB0319DE9FDEC000949703AAE705E2CF94F61E00026834019016F14C2B7D1854550519660323DE06D6C0631356609000463C28E723C06E68E47FC361DC4D067E603BE0FD95030C125C0CFA5B8319AA15F919426111CF04AC36A4A3FA19046D2066FEF9FAECE77FE62FBF401D89BFFFC0A50F27B4C460865603640180001A4D004436F02603EB794B29863E766003EF1FB4C60535F0C4DC0B182402EB9194821AF42BA0C53E3E004C00C076C08FDBC086A02003A8AE50808D0F08BB16308805D483DB0EFF7E7FFEF3FEF2DC976F4EB73EFFFEE08D04B0C8E015E660D086463E0BA55D4780001A4D0004EAF9D9C0C698BE18432107B081070C693E586B4BC4AD80413CB01EA98107AADF3722D5F3F8C1F79BF7804A7731F07343221D94A8B8D41D18A493E733B08A40DA0E5F1EED7DFFE240CE833F1F6E7C676464F8CFF99781F927349140733E33B42D42360008A0D10480A78177229A21898B95A11AD4188335F0780D03C075329B0872030F54D41F25CAE03F6FBF30BCDD7C9EE1D3D1DB0CB0061E0BB00A118FEC079B0D023FDFDDFCF6F270C983AF0FB67C646262F8C70CC4A004C0F58F91E903B00800B9255683416DF10D86279496000001349A00B034F080AD7067010E48030F56CF73C81A304802EB6450A30CD1C0DB03ADEBBF1165F8FB2DE719DEEFB9CAF0F7DB2F702482EA7941970206113F4815022AEEDF9CE97DFAF654E33368C4FF872500903CC72F060E5835C1CF06EE6EB2209502648D070004D06802406AE06D0C645051E067E8656362F086D5F3A0DC29E65FCF206083DCC03B0AADE7898BF86F171F32BC597592E1F79B2FF05CCF6795C020EC5B0F2FEEBF9D9DC0F0F454CB8D3FBFDE7E0646F85F78CE47EAE3733322E6115404185491AA01B24B0180001A4D00A0811C5706510B29867A4E16864C7000834215983B85808D3121D77CB47A7E1E110D3C4471FF66D161866F379FC3238E4DC6804134BC1F5CDF83078CDE5F6478B73981E1F7AB0B0CC048E7646265F8881CF9A0A21FA48EED2364808909C8072622466022E545EA05909D00000268242700F04CDDC5448606606066C31A7820CC0FCC9DA03A1975046F39D10DBC7FDF7F317CDC7A9EE1E3BEABB0061B0323B0C7201AD60FCEF9908A1E587D3F6A61607C7F9DE1DFA7DB608BD9FE33F0013BF4CFC1118F14F9E016DF2FF04821030730617C063606A5B81874D1AA00B20040008DC404009EA93B13C790C4CD0669E0C1EA792E350706C924442B1C52C4AF20BA8107029FF75F0547FE1F503D0F2BEE9D8025894F3DB8CE67F8FB8981E1C502209E0F610333361BBF18C3F7EFF71998FE831321D6DCCCFC93113457001A04FA07349319584280E60FD8284D000001C432C2229EF9580C83333F3B432D30D75BC3EA7950B12C16812896C969E0FDBCFD82E1C3DA130C3F1FBF830FF172A83A3088C6CF07B723201D86B50C0C4F2741723F1C7C02260071866F2FC009809DE92F03CF7F26F0FA0038002DD960FF068E70067666705A65E0656550A446090010402C2324E299B68630A82809808759BD61F53C2B306284812D7078B10C6FE06D22BA9EFFFBEE0B30E24F327C0736F4600D3C6621050691B8F90C1C6AD004F5ED3AB0B86F06C6F549AC66708870C16B17E6BF0CFC7F59183E814A02E40620F30FF08411030F0BE35FD0420E905D91AA0C1ACB6F83BB8264270080001AEE098069960783A895346A030F5414F33B1730083AE7438A6578036F39B4BE27AE9EFF7AE02AC3E7EDE721110F1D19E4712C6010F0868E0C828AF8C76D0C0CAF8139FF3FEE5E1A23CB0F06561E418
CREATE TABLE cars (id INTEGER PRIMARY KEY, model Text(200));
INSERT INTO "cars" VALUES(1, 'Fiat');
INSERT INTO "cars" VALUES(2, 'Syrena');
INSERT INTO "cars" VALUES(3, 'Chrysler');
INSERT INTO "cars" VALUES(4, 'Volvo');
INSERT INTO "cars" VALUES(5, 'BMW');
CREATE TABLE ownership (id INTEGER PRIMARY KEY, owner Integer, car Integer, since Integer);
INSERT INTO "ownership" VALUES(1, 1, 1, 2004);
INSERT INTO "ownership" VALUES(2, 2, 2, 1982);
INSERT INTO "ownership" VALUES(3, 3, 3, 2002);
INSERT INTO "ownership" VALUES(4, 4, 4, 2005);
INSERT INTO "ownership" VALUES(5, 10, 4, 2006);
INSERT INTO "ownership" VALUES(6, 4, 1, 2003);
INSERT INTO "ownership" VALUES(7, 12, 3, 1999);
COMMIT;