Jump to content

[SOLVED] SQL* PLUS Oracle SQL DEVELOPER Help


Recommended Posts

It's been a long time sicne I cam here. Well, I finished my degree and went the tech support road rather than the Programming road for work.  ;D

 

But, I m now back in uni and am once again doomed!

 

I need some help with SQL. Help would be much appreciated. Please tell me on how to fix the incorrect code I have.

 

1. A script that asks for two hire dates and enables finding employees between them. ( Yes, I already have a table! )

Output required:

 

EMPLOYEES    HIRE DATE

__________    ________

Empname, job  date

 

 

 

 

PROMPT Enter First Date

ACCEPT a DATE

PROMPT Enter Second Date

ACCEPT b DATE

SELECT ENAME, JOB, HIREDATE

FROM EMP

WHERE HIREDATE BETWEEN a AND b

COLUMN ENAME HEADING Employees

COLUMN ENAME FORMAT ENAME, JOB

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.