Need to query the information in the table - more than 1 d
I am writing a Facebook application and want to compare my db user with information returned from Facebook. I get the correct information of FB as a table with a structure on the inside. It is not letting me use ArrayToList, so I guess it's because of the structure.When I use the code that is attached, it browse the data and returns all the correct information.
I am completely vaporlocked on is how to use the data returned by this loop to the query, as in:
SELECT foo
FROM bar
WHERE uid IN (loop of the correct information)
I feel like this should be easy enough, and it is making me want to push my eyes. Thank you in advance and please let me know if you need additional information.
You rock as Satan. Thank you very much. : D
Tags: ColdFusion
Similar Questions
-
Hello
I use ATG version 10.2 and you have configured CRS application by IMC. All data import and deployments have been successful.
Applications of short (MDEX 6.4.1, CASE 3.2.1 6.4.1.2, tools and Framework 3.1.2 platform services) are running: port 8006, 8500, race 8888.
Now MY PROBLEM IS in TWO PARTS:
PART 1) Ran the store on jboss, has worked well, core application started without any error. When trying to load the homepage, get following error message:
16:42:25, 926 full repository INFO [SEORepository] SQL boot
16:43:32, 653 ERROR [DynamoServlet]
CAUGHT AT:
Container: ATG.servlet.jsp.ContainerJspException: Cannot find the named component: / atg/registry/Slots/HomeTheme; Source: javax.servlet.ServletException: Cannot find the named component: / atg/registry/Slots/HomeTheme
at atg.taglib.dspjsp.ParamTag.doStartTag(ParamTag.java:419)
at org.apache.jsp.navigation.gadgets.homePagePromotions_jsp._jspx_meth_dsp_005fparam_005f0(homePagePromotions_jsp.java:1021)
at org.apache.jsp.navigation.gadgets.homePagePromotions_jsp._jspService(homePagePromotions_jsp.java:219)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
at atg.servlet.WrappingRequestDispatcher.include(WrappingRequestDispatcher.java:123)
at atg.taglib.dspjsp.IncludeTag.doEndTag(IncludeTag.java:883)
at org.apache.jsp.index_jsp._jspx_meth_dsp_005finclude_005f1(index_jsp.java:633)
to org.apache.jsp.index_jsp.access$ 1 (index_jsp.java:622)
to org.apache.jsp.index_jsp$ Helper.invoke1 (index_jsp.java:685)
to org.apache.jsp.index_jsp$ Helper.invoke (index_jsp.java:711)
at org.apache.jsp.tag.web.store.pageContainer_tag._jspx_meth_c_005fwhen_005f1(pageContainer_tag.java:2757)
at org.apache.jsp.tag.web.store.pageContainer_tag.doTag(pageContainer_tag.java:812)
at org.apache.jsp.index_jsp._jspx_meth_crs_005fpageContainer_005f0(index_jsp.java:598)
at org.apache.jsp.index_jsp._jspx_meth_dsp_005fpage_005f1(index_jsp.java:565)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:127)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...........................
...........................
...........................
...........................
At this point, the CRS page opens but no short content. Don't load no registration, no image on the home page does display, NO SEARCH BOX displayed in the header.
PART 2) On top of that when I try to run the server pubishing on JBOSS, start does'nt server and responds to error. If the das_id_generator table exists in DB for all 4 patterns.
16:09:41, 082 INFO [ScreenLog] with logging of external for debug messages and trace kernel to avoid hidden kernel logging information. Set the property /atg/dynamo/service/logging/ScreenLog.useInfoForDebug to false nucleus to use external instead trace and debug logging.
16:09:41, 199 INFO [Version] HV000001: Hibernate Validator 4.3.1.Final
16:09:41, 748 Truncating WARN [ClusterBroadcaster] serviceProperties "commandLineModules" key value
16:09:42, size INFO [STDOUT] 345 (ERR_QUERY_TABLE, das_id_generator
16:09:42, 351 ERROR [IdGenerator]
CAUGHT AT:
Container: ATG.service.IdGen.IdGeneratorException; Source: Container: ATG.service.IdGen.IdGeneratorException: Cannot query the table 'das_id_generator '. Please make sure that the table exists and is accessible before you start this service. ; Source: Java.Sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:389)
at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)
at atg.nucleus.GenericService.startService(GenericService.java:561)
at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1726)
at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1397)
at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:119)
at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)
at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)
at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)
at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)
........................
........................
........................
An early response would be really useful because we have demo in 10 days.
Kind regards
Ben Milot
Thank you for this comment.
I had created a fresh scheme for publication but the jboss was still pointing to the old.
I've updated this pointers in file @ /server/
atg atg - ds - ds.xml. Worked like a charm! If 2nd EDITION solved.
The QUESTION 1 depended on question 2. Once I ran publishing and completed the full deployment on ICC, 1st edition got resolved.
Thanks to shaik and Grando
Kind regards
Ben Milot
-
Dear all,
I need to export the table as image format "png".
in case any continuous table is there, sample suite table page 2. I need the same page by page (2 images) required.
Please suggest how to handle these cases in javascript.
Kind regards
Sagna
Thanks Laubender and uwe!
-
How to get a list of the tables more fragmented in Oracle?
Is there a SQL on how to get a list of the tables more fragmented in the Oracle DBMS?Update the statistics on the table and try this, you should see very fragmented tables upstairs with high wasted_space.
select table_name,round((blocks*8),2) "size (kb)" , round((num_rows*avg_row_len/1024),2) "actual_data (kb)", (round((blocks*8),2) - round((num_rows*avg_row_len/1024),2)) "wasted_space (kb)" from dba_tables where (round((blocks*8),2) > round((num_rows*avg_row_len/1024),2)) order by 4 desc
I changed the query a little because the ORDER BY will not work if we concat | ' Ko ' with the column because this makes the output a character column data.
And added a WHERE condition to see that these tables where the total size is greater than the actual size of data.Published by: zahid79 on July 23, 2010 13:40
-
I cancelled my subscription to the CC more than 6 months ago only used the product and today that I found out, I had to be charged for another six months and must pay a cancellation fees of $57?
Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html
-
Hi, can I connect the machine to the time more than a mac?
Hi, can I connect the machine to the time more than a mac?
Yes. Each time backwards Machine until will settle on the Time Capsule in a separate file.
-
Release of PL/SQL version 11.2.0.2.0 - Production
Hi gurus
You need assistance in question. I have the following data:
Sample data
drop table aa;drop table bb;
create table aa
(
cust_no number (5),
cust_name varchar2 (30)
);Insert in the NOA
(
Select 100, 'A' from two
Union of all the
Select 200, 'B' double
Union of all the
Select 300, 'C' of the double
);create table bb
(
cust_no number (5),
cust_caty varchar2 (15)
);
Insert into bb
(
Select NULL, 'Potential' from dual
Union of all the
Select NULL, 'Not Potencial' of the double
Union of all the
Select NULL, "Unknown" of the double
);Now, I want to update my bb with cust_id without no join table...
My required data should be something like below in the table of bb:
CUST_NO, CUST_CATY
100 potential
200 potential not
300 stranger
Please note that it doesn't matter what cust_no arrive at any cust_caty
Concerning
Shu
Hi, Shu,
Here's one way:
MERGE INTO dst bb
WITH THE HELP OF)
WITH aa_r_num AS
(
SELECT cust_no
ROWNUM AS r_num
AA
)
bb_r_num AS
(
SELECT cust_caty
ROWNUM AS r_num
BB
)
SELECT a.cust_no
b.cust_caty
Of aa_r_num one
JOIN bb_r_num b ON b.r_num = a.r_num
) src
WE (dst.cust_caty = src.cust_caty)
WHEN MATCHED THEN UPDATE
SET dst.cust_no = src.cust_no
;
The results I get are exactly what you posted:
CUST_NO CUST_CATY
---------- ---------------
100 potential
200 potential not
300 stranger
But there is no guarantee that the same cust_no at the same cust_caty when you run it.
As posted, which means that bb.cust_caty is unique and not NULL.
If there are N + X lines in the bb, but only N lines in aa, then only N lines in bb will be updated.
Why do you want to do "without no join"? If a join is the most simple, average the most effective to achieve the results expected, so why not use it?
If you really want to avoid the join, you can use a scalar subquery.
-
Need to query the available values for EA Qualitative list
I need to provide the ID attribute, the name and the list of values of an extended attribute qualitative:
I can easily get the ID and name, but do not see the path to the other values
SELECT commonextendedattributetypeml . name ,
commonextendedattributetype . attributeType
DE agile . commonextendedattributetype , agile . commonextendedattributetypeml
OÙ ( ) ()commonextendedattributetypeml. fkextendedattributetype =
commonextendedattributetype . pkid ))
ET commonextendedattributetypeml . name AS '%TM'
ET commonextendedattributetype . attributeType = 'QUALITATIVE' ;
Try the following SQL code:
SELECT ml.name,
t.AttributeType,
t.AttributeID,
qualML.Quality
Of
commonextendedattributetype t
INNER JOIN commonextendedattributetypeml on ml.fkExtendedAttributeType = t.pkid and ml.langID = 0 ml
List INNER JOIN comExtendedAttrQualityList on list.fkExtendedAttribute = t.pkid
INNER JOIN commonExtendedAttributeQuality on list.pkid = qual.fkQualityList qual
INNER JOIN qualML on qualML.fkExtendedAttributeQuality = qual.pkid and qualML.langID = 0 comExtendedAttributeQualityML
WHERE
ml. Name LIKE '% TM' AND t.attributetype = 'QUALITATIVE '.
ORDER BY ml.name
Note that the above query restricts the language id of 0 (for English) in two places
-
Need to truncate the table before loading new data
I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?
He is the current ctl file:
DOWNLOAD THE DATA
INFILE ' D:\DATA\OHNFILES\OHN_PROVIDER_DATA. TXT'
INSERT
PRESERVE SPACES
IN THE WEB OF THE TABLE. OHN_OK_SELECT
(
Position of CHKPPO (0001:0003).
Position of the EFFECTIVEDATE (0004:0011).
Position of TERMDATE (0012:0019),.
CRED_ID position (0020:0024).
LASTNAME position (0025:0099),
Position of FIRSTNAME (0100:0124),
Position of MIDDLENAME (0125:0149),
Position of PROFESSIONALDEGREE (0150:0164),
Position of PRIMARYSPECIALTYID (0165:0214),
Position of PRIMARYSUBSPECIALTYID (0215:0264),
Position of SECONDARYSPECIALTY (0265:0314),
Position of OKLICENSENO (0315:0329),
Position of the Nordic Institute of patents (0330:0339),
Position of TAXIDNO (0340:0348),
Position of MEDICARENO (0349:0365),
Position of OFFICEADDRESS (0366:0465),
Position of BLDGSUITEPO_BOX (0466:0500),
Position of the CITY (0501:0525),
Position of the STATE (0526:0527),
Position of code POSTAL (0528:0537),
Position of TELEPHONE number (0538:0549),
Position of FAX number (0550:0561),
Position of EMAILADDRESS (0562:0611),
Position of the COUNTY (0612:0631),
BILLINGADDRESS position (0632:0731),
BLDGSUITEPO_BOX1 position (0732:0766).
Ville1 position (0767:0791).
STATE1 position (0792:0793).
POSTALCODE1 position (0794:0803).
Telephone1 position (0804:0815).
Position of telecopie1 (0816:0827),
EMAILADDRESS1 position (0828:0877).
MAILINGADDRESS position (0878:0977),
BLDGSUITEPO_BOX2 position (0978:1012).
CITY2 position (1013:1037),
STATE2 position (1038:1039).
POSTALCODE2 position (1040:1049).
Telephone2 position (1050:1061).
Telecopieur2 position (1062:1073).
EMAILADDRESS2 position (1074:1123).
Position of the OST (1124:1163),
Position of CLINIC_GRPNAME (1164:1263),
Position of FEESCHEDULEID (1264:1278),
FILL position (1279:1400)
)customer wrote:
I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?Same file. Say "TRUNCATE" instead of "INSERT".
LOAD DATA INFILE 'D:\DATA\OHNFILES\OHN_PROVIDER_DATA.TXT' TRUNCATE PRESERVE BLANKS INTO TABLE WEB.OHN_OK_SELECT ( ...
Published by: Frank Kulash, on September 3, 2009 15:12
-
Splitting the tables in the tables more
Hello world
I couldn't find a similar problem on the forum, hency my new post. I have a number of paintings in need of splitting.
Say I have data stored in 4 tables (or columns), appointed IGS, VGS, VDS and IDS. These four columns each have n * 80 cells, where n is the number of measures. What I want to do is to have the n number of times IGS, CGS, IDS and VDS, where each table is only 80 cells long. Thus, when displayed in Excel for example, the first row would look like:
IGS VGS IDS VDS VGS ID VDS IGS VGS GHI...
Thanks a lot for help.
You can start by finding the size of you individual tables, IGS, CGS, IDS and VDS. I guess they would be of the same size. Divide size by 80 and that's your hand for loop index. Use the subset of table VI and shoot 80 pieces of each array element. Once you have the 80 item chucks you can set up another loop on the berries and build the table 1 d longer with an Array function construction with a CONCATENATE entry-level feature. Using shift registers and another function of matrix to build to add the following line in the main table.
I think that's what you wanted.
-
Notepad the length of the line more than 125 charater are not addressed
Hi Experts,
My Office notebook do not welcome the more than 125 charater line length.
OS - Windows XP Professional version 2002 pack 3 service.
I noticed in the other office aimed at the length of line more than 125 characters, OS service pack even version.
Please me tips
Thank you and best regards,
Thiru.
Hello Thiru_24,
In addition to theunpredictable comment, I added a link below with the information regarding the notebook. I hope this helps.
Notebook: FAQ
http://Windows.Microsoft.com/en-us/Windows7/Notepad-frequently-asked-questions
Thank you
James
-
artists are to display the window more than once in sync
iTunes version 12.2.4. In the timing window on the right side under "Artists" of some artists appear more than once.
For General and advice on the Organization of the iTunes, see grouping of tracks in albums . In particular, any given artist name should be spelt constantly everywhere where it appears in the two fields artist album and artist, and still have the same sort value.
TT2
-
I downloaded the messenger more toolbar, it is custom uninstall as the other programs that I downloaded and I uninstalled the messenger software and it has not yet removed more can you help me I use internet explore
Hello
Messenger more! Live can be uninstalled like any other software on your computer
(a) open Start and click on run
(b) type appwiz. Cpl and press enter.
(c) in the list that appears, select "Messenger Plus!" Live' or "Messenger more! Live and the Organizer", click on 'Remove' and follow the instructions.
(d) messenger more! will be uninstalled quickly your system as well as the developer if you have already installed. Some files will be deleted only after you restart your computer.
If the problem persists, you can disable or remove the toolbar on internet explorer to Manage Add-ons. Click on the help link.
http://Windows.Microsoft.com/en-us/Windows-Vista/customize-the-Internet-Explorer-toolbars
Hope this helps,
-
Query to retrieve records that have more than one assignment_id
Hello
I'm writing a query to extract all records in the table per_all_assignments_f that has more than one different assignment_id for each person_id. Here's the query I wrote, it retrieves the records, even if a person_id assignment_id duplicate, but I need records that have more than one assignement_id without duplicate for each person_id
Select assignment_id, person_id, assignment_id
Of per_all_assignments_f
Having count (assignment_id) > 1
Person_id group, assignment_id
Thank you.
PKMaybe something like that?
select * From per_all_assignments_f f1 where exists (select 1 from per_all_assignments_f f2 where f2.person_id = f1.person_id and f2.assignment_id != f1.assignment_id );
Published by: SomeoneElse on May 7, 2010 14:23
(you can add a SEPARATE from the outer query if you wish)
-
A loop in a table more than once
I have a simple table of clips that loop once according to the code below:
private var lettersL1:Array = [, the, f, f, f, g, h, i, i, n, n, n, o, o, o, o, s, s, t, t, t].
for (var i: number = 0; i < lettersL1.length; i ++)
{
trace (lettersL1 [i]);
}
It works, but for my game to work I need the loop to repeat three times.
Cause I have added < lettersL1.length; does not work. And I really would prefer to not hardcode it with the addition of a number instead of .length.
What is the correct notation?
Thank you
Images of recommended
Hi recommended images.
you missed the mod operator in real calls.
lettersL1 [i] .x = 399;
lettersL1 [i] = 30 there.
addChild (lettersL1 [i]);
You can use the following text:
for (var i: number = 0; i)< lettersl1.length*3;="">
{
var index = (i%lettersL1.length);
trace (lettersL1 [index]);
lettersL1 [index] .x = 399;
there = 30, lettersL1 [index];
addChild (lettersL1 [index]);
}
Since there is that lettersL1.length the number of items in the table, at the time wherever the value of i the limit you can collect any element to the array index. Having an updated index to update (I % lettersL1.length) solves this problem.
Kind regards
Dharmendra.
Maybe you are looking for
-
There is an option to download a 'Lightning' calendar, but I prefer to return to the original schedule, which was on the mail server, when I started using it about 2 weeks ago.
-
Move Facebook messenger sidebar right
I just activated Facebook Messenger for Firefox after updating to Firefox 17 for Ubuntu. To my surprise I now find the sidebar of the Messenger (ticker and CAT) on the left side of my Firefox window. On all articles on Messenger for Firefox I've seen
-
Y at - it all the way to reconfigure the Hp Eprint Mobile App so I can re enter email Eprint or use my main address. Ive clicked the verification, but never got a Code for several days. When I get it. It has expired at the time wherever I opened my E
-
What button / stop pressed power on display Nothig but what liberation turns off
Hi all I have HP ProOne 400 all in one PC When I press power button / stop hard drive LED turns on but nothing shows on the screen when the power button turns off during this power LED remains on. I checked with another power adapter the same power r
-
I'm adding four new 500 GB drives (Dell) for my Ax100 fibre, in addition to the eight existing operating drives, 250 GB each. The capacity is now 2.6 to and the FLARE is at version 02.19.100.5.048. I wanted to make sure with you to add four blank dis