Skip to content

A mini sql engine which will run a subset of SQL queries using command line interface

Notifications You must be signed in to change notification settings

naman14310/Mini_SQL_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-SQL-Engine

A mini sql engine which will run a subset of SQL queries using command line interface

Type of Queries

  1. Project Columns (could be any number of columns) from one or more tables.

Select * from table_name;

  1. Aggregate functions : Simple aggregate functions on a single column.Sum, average, max, min and count. They will be very trivial given that the data is only integers.

Select max(col1) from table_name;

  1. Select/project with distinct from one table (distinct of a pair of values indicates the pair should be distinct)

Select distinct col1, col2 from table_name;

  1. Select with WHERE from one or more tables

Select col1,col2 from table1,table2 where col1 = 10 AND col2 = 20;

  1. Select/Project Columns(could be any number of columns) from table using “group by”

Select col1, COUNT(col2) from table_name group by col1.

  1. Select/Project Columns from table in ascending/descending order according to a column using “order by”.

Select col1,col2 from table_name order by col1 ASC|DESC.

About

A mini sql engine which will run a subset of SQL queries using command line interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published