Author Topic: [SOLVED] SQL* PLUS Oracle SQL DEVELOPER Help  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

Offline OilSheikhTopic starter

  • Enthusiast
  • Posts: 68
    • View Profile
[SOLVED] SQL* PLUS Oracle SQL DEVELOPER Help
« on: January 04, 2009, 07:09:34 PM »
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
Coding is fun .. if u can do it !

Offline Mark Baker

  • Addict
  • Posts: 1,586
  • Gender: Male
    • View Profile
Re: SQL* PLUS Oracle SQL DEVELOPER Help
« Reply #1 on: January 05, 2009, 12:02:51 PM »
WHERE HIREDATE BETWEEN TO_DATE('<date_format_mask>',a) AND TO_DATE('<date_format_mask>',b)
9 out of 10 PHP problems can be resolved by setting
Code: (php) [Select]
error_reporting(E_ALL);
ini_set('display_errors', 1);
php -l <filename> will identify 9 out of the remaining 10 problems
Remember, the command line is your friend
Development Projects: PHPExcel and PHPPowerPoint

Offline OilSheikhTopic starter

  • Enthusiast
  • Posts: 68
    • View Profile
Re: SQL* PLUS Oracle SQL DEVELOPER Help
« Reply #2 on: January 06, 2009, 08:58:21 PM »
Thanks. Sort of helped.
Coding is fun .. if u can do it !