Database & SQL

Moderators: None (Apply to moderate this forum)
Number of threads: 1194
Number of posts: 2247

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
need some help with this check book program Posted by noob_pro on 24 Feb 2005 at 7:40 AM
i need something that lets u able to write a check, make sure its cleared or not(boolean?), have the account(s) have a number, keep track of withdrawls, deposits, including when they happened, where it happened, how much it was, how much u have left in the account and if it cleared. I need to use this with VB. Still confused on store procedures and what if i need to make linking tables. Cuz i need to see something like on a bank website, date, description, amount,cleared or not, the check number,and how much is left in the account im so lost i've tried reading and thats just not helping. umm this is the code i've kinda gotta off with its prolly wrong





use master
go

drop database checkbook
go

create database checkbook
go

use checkbook
go

create table account(
AID int Primary Key Identity(1,1),
AFName varchar(20) not null,
ALName char(20) not null,
APhone char(7) not null check (APhone like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9]' or APhone like ' '),
AAddress varchar(20) not null,
Amoney decimal(12,2) not null
);
go
insert into account values('brian','poof','5431234','snowshoe',100);
insert into account values ('chris','deaf','1234123','hamilton',-50);
go


create table Trans(

Tdate datetime not null,
Tdesc varchar(20) not null,
Tcash decimal(12,2),
Tdep decimal(12,2),
--Tclear boolean?
);
go
insert into Trans values('2/20/2005','Carpayment',-50,0);
insert into Trans values('2/20/2005','Paycheck',0,100);
go

create table Saving(

SFName varchar(20) not null,
SLName varchar(20) not null,
SPhone char(7) not null check (SPhone like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9]' or SPhone like ' '),
SAddress varchar(20) not null,
Smoney decimal(12,2) not null
);
go

insert into saving values('brian','poof','6980654','crom',200);
insert into saving values('dave','chris','6546547','shangful',100);
go

--create table WriteCheck(
--create table Transfer(



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.