-
Notifications
You must be signed in to change notification settings - Fork 4
/
SQLQueryCampus.sql
19 lines (15 loc) · 1.03 KB
/
SQLQueryCampus.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CREATE TABLE APPLICANT(NAME VARCHAR(20),AGE INT,SEX VARCHAR(20),EDUCATION VARCHAR(20),EXTRA VARCHAR(20),SALARY INT,FIELD INT,LOGIN VARCHAR(20),PWD VARCHAR(20));
INSERT INTO APPLICANT VALUES('RAY',20,'male','degree','c',15000,1,'ray','dah');
SELECT * FROM APPLICANT;
CREATE TABLE COMPANY(NAME VARCHAR(20),VACANCY VARCHAR(20),SALARY INT,FIELD INT,LOGIN VARCHAR(20),PWD VARCHAR(20));
INSERT INTO COMPANY VALUES('INFY','SOFTWARE DEV',15000,1,'INFY','MYINFY');
SELECT * FROM COMPANY;
USE GO;
DROP TABLE APPLICANT
CREATE TABLE APPLICANT(NAME VARCHAR(20),AGE INT,SEX VARCHAR(20),EDUCATION VARCHAR(20),EXTRA VARCHAR(20),SALARY VARCHAR(40),FIELD INT,LOGIN VARCHAR(20),PWD VARCHAR(20));
INSERT INTO APPLICANT VALUES('RAY',20,'male','degree','c',15000,1,'ray','dah');
SELECT * FROM APPLICANT;
DROP TABLE COMPANY
CREATE TABLE COMPANY(NAME VARCHAR(20),VACANCY VARCHAR(20),SALARY VARCHAR(20),FIELD VARCHAR(20),LOGIN VARCHAR(20),PWD VARCHAR(20));
INSERT INTO COMPANY VALUES('INFY','SOFTWARE DEV',15000,1,'INFY','MYINFY');
SELECT * FROM COMPANY;