clean up the removal script

This commit is contained in:
Andreas Zweili 2017-06-26 21:17:54 +02:00
parent 3784d21327
commit 1d4128e8f9
1 changed files with 9 additions and 18 deletions

View File

@ -1,18 +1,9 @@
-- Removes the tables for the Flugzeug DB -- Removes the tables for the market DB
-- --
-- Author: Andreas Zweili -- Author: Andreas Zweili
-- Erstellt: 2017-05-27 -- Erstellt: 2017-05-27
-- DB-Server SQL Server 2016 -- DB-Server SQL Server 2016
use marketdb;
-- Dateiname create_table.sql
--
-- Beschreibung: Queries zum erstellen der Tabellen der Case Study DB
--
-- Autor: Andreas Zweili
-- Datum: 2017-06-05
-- Server Version: SQL Server 2016
use marketdb; use marketdb;
if exists (select * from sysobjects where name='commercials') if exists (select * from sysobjects where name='commercials')
DROP TABLE commercials; DROP TABLE commercials;
@ -22,16 +13,16 @@ if exists (select * from sysobjects where name='member_status')
DROP TABLE member_status; DROP TABLE member_status;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='salutation') if exists (select * from sysobjects where name='salutations')
DROP TABLE salutation; DROP TABLE salutations;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='subscription') if exists (select * from sysobjects where name='subscriptions')
DROP TABLE subscription; DROP TABLE subscriptions;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='subscption_order') if exists (select * from sysobjects where name='subscption_orders')
DROP TABLE subscption_order; DROP TABLE subscption_orders;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='members') if exists (select * from sysobjects where name='members')
@ -42,8 +33,8 @@ if exists (select * from sysobjects where name='persons')
DROP TABLE persons; DROP TABLE persons;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='trial_period') if exists (select * from sysobjects where name='trial_periods')
DROP TABLE trial_period; DROP TABLE trial_periods;
use marketdb; use marketdb;
if exists (select * from sysobjects where name='quality_checks') if exists (select * from sysobjects where name='quality_checks')