Question: Write an SQL script that performs the following. Prompts the user for Employee Number (use the SQL Plus PROMPT (Links to an external site.) command)


Write an SQL script that performs the following.

  • Prompts the user for Employee Number (use the SQL Plus PROMPT (Links to an external site.) command)
  • Accepts a value of 7900 (use the SQL Plus ACCEPT (Links to an external site.) command; the value will be stored in a substitution variable)
  • Generates a query to display , Employee Number (Emp ), Department Number (Emp ), Department Name (Dept ), Salary (Emp), and HireDate (Emp)

Step by Step Solution

3.46 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Here is a possible SQL script that performs the tasks we nedd... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!