Counting rows with multiple criteria
I know this is a silly beginner question, but is there an easy way to count the number of rows in a table which match criteria based on different columns (sort of a countif with multiple criteria). For example, if Column A in a table has "All, Some, None" responses and Column B has "Main, Off" responses, is there an easy way to count the number of rows in which Column A has All and Column B has Off?
Neondiet wrote:
From an intellectual and philosophical view I agree with you. But from a practical view what I really want to do is just use one application for my spreadsheet tasks, not jump back and forth because one sheet I share with MS Windows users, and another with Numbers users, and another with OS X users who don't have Numbers or Excel but do have NeoOffice. Maybe I have to settle for that though.
Yeah... this kind of situation stinks. Its like needing to writing software that will run on both Macs and PCs.
Anyway, I've followed the advise in this forum and resorted to using a hidden column with concatenated values to solve my own problem, though it does seem like a bit of a hack compared to managing a single formula in a single cell. Horses for courses I suppose.
jaxjason has posted a very elegant pivot table like solution that utilizes this technique. See http://www.numberstemplates.com/forums/showthread.php?t=36
Btw, from what I've read on the net to date, SUM (in Excel) with an array formula answers the original authors problem of counting occurrences of values, not SUMPRODUCT; which I believe sums up the contents of cells in a range, if cells in other ranges match specific criteria.
Yes, if you use the '*' (as indicated above) then SUM() is sufficient though SUMPRODUCT() will work as it degenerates to SUM when there is only one argument. If you use two arrays as arguments (like: = SUMPRODUCT((A1:A4="All"), (B1:B4="Off")), then SUMPRODUCT() is necessary. Here's my understanding of how it works (I hope your able to follow my abuse of algebraic techniques):
=SUM((A1:A4="All") * (B1:B4="Off"))
expanding the array expressions...
=SUM((A1="All", A2="All", A3="All", A4="All") * (B1="Off", B2="Off", B3="Off", B4="Off"))
at this point Excel computes the equality expressions, for example...
=SUM((TRUE, FALSE, TRUE, FALSE) * (TRUE, TRUE, FALSE, FALSE))
expanding the array multiplication...
=SUM((TRUE * TRUE, FALSE * TRUE, TRUE * FALSE, FALSE * FALSE))
Excel, apparently, then, when forced to multiply Boolean values, maps TRUE -> 1 and FALSE -> 0...
=SUM((1 * 1, 0 * 1, 1 * 0, 0 * 0))
performing the multiplications...
=SUM((1, 0, 0, 0))
summing...
=1 + 0 + 0 + 0
resulting...
=1
I'm afraid, now, if I continue any further, Yvan will chastise me.
Similar Messages
-
Comparision of a row with multiple criteria
Hi All,
I have below source table which gives me CUTSOMER_ID, FIRST_NAME, LAST_NAME, DOB, ZIPCODE and D_ID. Now i need to compare it with target, which gives me same columns. below are my comparision criteria.
1. Compare CUSTOMER_ID, if it matches with any of the target CUSTOMER_ID mark the row with F_FLG = M
2. If CUSTOMER_ID does not match, then compare the row with target based on compbination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE). If this combination of columns matches with any of the row from target, then marked row with F_FLG = M
3. If CUSTOMER_ID and combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) column does not match with any of the target row, the use another set of column. compare the row with target based on compabination of (FIST_NAME, LAST_NAME, D_ID). If this combinatio of column matches with ay of the row from target, then marked row with F_FLG = M
4. If any of the above criteria does not match, then mark the row with F_FLG = N
CUSTOMER_ID FIRST_NAME LAST_NAME DOB ZIPCODE D_ID
101 GEORGE MAC 15-APRIL-2009 12345 23456
102 MICLE DON 10-MARCH-1980 45678 29087
103 VIJAG UJIK 01-JAN-1950 67890 27689
104 BONY PANDA 03-MAY-1961 12345 27878These combinations should be performed once at a time. If it satisfies the first criteria, we do not need to check for remaining 3. If it does not match with 1 then perform 2 if matches flag the row and if not, go for 3rd criteria. if matches them mark with M else N
Below is the Target rows.
CUSTOMER_ID FIRST_NAME LAST_NAME DOB ZIPCODE D_ID
101 ADA MICO 15-APRIL-2009 12345 23456
999 MICLE DON 10-MARCH-1980 45678 23567
888 VIJAG UJIK 01-APR-1999 89897 27689
777 AAA BBB 03-MAY-1961 87687 12345Here,
for 1st row, CUSTOMER_ID matches with source and target, flag the row with valye = M
for 2nd row, CUSTOMER_ID (102) does not match with Target. but combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) matches, flag the row with value = M
for 3rd row, CUSTOMER_ID (103) and combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) does not match, but combination of (FIRST_NAME, LAST_NAME and D_ID) matches, flag the row with value = M
for 4th row, none of the combination matches with Target, flag the row with value = N
Output should be
CUSTOMER_ID FIRST_NAME LAST_NAME DOB ZIPCODE D_ID F_FLG
101 GEORGE MAC 15-APRIL-2009 12345 23456 M
102 MICLE DON 10-MARCH-1980 45678 29087 M
103 VIJAG UJIK 01-JAN-1950 67890 27689 M
104 BONY PANDA 03-MAY-1961 12345 27878 NTry this one
WITH data1 AS
(SELECT 101 customer_id, 'GEORGE' first_name, 'MAC' last_name, TO_DATE ('15-APRIL-2009', 'dd-mon-yyyy') dob,
12345 zipcode, 23456 d_id
FROM DUAL
UNION ALL
SELECT 102 customer_id, 'MICLE' first_name, 'DON' last_name, TO_DATE ('10-MARCH-1980', 'dd-mon-yyyy') dob,
45678 zipcode, 29087 d_id
FROM DUAL
UNION ALL
SELECT 103 customer_id, 'VIJAG' first_name, 'UJIK' last_name, TO_DATE ('01-JAN-1950', 'dd-mon-yyyy') dob,
67890 zipcode, 27689 d_id
FROM DUAL
UNION ALL
SELECT 104 customer_id, 'BONY' first_name, 'PANDA' last_name, TO_DATE ('03-MAY-1961', 'dd-mon-yyyy') dob,
12345 zipcode, 27878 d_id
FROM DUAL),
data2 AS
(SELECT 101 customer_id, 'ADA' first_name, 'MICO' last_name, TO_DATE ('15-APRIL-2009', 'dd-mon-yyyy') dob,
12345 zipcode, 23456 d_id
FROM DUAL
UNION ALL
SELECT 999 customer_id, 'MICLE' first_name, 'DON' last_name, TO_DATE ('10-MARCH-1980', 'dd-mon-yyyy') dob,
45678 zipcode, 23567 d_id
FROM DUAL
UNION ALL
SELECT 888 customer_id, 'VIJAG' first_name, 'UJIK' last_name, TO_DATE ('01-APR-1999 ', 'dd-mon-yyyy') dob,
89897 zipcode, 27689 d_id
FROM DUAL
UNION ALL
SELECT 777 customer_id, 'AAA' first_name, 'BBB' last_name, TO_DATE ('03-MAY-1961 ', 'dd-mon-yyyy') dob,
87687 zipcode, 12345 d_id
FROM DUAL)
SELECT customer_id, first_name, last_name, dob, zipcode, d_id, f_flg
FROM (SELECT customer_id, first_name, last_name, dob, zipcode, d_id, f_flg,
ROW_NUMBER () OVER (PARTITION BY customer_id ORDER BY f_flg) rn
FROM (SELECT DISTINCT d.customer_id, d.first_name, d.last_name, d.dob, d.zipcode, d.d_id,
CASE
WHEN d.customer_id = d2.customer_id
THEN 'M'
WHEN d.first_name = d2.first_name
AND d.last_name = d2.last_name
AND d.dob = d2.dob
AND d.zipcode = d2.zipcode
THEN 'M'
WHEN d.first_name = d2.first_name AND d.last_name = d2.last_name AND d.d_id = d2.d_id
THEN 'M'
ELSE 'N'
END f_flg
FROM data1 d, data2 d2
ORDER BY 1, DECODE (f_flg, 'M', 1)))
WHERE rn = 1Regards,
Mahesh Kaila -
Table Rows with Multiple Conditions Not Showing Up in RH
Hi everyone,
I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
Unconditional
Unconditional
Condition A and Condition B applied
Condition A and Condition B applied
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
Unconditional
Unconditional
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
Has anyone else seen this issue? Any help would be much appreciated.
Thanks
DaveBIt just seems that the items I select as align to top in the
property inspector should force the items to the top of their
cells, unless I'm missing something. -
Hi All,
I am using NWDS 2004
I want to have a table with multiple rows in a row.
Can any one help ?
Thankshi Akhilesh,
Use tree table for your requirement.
[Tree Table Tutorial|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce]
Hope this helps!
Monalisa -
Count rows from multiple tables using SQL only
Hi, I know this has probably been answered before, but I couldn't find the answer anywhere. Please help.
I'd like count(*) [rows] for all tables in database using SQL only - no PL/SQL
The result should be something like:
Table RowCount
DBA_TABLES 1000
DBA_USERS 50
etc.
Thanks!offcource write this script:
create or replace procedure count_tables (ip_schema VARCHAR2)
is
lv_owner VARCHAR2(100);
lv_table_name VARCHAR2(100);
lv_sql_statement VARCHAR2(2000);
lv_count_table NUMBER;
CURSOR c1 IS
SELECT owner, table_name
FROM all_tables
WHERE owner = ip_schema
ORDER BY table_name;
begin
dbms_output.put_line ('+--------------------------------------------------------------------+');
dbms_output.put_line ('¦ | | ¦');
dbms_output.put_line ('¦ Schema Name | Table Name | Number of Rows ¦');
dbms_output.put_line ('¦ | | ¦');
dbms_output.put_line ('¦------------------------------------------------------------------¦');
OPEN c1;
LOOP
FETCH c1 INTO lv_owner , lv_table_name;
EXIT WHEN c1%NOTFOUND;
lv_sql_statement := 'SELECT count(*) FROM ' || lv_owner || '.' || lv_table_name;
EXECUTE IMMEDIATE lv_sql_statement INTO lv_count_table;
IF lv_count_table > 0 THEN
dbms_output.put_line ('| '||rpad(lv_owner, 14, ' ')||'| '|| rpad(lv_table_name, 32, ' ')||'| '|| rpad(lv_count_table, 16, ' ')||' |');
-- dbms_output.put_line ('|---------------|---------------------------------|------------------|');
END IF;
END LOOP;
CLOSE c1;
dbms_output.put_line ('+--------------------------------------------------------------------+');
exception
WHEN OTHERS THEN
dbms_output.put_line ('owner: '||lv_owner||' - table: '||lv_table_name||' - '||sqlerrm);
end count_tables;
set serveroutput on size 1000000
exec count_tables
drop procedure count_tables; -
SQL Developer 2.1 EA - count rows with filter on a table
This is a small problem that I came across today while using 2.1 EA. I opened a table and did a filter to narrow down the results of the table. Then when I right clicked on the search results and clicked on 'Count Rows'....I get the count of the rows in the table and not my search results.
Is this a feature or a bug?
Thanks,
MikeIn EA2, we get both the total and the filtered total, nice.
Only remark is we don't get a progress indicator anymore, and thus can't cancel a query that might take up hours to finish!
Please log a bug for this.
Thanks,
K. -
Report Record Row with multiple color conditionaly
Dear Friend,
i am using Apex 3.2 ver.
i want to display report record row with colour .
i want to display reoport row color blue if INVOICE_TYPE column is 'I' and RED if INVOICE_TYPE is 'C' .
select
am.ID,
am.INVOICE_NO,
am.INVOICE_NO as invoice,
am.SBU_CODE,
am.INVOICE_TYPE,
am.INVOICE_DATE,
am.AGENT_CODE,
am.NO_OF_PAX,
am.ADDL_FIELD5
from "AR_INVOICE_MAS" amHow can i disply row record conditionaly color ful .
Thanks
Edited by: Vedant on Oct 10, 2012 11:05 PM
Edited by: Vedant on Oct 10, 2012 11:14 PMDear Jary,
Thanks to reply me.
i have follow your link and font color display but bg color not display.
now i have change in code
select
am.ID,
case when am.INVOICE_TYPE = 'C' then 'BLUE'
when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'
end the_color,
am.INVOICE_NO,
am.INVOICE_NO as invoice,
am.SBU_CODE,
am.INVOICE_TYPE,
am.INVOICE_DATE,
am.AGENT_CODE,
am.NO_OF_PAX,
am.ADDL_FIELD5,
NVL(sum(al.NET_AMT),0) AS SUM,
NVL(am.USER_ENTER_AMT,0.00) AS CONTROLSUM
from "AR_INVOICE_MAS" am ,AR_INVOICE_DTL al WHERE am.invoice_no=al.invoice_no(+)
group by am.ID,am.invoice_no,am.SBU_CODE,am.invoice_type,am.invoice_date,am.agent_code,
AM.NO_OF_PAX, am.ADDL_FIELD5,am.USER_ENTER_AMT Here i want to display in red below condition but it's not working.
when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'How can i display Record in RED which record does not varify below condition
when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'
How can i do this.
Thanks -
Single Update command to update multiple rows with multiple rows
Hi Gurus!
Can I update table A with a result set of table b (multiple rows returns) where a.c1 = b.c1
regards,
SHAs Joel mentioned this update will update all rows in a table based on another one:
update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
Also, any rows that don't match the select criteria will get updated to null. This could be very bad depending on what you want to do.
To update a subset of tableA with data from tableB:
update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
where exists (select 1 from tableB where tableA.ID = tableB.ID) -
Counting rows with a particular value
Hello. I recently posted this thread Count java problem for how to count an attribute.
Now I need that count to be limited to a certain value inside the attribute.
let me clarify. I have a table Casinos, which is connected to a table SlotsInCasinos, which is further connected to SlotMachines in a many to many with SlotsInCasinos being the intersection.
The previous post that I mentioned (thanks Timo by the way) told me how to count all the slots in a particular casino.
Now I would like to know how I could count all the slots of a particular value (for example Poker slot Machines, regular Slot machines, etc) instead of the total count in a particular object.
So on the page I would have lets say 2 output texts, one showing the number of Poker Slot Machines in that particular casino and the other showing the number of regular Slot machines in that particular casino (a third could show the number of some third kind of slot machines).
Thank you for your timeHello everyone here is an update
I created a view object called Test, based on the entity object SlotMachinesInCasino. I then created a view link TestLink and created a master detail relationship (the same one I already had for the View Object SlotMachinesCasinosVO.
The difference is in the query for test I put the following
SELECT
VezaTehOpTipAp.OBJEKAT_ID,
VezaTehOpTipAp.TIP_APARATA_ID,
VezaTehOpTipAp.VEZA_TEH_OP_TIP_AP_ID,
TIPOVI_APARATA.NAZIV_APARATA NAZIV_APARATA
FROM
VEZA_TEH_OP_TIP_AP VezaTehOpTipAp,
TIPOVI_APARATA
WHERE
TIPOVI_APARATA.NAZIV_APARATA = 'Evona'My thinking was that if I do this the estimated row count function for this will just give me the number of Evona Game machines. I tried it out in an SQL Worksheet and it gives back only the Evona machines.
Unfortunately when I create the TestIterator and then drop output text whose EL is the estimated row count for the test iterator it does not work as intended. It counts all the Slot Machines in the Object no matter the Name.
So it gives a number equal to all the slot machines instead of to the number of slot machines with name 'Evona'.
What did I do wrong? -
SQL Question (Select rows with multiple records)
Hello Gurus,
I am learning SQL and have a question. Thanks for your time and help.
I have 2 tables TABLE_AA and TABLE_BB. Both tables have two columns ID, DATA.
TABLE_AA is connected to TABLE_BB through ID field (TABLE_AA.AA_DATA = TABLE_BB.BB_DATA)
TABLE_AA
~~~~~~~
AA_ID______AA_DATA
~~~~~~~~~~~~~~~~
1111_______XXXX
2222_______QQQQ
3333_______ZZZZZ
4444_______PPPPP
~~~~~~~
TABLE_BB
~~~~~~~
BB_ID BB_DATA
~~~~~~~~~~~~~~~~
1111_______AAAA
2222_______BBBB
3333_______CCCC
3333_______DDDD
4444_______EEEE
I am looking to get those AA_ID values that have multiple in TABLE_BB for their parent reference in TABLE_BB.
So, from the above example, the sql should return the following as AA_ID 3333 has more than 1 reference value in BB_ID
AA_ID_____BB_ID
~~~~~~~~~~
3333______CCCC
3333______DDDDHi,
It's working fine. !!
14:10:05 topgun>With a As
14:10:06 2 (
14:10:06 3 Select 1111 c1, 'AAAA' c2 From dual Union All
14:10:06 4 Select 2222 , 'BBBB' From dual Union All
14:10:06 5 Select 3333 , 'CCCC' From dual Union All
14:10:06 6 Select 4444 , 'DDDD' From dual
14:10:06 7 ), b As
14:10:06 8 (
14:10:06 9 Select 1111 c1,'AAAA' c2 From dual Union All
14:10:06 10 Select 2222 , 'BBBB' From dual Union All
14:10:06 11 Select 3333 , 'CCCC' From dual Union All
14:10:06 12 Select 3333 , 'DDDD' From dual Union All
14:10:06 13 Select 4444 , 'EEEE' From dual
14:10:06 14 )
14:10:06 15 Select c1,
14:10:06 16 c2
14:10:06 17 From
14:10:06 18 (
14:10:06 19 Select a.c1,
14:10:06 20 b.c2,
14:10:06 21 Count(*) over (Partition By a.c1 Order By a.c1) cnt
14:10:06 22 From a,
14:10:06 23 b
14:10:06 24 Where a.c1 = b.c1
14:10:06 25 )
14:10:06 26 Where cnt = 2;
C1 C2
3333 CCCC
3333 DDDD- Pavan Kumar N -
Count() function with selective criteria?
I'm struggling with what I would expect to be a fundamental reporting concept in CR.
Suppose I have the following EMPLOYEE table:
u2022 EMPLOYEE.ID
u2022 EMPLOYEE.GENDER_CODE
u2022 EMPLOYEE.MANAGER_FLAG
I need to generate a statistical summary report containing the following:
u2022 Total number of Employees
u2022 Number of Male Employees
u2022 Number of Management Employees
This would be easy if I could just use a Count() function in the Function Workshop which
contained selective criteria. For example: Count ({EMPLOYEE.GENDER_CODE} = 'M')
But I can't figure out how to do this without getting a CR error message.
Record Selection doesn't work, because I need the whole data set.
Group Selection with Summaries doesn't work, because the gender and management
attributes are not mutually exclusive.
One solution that seems awkward to me is to create additional SQL commands in the
Database Expert using COUNT(*) and WHERE criteria to get the number of Males
and number of Managers. But I have to believe that there is a better way. Plus this
approach causes problems elsewhere in my report.
Am I missing something?
Thanks,
BillThanks Raghavendra!
The good news is that I was able to create a "1 or 0" formula and then sum the resulting values.
The bad news is that I'm only able to get this to work for part of my report.
I am joining two tables. As an example COMPANY and EMPLOYEE.
I can use "1 or 0" formulas on all of the employee statistics.
But I cannot do the same for company statistics, because the number of company records being assigned a 1 is being inflated by the join between the two tables.
I have achieved a successful result by using Running Total Fields at the end of the report.
But I want to place these summary statistics at the begining of my report. (Such as Total Companies in the Western Region.)
I tried to use "COMPANY.NAME = previous(COMPANY.NAME)" logic in my function, but then I was not allowed to summarize it.
Any ideas?
Thanks,
Bill -
Multi-Counter Plan with multiple Equipments
Hello,
We would like to track maintenance costs at Equipment level. In multi-counter maintenance plan, is there a way to enter multiple equipments in one mainteance plan?
Thanks a lot,
VenuDear Venu,
In multi counter plan, only one equipment may be assigned, as correctly observed. However, you may assign the same equipment with different task list, depending on the cycle set, so that maint order is generated with required operations applicable for that cycle.
Eg: Cycle set 1 100Hrs/1month
2 500Hrs/3Month
3 1000Hrs/6 Month
Create task lists as per above cycle sets and for each cycle set assign the same equipment, but with different task lists.
This reduces the number of maintenance plans for a given equipment. This is particularly useful for vehicle management, where the running KM and time are the common counters.
James Prabaharan -
How to return one ROW with Multiple value seperated by Colon in a SQL Query
Hi,
I have a SQL query as mentioned.
select deptno
from deptI want to mofidfy this query, so that this should return me department list with colon delimeted in one ROW.
10:20:30:40.......Thanks,
DeepakIn 10g:
select rtrim(xmlagg(xmlparse(content deptno || ':')).getstringval(), ':') data
from dept;
DATA
10:20:30:40with apologies for the abuse of XML... -
Help Creating Dynamic Stacked Column Chart with Multiple Criteria
Hi all. Im new here and hoping you can help. I have a dashboard Im trying to rebuild from scratch (our computer had a meltdown and we lost all our files). I did not build the dashboard initially so Im trying to recreate it from the flash file we were able to recover. I have come across a chart that I just cannot figure out how to do. I can figure out how to write an array in the Excel sheet that pulls the data into a table the way I need it to be but found out after I wrote that that Xcelcius doesn't support arrays so all my data disappears when I go into preview mode (which is especially frustrating since I can see the chart working fine in design mode). Anyway this is what the data table looks like
Month Year Company Positive # Negative # Neutral # Positive % Negative % Neutral %
October 2011 CompanyA 1234 1234 1234 10 10 10
October 2011 CompanyB 1234 1234 1234 10 10 10
October 2011 CompanyC 1234 1234 1234 10 10 10
October 2011 CompanyD 1234 1234 1234 10 10 10
November 2011 CompanyA 1234 1234 1234 10 10 10
November 2011 CompanyB 1234 1234 1234 10 10 10
November 2011 CompanyC 1234 1234 1234 10 10 10
November 2011 CompanyD 1234 1234 1234 10 10 10
December 2011 CompanyA 1234 1234 1234 10 10 10
December 2011 CompanyB 1234 1234 1234 10 10 10
December 2011 CompanyC 1234 1234 1234 10 10 10
December 2011 CompanyD 1234 1234 1234 10 10 10
The original chart was built so that you would choose the month from a combo box and then the company names would show up along the X axis with their % amounts shown in the stacked column. I know how to make a combo box work and I know how to make a stacked column chart work with static data. I cannot for the life of me figure out how to get it to work so that when you choose the month from the combo box it filters the data. I've tried filtered rows but I'm just missing some information that makes it work and I can't figure out what that information is. It has to be able to get the month/year combo from the combo box and then go to the table, filter it by month and year and then create a multi-row table of data with just the company and the percent values. Any help would be greatly appreciated!Which connection you are using?
IF quite difficult if you are working under static data. -
I have searched high and low on the internet o find a way to
do a search through multple fields but the more I lookthe more i
get confused. here is the problem. i want to do a search where the
user can input a data element and select the matching type and
display he results.below is the code that i have for my search
page, but I am confused about the more important parts of the fom -
the actual search variables.
If you look t the code below you see that I have a test field
named "recordID" and a drop down list named "select".
I want to dispay the results in which 'recordID' looks in
table thatis equal to 'select'.
an example of what I want is at the following link.
http://www.phpscriptsearch.com/DizzDizzy wrote:
> I went to
http://www.webassist.com/professional/products/productdetails=
=2Easp?PID=3D117&CouponID=3Dss2008&RID=3D590&WAAID=3D92
> but i could not find the solution there
Hi Dizz:
Under the banner you'll find links for Overview, Features,
System=20
Requirements, Support. When you click on the Features link,
the MooFX=20
Accordian javascript class runs to update the content on the
page. The=20
bullet points are clickable to similarly update the content
on the page. =
Click on the bullet point "Pro search and sort enhancements"
and read=20
the paragraph at the bottom under the screen shots:
Sophisticated search capabilities
DataAssist integrates the advanced search functionality
previously=20
available in Database Search. Now you can combine advanced
Google-style=20
keyword searches (across multiple database columns) with
price, date or=20
number ranges =96 all without coding.
Please take a look at the feature tour:
http://www.webassist.com/professional/products/featuretour/media_117.asp
As for the Prof's requirements, the form submits two values,
a recordID=20
and a selection to either search by company or by store
number.
If Prof has a table named company and another named store
number, the=20
way you'd search these tables would be to have another table
that=20
contains the selectcategories with a column containing the
values=20
"company" and "storeNumber" along with ID columns that relate
to a=20
categoryID column in the companies table and the storeNumber
column in=20
the Stores table. Using this relationship Prof can create a
reccordset=20
on his results page that returns the values using an INNER
JOIN to=20
combine the tables in the recordset. Similarly by
constructing the=20
relationships properly as to his records (let's say he's
searching 45RPM =
singles - anybody remember those thingies?) His company table
can have=20
an ID column that references his product table where a
companyID is=20
stored. Again, a JOIN statement is used to include the
product=20
information, including the ProductID in the Recordset.
Similarly for the =
Stores table, again, the Products table has a column that
identifies the =
store that carries that productID. If more than one store
carries the=20
product, the column should be a storesID column that
references a=20
ProductStores table which references the stores that carry
the product=20
by a common ID. Again, using the JOIN (this recordset query
would get=20
complex) the necessary data can be returned.
The DataAssist Search Server Behavior applies a sophisticated
WHERE=20
clause to the recordset. so that the requested records can be
returned=20
to the page. Prof is not needing a tool to build database
management, so =
I can see his point... but if this is something you do
regularly,=20
DataAssist will pay for itself over and over in time saved.
And WebAssist is conducting a 50% off sale through next
Friday, so it's=20
a good time to get on board. Here's a link to the discount
page for all=20
the products:
http://www.webassist.com/professional/products/productresults.asp?CouponI=
D=3Dss2008&RID=3D590&WAAID=3D92=20
enthusiastically,
mark haynes.
Maybe you are looking for
-
I'm running FF 4 Beta 8 with the latest Flash player (10.1.102.64). When I play YouTube videos, the video is loaded, starts, and plays okay, but when I move my cursor around within the Firefox window, portions of the window black out under where the
-
Purchase order for external service
Dear experts, I tried creating a purchase order for a service, with account assignment unknown U, with item category D, but after entering the item details in the item overview, it keep saying " ACCOUNT ASSIGNMENT UNKNOWN NOT ALLOWED WITHOUT GOOD REC
-
Delete Vendor for Purchasing in SPRO
Hi Experts, I will like to find out whether is it possible for me to delete vendor record for purchasing in SPRO? From what I understand, I am able to delete vendor record for finance in SPRO. Thanks. Xiu Lian
-
JDBC: Send BLOB field to a file
Hi all, I'm sending a JDBC record to a file but I'm wondering how I can send a BLOB (Binary large object) to a file. Can anyone advise me how I can write such a file (eg a JPEG file) on a directory? Thanks in advance! Regards, Wouter.
-
Need help in currency translation
Hi all; I am using this program RSIMPCURR for currency translation in my process chain, it was working in Dev but when I transfer this into QA it's not working because the varient I am using for this is still using source system in for Dev. ; I need