Skip to content

Instantly share code, notes, and snippets.

@bevsxyz
Last active June 29, 2024 07:26
Show Gist options
  • Save bevsxyz/adfe3c9490d90c032633e7873c1a5551 to your computer and use it in GitHub Desktop.
Save bevsxyz/adfe3c9490d90c032633e7873c1a5551 to your computer and use it in GitHub Desktop.
CREATE TABLE Loan (
EMI_No INT,
DueDate DATE,
PaymentDate DATE,
Amount DECIMAL(10, 2),
Default_Status INT
);
INSERT INTO Loan (EMI_No, DueDate, PaymentDate, Amount, Default_Status) VALUES
(1, '2024-01-01', '2024-01-01', 1000.00, 0),
(2, '2024-02-01', '2024-02-05', 1000.00, 1),
(3, '2024-03-01', '2024-03-01', 1000.00, 0),
(4, '2024-04-01', '2024-04-10', 1000.00, 1),
(5, '2024-05-01', '2024-05-20', 1000.00, 1),
(6, '2024-06-01', '2024-05-25', 1000.00, 0),
(7, '2024-07-01', '2024-07-04', 1000.00, 1),
(8, '2024-08-01', NULL, 1000.00, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment