| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
- 문자열
- 삼항 연산
- interface
- extends
- 삼항 연산식
- 상수
- 2차원 배열
- docker
- jsp
- 인터페이스
- 오버로딩
- javascript
- 이중 배열
- If
- Else If
- Break
- 다형성
- 상속
- 배열
- arraylist
- Integer.MAX_VALUE
- 중첩for문
- Integer.MIN_VALUE
- 이클립스
- super()
- rs.next()
- 자바
- for문
- scanner
- 메소드
- Today
- Total
목록SQL (5)
개발로드
1) pordertbl과 producttbl테이블을 이용해서 orderDate, pcode, -- pname, amount, 판매가격( amount * price)을 조회 select orderDate, od.pcode, pname, amount, format((amount*price),0) as 판매가격 from pordertbl as od join producttbl as pd on od.pcode = pd.pcode; 2) pordertbl 테이블과 customertbl 테이블을 이용 -- 주문자(cname), 주문일자(orderdate), 개수(amount), 주소(address)를 조회 select cname as 주문자, orderdate as 주문일자, amount as 개수, address..
use jointestdb; 1) porderTBL테이블에서 custid가 'c1'인 자료를 모두 삭제 delete from pordertbl where custid='c1'; 2) porderTBL 테이블의 모든 자료를 삭제 delete from pordertbl; 3) porderTBL 테이블 자체를 제거 drop table pordertbl; 4) customerTBL 테이블에서 gender가 '남'인 자료만 삭제 delete from customertbl where gender='남'; 5) customerTBL 테이블에서 address가 '서울 강남'인 자료들을 모두 '강남'으로 수정 update customertbl set address = '강남' where address like '서울 강..
use jointestdb; 1) porderTBL 테이블과 productTBL테이블을 이용해서 판매금액을 구하기 orderid, pcode, amount(수량), price(가격), 판매금액(수량 * 가격), pname(제품명), region(원산지) select orderid, po.pcode, amount as 수량, price as 가격, format((amount*price),0) as 판매금액, pname as 제품명, region as 원산지 from pordertbl po join producttbl pd on po.pcode = pd.pcode; 2) porderTBL 테이블과 productTBL테이블을 이용해서 pname, 주문금액(수량 * 단가) 판매수량(amount)을 검색하되, 판..
use jointestdb; 1) customertbl테이블에서 gender가 "남"인 자료만 모든 컬럼을 검색 검색 : select , gender가 "남"이라는 조건 : where select * from customertbl where gender='남'; 2) customertbl테이블에서 address가 "서울 송파"인 자료들 중 custid, cname, phone만 검색 select custid,cname,phone from customertbl where address='서울 송파'; 3) customertbl테이블에서 address가 "서울 관악"인 자료들 중 custid, cname만 검색하되 custid는 고객ID, cname은 고객명으로 컬럼명을 출력 select custid as ..