I have a database which has two tables. One table contains the information of all the servers in my environment with feilds like server_name, db_name, application, Pri_dba etc. and the other table has contact info for all the DBA like thier phone numbers emails etc. I want to write a stored procedure which accepts 3 values from users that is Server name , Database & Application. It should then uniquely identify the Primary DBA based on this info and display all the contact information for that DBA.
I figured I can identify the primary DBA from table 1 and display the result from table 2.
This might be a very easy task but I am a new DBA so Can any one please help.
I have a database which has two tables. One table contains the information of
Share
try something like this. Obviously you will need to substitute correwct column names…