Weitere ähnliche Inhalte Ähnlich wie DB 3 Sybase ASE 15 & MS SQL Server Ähnlich wie DB 3 Sybase ASE 15 & MS SQL Server (20) Mehr von Sunny U Okoro (20) Kürzlich hochgeladen (20) DB 3 Sybase ASE 15 & MS SQL Server 2. 1
Contents
Database Systems...............................................................................................................................4
Application.........................................................................................................................................5
Sybase ASE ....................................................................................................................................... 10
ASE 15.......................................................................................................................................... 10
ASE 16.......................................................................................................................................... 17
Database Creation ..................................................................................................................... 19
Tables Creation ......................................................................................................................... 19
Database Diagram ..................................................................................................................... 24
Audit Tables Creation ................................................................................................................ 24
Triggers .................................................................................................................................... 36
Indexes ..................................................................................................................................... 43
Database Dictionary .................................................................................................................. 46
Table Population ...................................................................................................................... 58
Revised Physical Database Diagram ............................................................................................ 79
Data Verfication ........................................................................................................................ 90
Data Manipulation .................................................................................................................. 111
Microsoft SQL Server 2012 .............................................................................................................. 138
Database Creation ...................................................................................................................... 139
Tables and Index ......................................................................................................................... 143
Triggers ...................................................................................................................................... 150
Database Dictionary .................................................................................................................... 154
Database Physical Diagram .......................................................................................................... 171
Table Population and Verification ................................................................................................ 172
DBA ........................................................................................................................................... 177
Data Manipulation ...................................................................................................................... 179
Xml ............................................................................................................................................ 248
Microsoft SQL Server 2008 .............................................................................................................. 261
Database Creation ...................................................................................................................... 263
Tables and Indexes...................................................................................................................... 265
Triggers ...................................................................................................................................... 270
Audit Records ............................................................................................................................. 273
3. 2
Database Dictionary .................................................................................................................... 275
Database Physical Diagram .......................................................................................................... 286
ETL ............................................................................................................................................. 288
Data Verification ......................................................................................................................... 292
ETL 2 .......................................................................................................................................... 302
Data Manipulation ...................................................................................................................... 307
Microsoft Access 2010 .................................................................................................................... 317
Linked Server .............................................................................................................................. 317
Imported Data ............................................................................................................................ 329
Database Creation ...................................................................................................................... 336
ETL ......................................................................................................................................... 343
Microsoft Excel............................................................................................................................... 357
Linked Server .............................................................................................................................. 357
6. 5
Microsoft SQL Server 2008R2
Microsoft Access 2010
Oracle 11Gr2
Application
7. 6
Oracle SQL Developer
Sybase Central
Dell Quest TOAD SQL Server Edition
19. 18
Store
PK Store_ID
Store_Name
Address
City
State
Phone
HRRecords
PK,FK1 Employee_ID
PK,FK2 Store_ID
PK HR_ID
Employee
Hire_Date
Hire_EndDate
DOB
PK Employee_ID
First_Name
Midd_Name
Last_Name
Address
City
State
Phone
Customer
PK Customer_ID
PK,FK1 Store_ID
First_Name
Midd_Name
Last_Name
Address
City
Phone
Orders
PK Order_ID
PK,FK3 Product_ID
PK,FK1 Store_ID
PK,FK2 Employee_ID
QTY
Order_Notes
Order_Date
Order_Amt
Order_Tax
Order_FinalAmt
Order_Ship
Shipment
PK Shipping_ID
PK,FK1 Order_ID
PK,FK1,FK2 Employee_ID
Shipping_Date
Shipping_Amt
Recieve_Date
ProductCategory
PK Category_ID
Category_Name
Description
Product
PK Product_ID
PK,FK1 Category_ID
Porudct_Name
Product_Flavor
Product_BoxQTY
72. 71
Due to an error with the table and stored procedure utilized for the Order table population, the entire
triggers and tables associated with Orders and Shipment tables were dropped and recreated.
172. 171
Database Physical Diagram
Customer
PK,I2,I1 Customer_ID INTEGER
PK,FK1,I1 Store_ID INTEGER
U2 First_Name CHAR(45)
Mid_Name CHAR(45)
U3 Last_Name CHAR(45)
Address CHAR(55)
U1 City CHAR(40)
Phone CHAR(35)
U4 Customer_State CHAR(8)
Product
PK,I2,I1 Product_ID INTEGER
PK,FK1,I1 Category_ID INTEGER
Product_Name CHAR(50)
Product_BoxQTy INTEGER
Employee
PK,I1 Employee_ID INTEGER
U2 First_Name CHAR(40)
Midd_Name CHAR(40)
U3 Last_Name CHAR(40)
Adress CHAR(55)
U1 City CHAR(40)
U4 State CHAR(5)
Phone CHAR(25)
ProductCategory
PK,I1 Category_ID INTEGER
Category_Name CHAR(50)
Description CHAR(32767)
PK,FK1,I1 Employee_ID INTEGER
PK,FK2,I1 Store_ID INTEGER
PK,I2,I1 HR_ID INTEGER
U2 Hire_Date WCHAR(10)
U1 DOB WCHAR(10)
shipment
HRRecords
PK,I2,I1 Shipping_ID INTEGER
PK,FK2,I1 Order_ID INTEGER
PK,FK1,I1 Employee_ID INTEGER
U2 Shipping_Date WCHAR(10)
U1 Shipping_Amt CURRENCY
Recieve_Date WCHAR(10)
U3 Shipping_Type CHAR(35)
Store
PK,I1 Store_ID INTEGER
U3 Store_Name CHAR(35)
Address CHAR(45)
U1 City CHAR(40)
U2 State CHAR(5)
Phone CHAR(25)
orders
PK,I2,I1 Order_ID INTEGER
PK,FK3,I1 Product_ID INTEGER
PK,FK4,I1 Store_ID INTEGER
PK,FK1,I1 Customer_ID INTEGER
PK,FK2,I1 Employee_ID INTEGER
Order_QTY INTEGER
Order_Notes CHAR(200)
U3 Order_Date WCHAR(10)
U2 Order_Amt CURRENCY
Order_Tax CURRENCY
U1 Order_FinalAmt CURRENCY
Order_Ship CHAR(9)
288. 287
Customer
PK,I2,I1 Customer_ID
PK,I1 Store_ID
U2 First_Name
Mid_Name
U3 Last_Name
Address
U1 City
Phone
U4 Customer_State
Product
PK,I2,I1 Product_ID
PK,FK1,I1 Category_ID
U1 Product_Name
Product_BoxQTy
Employee
PK,I1 Employee_ID
U2 First_Name
Midd_Name
U3 Last_Name
Adress
U1 City
U4 State
Phone
ProductCategory
PK,I1 Category_ID
Category_Name
Description
shipment
PK,I2,I1 Shipping_ID
PK,FK2,I1 Order_ID
PK,FK1,I1 Employee_ID
U2 Shipping_Date
U1 Shipping_Amt
Recieve_Date
U3 Shipping_Type
HRRecords
PK,FK1,I1 Employee_ID
PK,FK2,I1 Store_ID
PK,I2,I1 HR_ID
U2 Hire_Date
U1 DOB
Store
PK,I1 Store_ID
U3 Store_Name
Address
U1 City
U2 State
Phone
orders
PK,I2,I1 Order_ID
PK,FK3,I1 Product_ID
PK,FK4,I1 Store_ID
PK,FK1,I1 Customer_ID
PK,FK2,I1 Employee_ID
Order_QTY
Order_Notes
U3 Order_Date
U2 Order_Amt
Order_Tax
U1 Order_FinalAmt
Order_Ship
303. 302
ETL 2
The underlying audit tables remained empty after SSIS has been utilized to populate the database which
did not activate the audit triggers. The data in all the populated tables will be deleted, the identity
column option would be set back to on and Talend would be utilized to populate the store table. SSIS
would be utilized to repopulate the rest of the tables.
328. 327
Changed the first name to Philip for employee id 631 and re verify if the changes has been applied in
SQL Server
344. 343
ETL
Oracle student sample database would be utilized to populate the course, section and instructor table
created in Access.
356. 355
Table has been removed as a result the view failed to open.
I have to change the query to point to courseclass2 table which has the same query definition from the
old section table but was a table not a view.