Skip to content

Instantly share code, notes, and snippets.

View TrideepLD's full-sized avatar
🗿
tiki tiki

TrideepLD TrideepLD

🗿
tiki tiki
View GitHub Profile
const fs = require('fs');
//We are creating functions so that we can call them in one line for seperate objects and functions to use
var fetchNotes = () => {
try {
var notesString = fs.readFileSync('notes-data.json');
return JSON.parse(notesString);
} catch (e) {
return [];// This happens when try is an error so there is now smth to catch.
}
};
/* Creating the table */
CREATE TABLE Test1(
IntDatatype INT(5)PRIMARY KEY,
VarcharDatatype VARCHAR(15) NOT NULL,
DateDatatype DATE,
FloatDatatype FLOAT(7,2),
DoubleDatatype DOUBLE(15,8),
DatetimeDatatype DATETIME
);
#include <stdio.h>
#include <string.h>
#include <conio.h>
struct Table {
char occupation_title[50];
int employee_number;
float mean_hourwage, annual_meanwage;
};
/*All Sort function sorted in Ascending Order.