| how to write below procedure [message #646856] |
Tue, 12 January 2016 02:56  |
 |
ram7aj1a0235
Messages: 7 Registered: January 2016
|
Junior Member |
|
|
actually i had two tables one is staff table and other one is medical speciality table and both are interlinked by staff_id,and in staff table date hired column is there and in medical speciality date awarded column is there and my requirement is date hired should be greater than date awarded,otherwise raise an error.
i want to create a procedure for this one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: how to write below procedure [message #646884 is a reply to message #646869] |
Wed, 13 January 2016 04:00  |
pablolee
Messages: 2882 Registered: May 2007 Location: Scotland
|
Senior Member |
|
|
cookiemonster wrote on Tue, 12 January 2016 15:43the dates are on separate tables.
True, but you could always create a view with an appropriate where clause and a with check option to achieve the same...
|
|
|
|