Er. Pradip Kharbuja 
Topic 11 
Implementation
Aspects of Implementation 
Creating... 
1.Tables 
2.Indexes 
3.Views 
4.Domains 
Write an example of each.
Some More Constraints 
Null Integrity 
Entity Integrity 
Referential integrity 
Domain constraints or General Constrai...
departments and workers Table 
dept_noPK 
emp_noPK 
dept_noFK 
departments 
workers
departments and workers Table
workers Table
Propagation Constraint 
What happens if we delete a department from departments table? 
There are lots of workers record...
Options for Propagation 
1.No action 
2.Set Null 
3.Cascade 
4.Set Default
Table with Propagation Constraint 
DEMO ???
Table Constraints 
This example limits the amount of times a boat can be rented to less than 10. 
Table constraints can ...
Inserting Multiple Rows of Data
Data Loading Tools 
Bulk insert in SQL server 
http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text- or-csv-file...
Bulk Insert 
Create CSV file with student_id, level_nameand course. Save the file as D:students.csv.
Further Studies 
PL/SQL 
Stored functions 
Stored procedures 
Triggers 
Data warehouses
ANY QUESTIONS?
Upcoming SlideShare
Loading in...5
×

Topic 11 : Implementation

580

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
580
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
45
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Topic 11 : Implementation

  1. 1. Er. Pradip Kharbuja Topic 11 Implementation
  2. 2. Aspects of Implementation Creating... 1.Tables 2.Indexes 3.Views 4.Domains Write an example of each.
  3. 3. Some More Constraints Null Integrity Entity Integrity Referential integrity Domain constraints or General Constraints Propagation constraints Table constraints
  4. 4. departments and workers Table dept_noPK emp_noPK dept_noFK departments workers
  5. 5. departments and workers Table
  6. 6. workers Table
  7. 7. Propagation Constraint What happens if we delete a department from departments table? There are lots of workers records that reference it. What happens to them? What happens if we update or change dept_no?
  8. 8. Options for Propagation 1.No action 2.Set Null 3.Cascade 4.Set Default
  9. 9. Table with Propagation Constraint DEMO ???
  10. 10. Table Constraints This example limits the amount of times a boat can be rented to less than 10. Table constraints can be dropped using the Alter Table clause.
  11. 11. Inserting Multiple Rows of Data
  12. 12. Data Loading Tools Bulk insert in SQL server http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text- or-csv-file-data-into-sql-server.html Oracle SQL loader http://oreilly.com/catalog/orsqlloader/chapter/ch01.html My-SQL uses something called 'Bulk Insert' http://mysql.bigresource.com/Bulk-insert-from-text-files- dDPRzHYo.html#2t6P0D5I
  13. 13. Bulk Insert Create CSV file with student_id, level_nameand course. Save the file as D:students.csv.
  14. 14. Further Studies PL/SQL Stored functions Stored procedures Triggers Data warehouses
  15. 15. ANY QUESTIONS?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×