Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3998712
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:33:40+00:00 2026-05-20T07:33:40+00:00

I’m getting missing right parenthesis error while calling the function in this package ,

  • 0

I’m getting missing right parenthesis error while calling the function in this package , could you please help me ?

create or replace package body "GESTIONRH" is

procedure CREATETABLES
as
begin

  EXECUTE IMMEDIATE 'CREATE TABLE jobs
  ( job_id         VARCHAR2(10)
  , job_title      VARCHAR2(35)
  , min_salary     NUMBER(6)
  , max_salary     NUMBER(6)
  , constrataint pk_jobs primary key (job_id) )  '; 

  EXECUTE IMMEDIATE 'Create table departments
  ( department_id    NUMBER(4)
  , department_name  VARCHAR2(30)
  , manager_id       NUMBER(6)
  , location_id      NUMBER(4)
  , constraint pk_dep primary key(department_id)  ) '; 

  EXECUTE IMMEDIATE 'CREATE TABLE employees
  ( employee_id    NUMBER(6)
  , first_name     VARCHAR2(20)
  , last_name      VARCHAR2(25)
  , email          VARCHAR2(25)
  , phone_number   VARCHAR2(20)
  , hire_date      DATE
  , job_id         VARCHAR2(10)
  , salary         NUMBER(8,2)
  , commission_pct NUMBER(2,2)
  , manager_id     NUMBER(6)
  , department_id  NUMBER(4)
  , CONSTRAINT pk_employee primary key (employee_id)      )';

  EXECUTE IMMEDIATE 'CREATE TABLE job_history
  ( employee_id   NUMBER(6)
  , start_date    DATE
  , end_date      DATE
  , job_id        VARCHAR2(10)
  , department_id NUMBER(4)
  , CONSTRAINT pk_job_history primary key (employee_id, start_date) )'; 

  EXECUTE IMMEDIATE 'CREATE TABLE dependents
  ( Id    NUMBER(6)
  , FirstName     VARCHAR2(20)
  , LastName      VARCHAR2(25)
  , Birthdate Date
  , Relation VARCHAR2(20)
  , Gender VARCHAR2(2)
  , RelativeId Number(6) 
  , CONSTRAINT pk_dependent primary key (Id))';         

end CREATETABLES;

end GESTIONRH;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:33:40+00:00Added an answer on May 20, 2026 at 7:33 am

    You misspelled “constraint” in your first EXECUTE statement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.