조인 예제 -- 문1) Nancy의 급여보다 많은 급여를 받는 사원의 이름과 급여 select * from employees; select salary from EMPLOYEES e ; select salary from EMPLOYEES e where first_name='Nancy'; -- 12,008 select first_name, salary from EMPLOYEES e where salary > 12008; select first_name, salary from EMPLOYEES e where salary > (select salary from EMPLOYEES e where first_name='Nancy');-- ..
디비버(DBeaver) 설치 Serge Downloadhttps://dbeaver.io/download/ Download | DBeaver CommunityDownload DBeaver Community 25.0.3 Released on April 20th 2025 (Milestones). It is free and open source (license). Also you can get it from the GitHub mirror. System requirements. DBeaver PRO 25.0 Released on March 10th, 2025 PRO version website: dbeaver.codbeaver.io ● 다운로드 파일 더블 클릭 ..
오라클 설치 ● 오라클 : Oracle Database 11g Express Edition● 압축 풀기● 압축 푼 폴더의 disk1 폴더로 들어가기 암호 : Oracle12345 □ 설치 확인 및 hr 계정 잠금 풀기 1. 설치확인 cmd 창 열기 sqlplus Enter user-name : system Enter password:Oracle12345 sqlplus : 오라클 데이터베이스 접속용 프로그램 오라클 db설치할 때 함께 설치됨 system 계정 : 오라클 데이터베이스에서 최고 권한을 가진 sys계정의 데이베이스 관리 권한을 위임받은 관리용 계정 2. 오라클에서 제공하는 hr이라는 계정 사용하기 위해 잠금을 풀기 alter..
정리 문제 답 /*1. 다음 설명에 해당하는 용어를 쓰시오. [ 데이터베이스를 관리하고 운영하는 소프트웨어로, 데이터베이스에 저장된 데이터의 작업을 수행하고, 보안을 제공하는 역할을 함. 다양한 데이터가 저장되어 있어있는 DB는 여러 명의 사용자나 응용 프로그램과 공유하고 동시에 접근이 가능해야한다] DBMS(Database Management System, 데이터베이스 관리 시스템)2. 다음은 데이터베이스 구현과정이다. ( )안에 알맞은 용어를 쓰시오. 요구사항 -> 요구분석 -> ( ① ) -> ( ② ) -> ( ③ ) -> 데이터베이스 구현 요구사항..
조인 예제2 답 use product_db;-- 1. porderTBL 테이블과 productTBL테이블을 이용하여 -- 판매금액을 구하세요.-- orderid, pcode, amount(수량), price(가격), -- 판매금액(수량 * 가격), pname(제품명), region(원산지)select orderid, p.pcode, amount as 수량, price as 가격, (amount * price) as 판매금액, pname as 제품명, region as 원산지from pordertbl o , producttbl pwhere o.pcode = p.pcode;-- ==select orderid, p.pcode, amount as 수량, price as 가격, (amount ..
dml과 조인예제1 답 use product_db;select * from customertbl ;select * from pordertbl ;select * from producttbl;-- 문1) pordertbl과 producttbl테이블을 이용해서 -- orderdate, pcode, pname, amount, -- 판매가격( amount * price)을 조회하세요.select o.orderdate, p.pcode, p.pname, o.amount, (o.amount * p.price) as 판매가격from pordertbl o, producttbl pwhere o.pcode = p.pcode;-- ===select o.orderdate, p.pcode, p.pname, ..
하위절과 테이블 복사 예제 답 use product_db;-- drop table 테이블명; 테이블 제거하고 다시 만들어서 작업하기-- 문1) pordertbl테이블에서 amount를 내림차순 정렬하고 -- 정렬된 자료 중에서 상위 10개의 자료만 조회하시오.-- 단, pordertbl 테이블 복사해서 copy_poder를 만들어 작업-- 상위 10개 자료 구하기select * from pordertblorder by amount desc limit 10;-- 테이블 복사만drop table if exists copy_poder;create table copy_poder asselect * from pordertbl;-- 상위 10개 자료 구하기select * from copy_poderorder ..