-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdata.sql
More file actions
49 lines (43 loc) · 1.01 KB
/
Copy pathdata.sql
File metadata and controls
49 lines (43 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
INSERT INTO payment_mode (name)
VALUES
('Credit Card'),
('Debit Card'),
('Net Banking'),
('UPI'),
('Cash'),
('Digital Wallet');
ALTER TABLE payment_mode
ADD type VARCHAR(255);
UPDATE payment_mode
SET type = CASE
WHEN LOWER(name) = 'credit card' THEN 'LIABILITY'
ELSE 'ASSET'
END;
INSERT INTO bank (name) VALUES
('State Bank of India'),
('HDFC Bank'),
('ICICI Bank'),
('Axis Bank'),
('Punjab National Bank'),
('Bank of Baroda'),
('Canara Bank'),
('Central Bank of India'),
('Union Bank of India'),
('IndusInd Bank'),
('Kotak Mahindra Bank');
INSERT INTO system_category (name) VALUES
('Groceries'),
('Dining Out'),
('Rent/EMI'),
('Utilities (Electricity/Water)'),
('Fuel/Transportation'),
('Health & Medical'),
('Insurance'),
('Shopping (Clothing/Electronics)'),
('Entertainment & OTT'),
('Education'),
('Investments (SIP/Stocks)'),
('Gifts & Donations'),
('Travel & Vacation'),
('Maintenance & Repairs'),
('Miscellaneous');