Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2005, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default Condition before insert the records

what Condition (query) will use when data already exit ?

data in table like this.

userid..empno..vdate....video1...........video2... ........video3........video4....video5
-----------------------------------------------------------------------------
Martin.06367.. 1/2/2005..Office Safety....................Road Safety.....................
Martin.06367. 2/2/2005..------------... Electrical Safety.--------........................
John...01237. 2/2/2005...------.........Electrical Safety.................................
John...01237. 4/2/2005..Office Safety..--.................Road Safety....................
Peter..01541. 5/2/2005...Office Safety..-----..............Road Safety....................
Peter..01541. 6/2/2005....---------.....Eelectrical Safety.--------.......................
and so on

desh means emty records (not view the video)


userid=Request.QueryString("userid")

checkbox1=Request.Form("checkbox1")
checkbox2=Request.Form("checkbox2")
checkbox3=Request.Form("checkbox3")
........
....



Martin view the video1, video2 and video3, and not view the video4 and video5

// before insert the records how can check (condition) that Martin view the video1,video2 and video3,
it give message already view the video if user check checkbox video4 and video5 then it insert the record.


what condition (Query) will use in asp to check the records in the table ?

records insert like this.


isql1="insert into PVideo (video1,video2,video3,video4,video5,video6,video7, video8,video9,video10,video11,video12,video13,vide o14,userid,vdate) values ("
isql3="'" & checkbox1 & "',"
isql4="'" & checkbox2 & "',"
isql5="'" & checkbox3 & "',"
.......
...

isql18="'" & vdate & "')"

regards

Mateen





Similar Threads
Thread Thread Starter Forum Replies Last Post
add condition to COMMAND;ignore records for 3 min aubie1 Crystal Reports 0 July 17th, 2006 11:41 AM
Question about counting records based on condition TheBlueSky Crystal Reports 1 May 31st, 2006 03:35 AM
Insert multiple records mateenmohd Access 13 November 2nd, 2004 09:15 AM
insert multiple records mateenmohd Classic ASP Basics 19 October 18th, 2004 01:22 AM
count records where condition not true (IIF??) rpeksens Access 3 September 19th, 2003 03:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.