473,466 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access Query where i can sum occurrence of particular word

62 New Member
I want to add column in the query which will sum the occurrence of word "authorized"
Suppose query returns 1 row as result.
In that one row how many times word "authorized" has occurred
For Example
Expand|Select|Wrap|Line Numbers
  1.  employee code    Item 1          Item 2        Sum
  2.        1           Authorized      Not           1
  3.        2           Authorized      Authorized    2
  4.        3           Not             Not           0
  5.  
This Way Plz Help
Dec 10 '13 #1
1 1045
zmbd
5,501 Recognized Expert Moderator Expert
You're looking at something along the lines of:

Expand|Select|Wrap|Line Numbers
  1. SELECT [pk]
  2.    ,[nId]
  3.    ,[lang1]
  4.    ,[lang2]
  5.    ,IIF(NZ([lang1],0)="a",1,0) 
  6.       + IIF(NZ([lang2],0)="a",1,0) 
  7.       AS sumofa
  8. FROM [tbl_expiment];
  9. )
Ideally you would normalize this db: > Database Normalization and Table Structures.
Dec 10 '13 #2

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

Similar topics

1
by: Jack | last post by:
Hi, I have a stored access query which is corresponding to a particular id. However, I am using a login script to capture the value of an id. Now, I want to dynamically open the stored query by...
3
by: Omavlana | last post by:
Hi, How to get the value as 0 insted of NULL if there is no data found in the database for a particular column in the following Access query. select col1, col2 from tab1; If there are null...
1
by: joeygun | last post by:
I'm trying to do something I thought would be easy, and maybe it is, but I've spent the afternoon now reading about bookmarks, templates, Word mail merge, VBA, automation and am seemingly no...
6
by: Fred Glickman via AccessMonster.com | last post by:
I need to find a way to automatically create several Word docs from 1 access query. Example: I have a query which has 40 records in it according to my criterea. Let's say that it is employees....
8
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields...
7
by: nadsweb | last post by:
Hi I have a very strange Problem. I have tried to import data from an access query into word per mailmerge. This usually works well, however with this new database i can only choose from a list of...
1
by: avik1612 | last post by:
Hi all, I am trying to write a perl script to find a particular word in all text files in a particular directory and if that particular word is found in that textfile a mail shouldbe send that...
2
by: ameesha | last post by:
hi all.. Can any one help me.. i am asked to develop a software in which one option is to search the first occurence of a particular word within a text file..and save the word and preceeding...
2
by: markvolz | last post by:
Hi, I have an access query. Currently it runs fine except now I would like it to run silently. I set task scheduler to run it as needed. However, I need to have it run silently without having...
2
by: mburns | last post by:
Hello all- I was wondering if it is possible to link an Access query or table to a Word document and pull specific information into Word by manually entering a unique identifier, which would then...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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: 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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.