LAB Assignment 1
Developing a database engine using C:
accountID |
Name |
Address |
Salary |
|
|
|
|
|
|
|
|
transactionID |
accountID |
amount |
|
|
|
|
|
|
The first table (employee) can be designed using
struct employee {
int accounted;
char Name[30];
char Address[30];
float Salary;
} emp;
similarly second table can be designed.
Handling queries:
Handling SQL command prompt:
Exampleà If I give input: “select Name from Employee where Salary>5000”
It will execute ‘handling queries’ number 1.
These will be given to solve in home.
Give similar examples in LAB (Lab instructor).