SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 School Assignment.....
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Justin.langham
Starting Member

USA
2 Posts

Posted - 07/30/2012 :  21:10:00  Show Profile  Reply with Quote
This is the first time that I'm completely stumped by a school assignment, but I think something is missing. However I'm unable to find a starting ground. If someone could point me in a good direction or if they have some information on this type of topic. Ive search my book and I can find anything that cover all steps.


This is the question.

This assignment allows you to pick your own subject in which you Code a Package Header that contains the following:

Global Variable Specification
Type
Four (4) Procedure Specifications
Two (2) Function Specifications

Submit your code in a series of Notepad or Wordpad documents. Include the code for the assignment and the output that is realized from running the code. Note: You are responsible for creating the database on which the project will run. This includes the responsibility for loading the database with sufficient data.Grading for this assignment will be based on answer quality, logic/organization of the project to include the compilation, and execution of the project code.

LoztInSpace
Aged Yak Warrior

878 Posts

Posted - 07/30/2012 :  22:50:33  Show Profile  Reply with Quote
Sounds like Oracle from the terms you are using.
Basically a package header is the Oracle version of a C++ header or Java/C# interface definition.

create or replace package my_package
as
procedure p1;
procedure p2(params...)
function blah (..) returns date;
end;

I won't clutter the forum with this as it's a SQL Server forum but hopefully that will help you find more.
Of course the most correct answer is to ask your teacher. It's been a while since I was at school but they are there to help you, not catch you out. If you don't understand what you are supposed to do then simply get clarification.
Go to Top of Page

Justin.langham
Starting Member

USA
2 Posts

Posted - 07/30/2012 :  23:00:56  Show Profile  Reply with Quote
Well thank you that actually helps, I did ask my professor but she hasn’t responded yet. The class is PL/SQL Program Units.
See I was thinking it was like the header of a file. With the author version description and what not.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000