import{_ as n}from"./chunks/PageInfo.vue_vue_type_script_setup_true_lang.65c6b98c.js";import{_ as o,o as t,c as l,k as e,a as r,E as i,O as p}from"./chunks/framework.c989bd33.js";import"./chunks/commonjsHelpers.725317a4.js";const g=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":1726417910000}'),c={name:"academic/cis105/cis105-l17-lecture-note.md"};function m(d,a,u,y,h,b){const s=n;return t(),l("div",null,[a[0]||(a[0]=e("h1",{id:"cis105-computer-applications-information-systems-lect-17",tabindex:"-1"},[r("CIS105: Computer Applications & Information Systems Lect. 17 "),e("a",{class:"header-anchor",href:"#cis105-computer-applications-information-systems-lect-17","aria-label":'Permalink to "CIS105: Computer Applications & Information Systems Lect. 17"'},"")],-1)),i(s,{readTime:"1",words:"131"}),a[1]||(a[1]=p('
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'