Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include #include #define COLUMNS 3 typedef struct Column { int id; char name [ 2 0 ] ; struct Table * table; int data

#include
#include
#include
#define COLUMNS 3
typedef struct Column {
int id;
char name[20];
struct Table *table;
int data[100];
} Column;
typedef struct Table {
int id;
char name[20];
struct Database *db;
struct Column *column[COLUMNS];
} Table;
typedef struct Database {
int id;
char name[20];
struct Table *tables;
} Database;
// Function to create a table
Table *createTable(Database *db, const char *tableName, const char *col1Name, const char *col2Name){
Table *table =(Table *)malloc(sizeof(Table));
complete this code as the follow :
Modify the given database management system code. Extend its functionality to support creation of tables given the following query:
CREATE TABLE
more than two columns may exist.
you can rearrange the given code into functions for readability.
Then, modify the code to support the insertion into any of the created tables.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

=+ b. The money demand function in Hicksonia is (M/P) d = Y 100r.

Answered: 1 week ago