I need to create sqlite statement that checks if a specific column value is not null then add a new column and insert the new value.
What I already have is this :
CREATE TABLE "StuPayment" (
"PayNumber" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"StudentName" ntext,
"CourseName" ntext,
"PayDate" datetime,
"CheckNumber" NUMERIC,
"Amount" NUMERIC
)
What I want to create is a new payment columns (PayDate1,CheckNumber1,Amount1)
when a student pays a course cost on two payments or maybe three sometimes.
Thanks for your time reading this.