473,432 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,432 software developers and data experts.

help for sql query

12
i have table with name sample in my database it has threecolumns namely words,D1,D2 and
it has some data like below


Words D1 D2 D3
pleasure 1 0 1
question 0 0 0
answer 0 1 1
request 1 0 0
scount 1 0 0


so now i want to calculate parameter N00 which means scount=0 and also it should check where 0 exists in D1 and D2 so here for "question" D1=0 D2=0 and scount=0 so the result should be 2 because scount=0 and D1=0 , scount=0 and D2=0 this both satisfy so result is 2 i need sql query fo this please help advance thanks.
Jul 9 '10 #1
1 1045
code green
1,726 Expert 1GB
What have you got so far and what is happening?
Jul 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: compusup3000 | last post by:
Hi, I have an orders database and I need to be able to write a query that groups sales by: 1. Date 2. Time of day (both am and pm) I currently have a date/time field named "Submitted" that...
1
by: MK Randall | last post by:
We're losing a Sybase datasource and need to pull from an identical DB2 database until the SQL Server becomes available later on this year. If someone could read through the query and let me know...
1
by: Lumpierbritches | last post by:
I'm trying to pull all the parents of a particular animal and I have my SQL statement that says not supported and when I attempt to run the Query, I get The SQL statement couldn't be executed...
3
by: eddie wang | last post by:
Hello, I am working on an Access database. For some strange reason, my query keeps getting erased by itself. The SQL view of my query object looks like this: SELECT * FROM emp WHERE...
1
by: maurizio.ferracini | last post by:
a student know one ore more programming language in a mask i select from a list_box one or more language and i send ad parameter to a query that extract the student that know all this language....
6
by: RDMRDM | last post by:
I have a list box in Access that I have set to allow mulitple choices. Wondering what I need to do to my query in order to pull back the data from the multiple fields. I want to be able to select...
1
by: dbarmer | last post by:
I have a unix database system that hold three tables, 254, 255, 256, and all are linked together by WO, CUST NO, LOC NO. This is for Unix Program Purposes Only. Duplication here is by design. So...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
4
by: cephal0n | last post by:
Hi everyone! I've been studying SELECT INTO in vba and made my own. I was successful in generating my own table, strSql = "SELECT * INTO tblTemp49 FROM qryUnq49" conn.Execute strSql now I...
3
by: shankarsunmicrosys | last post by:
Hi, Could you please suggest, how to sort the data coming from a select query in DB2 UDB V8, without having order by clause? My query look like this:
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.