Coder Social home page Coder Social logo

dbms-assign-10's Introduction

dbms-assign-10

create table employee11(empid number(3), name varchar2(25), doj date, jobid varchar(15),salary number(8)); insert into employee11 values(100,'Aman Jian','17-june-2017','AD_PRES',24000.00); insert into employee11 values(101,'Yash Kumar','15-july-2019','AD_vp',17000.00); insert into employee11 values(102,'Ayushi','12-aug-2017','IT_PROG',9000.00); insert into employee11 values(103,'Kamal','15-sep-2016','IT_PROG',6000.00); insert into employee11 values(104,'Madhav Mohan','14-july-2018','IT_PROG',4000.00); insert into employee11 values(105,'Astha sharma','27-june-2017','PU_CLERK',2500.00);

SELECT * FROM employee11; select NAME from employee11 where salary>(SELECT SALARY from employee11 where empid=104); SELECT NAME,SALARY,JOBID from EMPLOYEE11 where JOBID=(SELECT JOBID FROM EMPLOYEE11 WHERE empid=103);

SELECT name, salary, jobid
FROM employee11
WHERE salary IN
( SELECT MIN(salary)
FROM employee11
GROUP BY jobid );

SELECT * FROM EMPLOYEE11 WHERE DOJ=(SELECT DOJ FROM EMPLOYEE11 WHERE EMPID=105);

SELECT * FROM EMPLOYEE11 WHERE DOJ>(SELECT DOJ FROM EMPLOYEE11 WHERE EMPID=105);

dbms-assign-10's People

Contributors

arnavs1999 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.