Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ticket_id topic_id
  2. ---------------------
  3. 0001 | 1
  4. 0002 | 3
  5.  
  6. topic_id parent_id sort topic_name
  7. ---------------------------------------------
  8. 1 | 0 | 0 | request
  9. 2 | 1 | 1 | shipment
  10. 3 | 2 | 2 | problem
  11.  
  12. ticket_id | category | case_type | sub_case_type
  13. -----------------------------------------------------
  14. 0001 | request | |
  15. 0002 | request | shipment | problem
  16.  
  17. SELECT ticket.ticket_id, ticket.topic_id, help_topic.topic_name FROM ticket INNER JOIN help_topic ON ticket.topic_id = help_topic.topic_id
Add Comment
Please, Sign In to add comment