DBMSPRAC
DBMSPRAC
name char(10),
rollno char(10),
marks char(5)
);
age char(10) );
DESC student;
DESC student;
name char(10),
rollno char(10) );
DML COMMANDS:
Apply Integrity Constraints (NOT NULL, CHECK, UNIQUE, DEFAULT) for the
specified database system
CREATE TABLE STUDENT(
NAME CHAR(10) NOT NULL,
ROLLNO CHAR(10) NOT NULL
);
Apply foreign key relationship and primary key constraints to relations in the
specified database system
SELECT*FROM person
WHERE name LIKE 'J%';
SELECT*FROM person
WHERE name LIKE '%E%';
SELECT*FROM person
WHERE name LIKE '_E%';
SELECT*FROM person
WHERE name LIKE 'E_%_%';
SELECT*FROM person
WHERE name NOT LIKE 'E%';
Perform and Implement outer Join operations on your database tables
SELECT* FROM
PERSON INNER JOIN STUDENT
ON PERSON.AGE = STUDENT.AGE;
CREATE OR REPLACE VIEW EMP_NO_DEPT_NO AS SELECT EMPNO, DEPTNO, SAL FROM EMP;
select * from EMP_NO_DEPT_NO;