Click here to Skip to main content
15,916,527 members
Home / Discussions / Database
   

Database

 
GeneralRe: cursors in functions Pin
Rocky#19-Oct-07 0:55
Rocky#19-Oct-07 0:55 
AnswerRe: cursors in functions Pin
neeraj_indianic19-Oct-07 19:25
neeraj_indianic19-Oct-07 19:25 
QuestionCORBA , MSP Pin
hellogany18-Oct-07 17:36
hellogany18-Oct-07 17:36 
AnswerRe: CORBA , MSP Pin
Colin Angus Mackay18-Oct-07 22:37
Colin Angus Mackay18-Oct-07 22:37 
AnswerRe: CORBA , MSP Pin
Paul Conrad21-Oct-07 10:31
professionalPaul Conrad21-Oct-07 10:31 
QuestionMatching two tables in SQL on certain Fields Pin
Vimalsoft(Pty) Ltd18-Oct-07 4:41
professionalVimalsoft(Pty) Ltd18-Oct-07 4:41 
AnswerRe: Matching two tables in SQL on certain Fields Pin
andyharman18-Oct-07 4:55
professionalandyharman18-Oct-07 4:55 
GeneralRe: Matching two tables in SQL on certain Fields Pin
Vimalsoft(Pty) Ltd18-Oct-07 5:40
professionalVimalsoft(Pty) Ltd18-Oct-07 5:40 
Questionput a default value Pin
Sarfaraj Ahmed18-Oct-07 4:36
Sarfaraj Ahmed18-Oct-07 4:36 
Questionselect statement to another database on another server Pin
Support12318-Oct-07 2:11
Support12318-Oct-07 2:11 
QuestionP.S. Pin
Support12318-Oct-07 2:16
Support12318-Oct-07 2:16 
AnswerRe: P.S. Pin
astanton197819-Oct-07 5:22
astanton197819-Oct-07 5:22 
AnswerRe: select statement to another database on another server Pin
neeraj_indianic22-Oct-07 20:10
neeraj_indianic22-Oct-07 20:10 
Questionhow to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:01
attalurisubbu18-Oct-07 2:01 
AnswerRe: how to capture count of records from stored procedrure Pin
Illegal Operation18-Oct-07 2:03
Illegal Operation18-Oct-07 2:03 
GeneralRe: how to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:06
attalurisubbu18-Oct-07 2:06 
AnswerRe: how to capture count of records from stored procedrure Pin
pmarfleet18-Oct-07 2:05
pmarfleet18-Oct-07 2:05 
GeneralRe: how to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:15
attalurisubbu18-Oct-07 2:15 
GeneralRe: how to capture count of records from stored procedrure Pin
pmarfleet18-Oct-07 2:23
pmarfleet18-Oct-07 2:23 
AnswerRe: how to capture count of records from stored procedrure Pin
neeraj_indianic19-Oct-07 21:12
neeraj_indianic19-Oct-07 21:12 
QuestionAutomatic Add and Update Pin
Sarfaraj Ahmed18-Oct-07 1:36
Sarfaraj Ahmed18-Oct-07 1:36 
Hello Everybody

I am new in SQL SERVER 2005 and ASP.NET 2.0 , Im doing a Online Library Management Project, I know you are expert and please help me.

On Borrower Table
MemberID, ItemID, DateTaken, Duedate, SubmitDate, Delay

On Penalty Table
MemberID, ItemID, Fine, Paid, DatePaid

(B as Borrower and P as Penalty) and a Member borrow a Item and Borrower below

B.MemberID = SCOM1001
B.ItemID=EBEG100302
B.DateTaken = 14/10/2007
B.DueDate= 16/10/2007
B.Submitdate= NULL
B.Delay=NULL

right now CurrentDate is 18/10/2007 and M.MemberID = SCOM1001 did not return ItemID = EBEG100302 .

Per day penalty is 1.500 and Member already delayed 2 days and Tomorrow it will be 3 days then 4 days then 5 days............

Just think Penalty Table is Empty, If you delay 1 day then Penalty Table will automatic add MemberID, ItemID, Fine

P.MemberID=SCOM1001
P.ItemID = EBEG100302
P.Fine=1.500
P.Paid=NO
P.PaidDate=NULL

Dealy day 2
Penalty Table will automati update P.Fine, Value will be 3.000

Delay day 3, day4....................... UpdateP.Fine

My Question is it possible to write some code inside my SQL SERVER datbase, Which will automatic check the B.DateDue column and (add or update Penaly Table where necessary)
I can write some function inside ASP.NET which will create a report for my needs but It will be taken more time.

I want my DataBase will check column status and put value to other table or same table where necessary.

Please tell me how can I do it? Any instruction will be really helpful.

Thanks
Sarfaraj Ahmed


Sarfarj Ahmed

AnswerRe: Automatic Add and Update Pin
pmarfleet18-Oct-07 2:04
pmarfleet18-Oct-07 2:04 
GeneralRe: Automatic Add and Update Pin
Sarfaraj Ahmed18-Oct-07 2:26
Sarfaraj Ahmed18-Oct-07 2:26 
GeneralRe: Automatic Add and Update Pin
pmarfleet18-Oct-07 2:42
pmarfleet18-Oct-07 2:42 
Questionproblem in javascript Pin
Arihant rathi18-Oct-07 0:49
Arihant rathi18-Oct-07 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.