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
-- Erstellt: 2017-05-27
-- 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;
if exists (select * from sysobjects where name='commercials')
DROP TABLE commercials;
@ -22,16 +13,16 @@ if exists (select * from sysobjects where name='member_status')
DROP TABLE member_status;
use marketdb;
if exists (select * from sysobjects where name='salutation')
DROP TABLE salutation;
if exists (select * from sysobjects where name='salutations')
DROP TABLE salutations;
use marketdb;
if exists (select * from sysobjects where name='subscription')
DROP TABLE subscription;
if exists (select * from sysobjects where name='subscriptions')
DROP TABLE subscriptions;
use marketdb;
if exists (select * from sysobjects where name='subscption_order')
DROP TABLE subscption_order;
if exists (select * from sysobjects where name='subscption_orders')
DROP TABLE subscption_orders;
use marketdb;
if exists (select * from sysobjects where name='members')
@ -42,8 +33,8 @@ if exists (select * from sysobjects where name='persons')
DROP TABLE persons;
use marketdb;
if exists (select * from sysobjects where name='trial_period')
DROP TABLE trial_period;
if exists (select * from sysobjects where name='trial_periods')
DROP TABLE trial_periods;
use marketdb;
if exists (select * from sysobjects where name='quality_checks')