SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT ActionID, FeedbackID, StaffID, ActionDate, ActionDetails,
  2.        (SELECT StaffName, Department
  3.         FROM staff
  4.         WHERE staff.StaffID=action.StaffID)
  5. FROM action;
  6.      
  7. SELECT a.ActionID, a.FeedbackID, a.StaffID, a.ActionDate, a.ActionDetails
  8. , b.staffName, b.department
  9.  
  10. FROM action a
  11. LEFT JOIN staff b on a.staffid=b.staffid
  12.      
  13. SELECT
  14.     A.ActionID, A.FeedbackID, A.StaffID, A.ActionDate, A.ActionDetails,
  15.     S.StaffName, S.Department
  16.  
  17. FROM Action AS A
  18.     INNER JOIN Staff AS S ON Action.ActionID = Staff.ActionID
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top