Coder Social home page Coder Social logo

dbms2's Introduction

DBMS2

oracle OODB

dbms2's People

Contributors

gbarzaq avatar sayakh avatar amalbsaiso avatar ghaidaa94h avatar haneenjehad avatar sondossh avatar

Watchers

James Cloos avatar

dbms2's Issues

Department

create or replace type Department_t as object
(
dept_ID varchar2(20),
dept_name varchar2(20),
dept_head varchar2(20),
dept_prof Prof
);

create or replace type Prof as vaaray(20) of Professor_T;

create or replace type Department_table_t as table of Department_t;

Faculty

Create or replace type Faculty_T as object (
fac_id varchar2(10) , name varchar2(20) , dean varchar2(10) , school varchar2(20) , department varchar2(20) , research_center varchar2(10) , member precedure Show_parts) ; /
create or replace type Faculty_Table_T AS Table of Faculty_T /
create or replace procedure Show_parts (
new_id IN Faculty_T.id%TYPE) AS new_name Faculty_T.name%TYPE;
new_dean Faculty_T.dean%TYPE;
new_school Faculty_T.school%TYPE;
new_department Faculty_T.department%TYPE;
new_research_center Faculty_T.research_center%TYPE;
Begin
Select name , dean , school , department , research_center
INTO new_name ,new_dean, new_school, new_department, new_research_center
from Faculty_T
where id = new_id;
DBMS_OUTPUT.PUT_LINE ( new_name ll ' ' ll new_dean ll ' ' ll new_school ll ' ' ll new_department ll ' ' ll new_research_center);
END Show_parts ; /

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.