Code Monkey home page Code Monkey logo

minisql-engine-and-two-phase-merge-sort's Introduction

MiniSql-Engine And Two Phase Merge Sort

Mini​ sql engine which will run a subset of SQL Queries using ​ command line interface​.

Type of Queries:​​

  1. Select all records :
	select * from table_name;
  1. Aggregate functions: Simple aggregate functions on a single column. Sum, average, max and min. They will be very trivial given that the data is only numbers.
	Select MAX(col1) from table1;
  1. Project Columns(could be any number of columns) from one or more tables :
	Select col1, col2 from table_name;
  1. Select/project with distinct from one table : Select distinct(col1), distinct(col2) from table_name;

  2. Select with where from one or more tables :

	Select col1,col2 from table1,table2 where col1 = 10 AND col2 = 20;
a. In the where queries, there would be a maximum of one AND/OR operator with no NOT operators.
  1. Projection of one or more(including all the columns) from two tables with one join: condition :
> Select * from table1, table2 where table1.col1=table2.col2;
> Select col1,col2 from table1,table2 where table1.col1=table2.col2;

Two Phase Merge Sort

Repository also contains two phase merge sort which is used for sorting data more than the size of Main memory. Instruction for running the sort are provided in pdf inside sort's folder.

minisql-engine-and-two-phase-merge-sort's People

Contributors

jainayush975 avatar

Watchers

 avatar  avatar  avatar  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.