import{_ as s}from"./chunks/PageInfo.vue_vue_type_script_setup_true_lang.250b3e56.js";import{_ as n,o,c as t,H as l,k as a,a as r,Q as i}from"./chunks/framework.b7580407.js";import"./chunks/commonjsHelpers.725317a4.js";const k=JSON.parse('{"title":"CIS105: Computer Applications & Information Systems Lect. 17","description":"","frontmatter":{},"headers":[],"relativePath":"academic/cis105/cis105-l17-lecture-note.md","filePath":"academic/cis105/cis105-l17-lecture-note.md","lastUpdated":1726415491000}'),p={name:"academic/cis105/cis105-l17-lecture-note.md"},c=a("h1",{id:"cis105-computer-applications-information-systems-lect-17",tabindex:"-1"},[r("CIS105: Computer Applications & Information Systems Lect. 17 "),a("a",{class:"header-anchor",href:"#cis105-computer-applications-information-systems-lect-17","aria-label":'Permalink to "CIS105: Computer Applications & Information Systems Lect. 17"'},"")],-1),m=i('
JOIN Query JOIN & ON Clauses JOIN: Join tables together to connect multiple fields into 1 query.ON: Linking the primary and foreign keyFROM table1 + JOIN table2 ON table1.primarykey = table2.foreignkeySELECT first_name, last_name, link_to_major, major_id, major_name\n FROM member\n JOIN major\n ON member. link_to_major = major.major_idSELECT first_name, last_name, link_to_major, major_id, major_name\n FROM member\n JOIN major\n ON member. link_to_major = major.major_idThe common conventional format of SQL date & time searching is as followed, in form of YEAR-MONTH-DATT12:00:00
'2022-04-17T12:00:00''2022-04-17T12:00:00'