summaryrefslogtreecommitdiffstats
path: root/db_demo/sql/views/cr_vw_person.sql
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-05-08 19:07:50 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-05-08 19:07:50 (GMT)
commitdc6caf529031dba2dd595b64ee008ffda39737b6 (patch)
tree9026623a73886e313097561b4bfc09f9cc77b025 /db_demo/sql/views/cr_vw_person.sql
parent4c0c2685a6d564c9a6170b8a56c873104046a832 (diff)
download2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.zip
2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.tar.gz
2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.tar.bz2
Tabel structuur aangemaakt
Diffstat (limited to 'db_demo/sql/views/cr_vw_person.sql')
-rw-r--r--db_demo/sql/views/cr_vw_person.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/db_demo/sql/views/cr_vw_person.sql b/db_demo/sql/views/cr_vw_person.sql
new file mode 100644
index 0000000..0f8a973
--- /dev/null
+++ b/db_demo/sql/views/cr_vw_person.sql
@@ -0,0 +1,14 @@
+CREATE OR REPLACE VIEW vw_person AS
+SELECT
+ p.key AS personid,
+ p.c_experience,
+ p.w_experience,
+
+ a.key AS agegroupid,
+ a.description AS agegroup
+FROM
+ tbl_person p,
+ const_agegroup a
+WHERE
+ p.agegroupid = a.key
+; \ No newline at end of file