Răsfoiți Sursa

SQLite Änderungen

devnull auf KSeon 4 zile în urmă
părinte
comite
3cee9ddf1f
2 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  1. 10 0
      test/utarcherydb.sqbpro
  2. BIN
      test/utarcherydb.sqlite

+ 10 - 0
test/utarcherydb.sqbpro

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?><sqlb_project><db path="utarcherydb.sqlite" readonly="0" foreign_keys="1" case_sensitive_like="0" temp_store="0" wal_autocheckpoint="1000" synchronous="2"/><attached/><window><main_tabs open="structure browser pragmas query" current="0"/></window><tab_structure><column_width id="0" width="300"/><column_width id="1" width="0"/><column_width id="2" width="100"/><column_width id="3" width="1933"/><column_width id="4" width="0"/><expanded_item id="0" parent="1"/><expanded_item id="1" parent="1"/><expanded_item id="2" parent="1"/><expanded_item id="0" parent="2"/><expanded_item id="3" parent="1"/></tab_structure><tab_browse><table title="event" custom_title="0" dock_id="1" table="4,5:mainevent"/><dock_state state="000000ff00000000fd0000000100000002000003a4000002d2fc0100000001fc00000000000003a40000011f00fffffffa000000000100000002fb000000160064006f0063006b00420072006f00770073006500310100000000ffffffff0000011f00fffffffb000000160064006f0063006b00420072006f00770073006500320000000000ffffffff0000000000000000000002790000000000000004000000040000000800000008fc00000000"/><default_encoding codec=""/><browse_table_settings><table schema="main" name="event" show_row_id="0" encoding="" plot_x_axis="" unlock_view_pk="_rowid_" freeze_columns="0"><sort/><column_widths><column index="1" value="38"/><column index="2" value="70"/><column index="3" value="38"/></column_widths><filter_values/><conditional_formats/><row_id_formats/><display_formats/><hidden_columns/><plot_y_axes/><global_filter/></table></browse_table_settings></tab_browse><tab_sql><sql name="SQL 1*">create view if not exists event_view_1 as 
+select 
+	e.nr,
+	e.timestamp as timestamp,
+	e.note as eventnote,
+	(select sum(score) from passe as p where p.event = e.nr) as sum_score,
+	(select count(nr) from passe as p where p.event = e.nr) as count_passe,
+	(select sum(arrow) from passe as p where p.event = e.nr) as sum_arrow
+
+from event e</sql><current_tab id="0"/></tab_sql></sqlb_project>

BIN
test/utarcherydb.sqlite