WebClub-NITK / Hacktoberfest-2k18

Repository for Hacktoberfest 2018 open for the global open source community.
https://webclub-nitk.github.io/Hacktoberfest-2k18/
19 stars 102 forks source link

Object oriented relational database system #17

Open Ram-Aditya opened 6 years ago

Ram-Aditya commented 6 years ago

Description

Implement a simple object-oriented relational database that can store and retrieve student details. The implementation consists of 4 steps.

1. Create classes/structures

You need to create a class/structure and add functionalities to the same, for the following Database entities:

2. Store data

3. Retrieval of Data

You need to add functionality to implement the following SQL command:

SELECT col_name1, col_name2,... FROM table_name LIMIT n ;

This is used to display the values stored in the mentioned columns for n students. Use the col_name1, col_name2, etc and table_name strings given as part of the input-command to match and retrieve the correct values from the database. Present a neat grid-style output.

4. Performing I/O

Once the program is loaded and the CSV files have been parsed and stored into appropriate objects, ask the user to provide their user-ID (this can be any random integer value and will be used for logging). The user can now input a command such as:

SELECT Name, RollNo FROM StudentDetails LIMIT 10 ;

The expected output is the list of Name and RollNo. of 10 students.

Keep taking command input until the user enters: EXIT.

Details

Resources

https://www.w3schools.com/sql/ https://www.tutorialspoint.com/sql/sql-rdbms-concepts.htm

Directory Structure

For this issue, use the following directory of the Hacktoberfest-2k18 repository: /systems/dbms/simple_object_oriented/language_name

(where language_name is one of the languages mentioned above.) You may add subdirectories under this if you want to organize your CSV files and program files.

Note

Please claim the issue first by commenting here before starting to work on it.

andymac-2 commented 6 years ago

Can I take this one on in C?

mahim23 commented 6 years ago

@andymac-2 sure you can start working on it.

andymac-2 commented 6 years ago

This is taking a little longer than I expected, but I should be done by tomorrow about this time.

Ram-Aditya commented 6 years ago

@andymac-2 Please try to submit by tomorrow else the implementation in C will have to be handed over to the next person who will request it.