Please help array and tables
value for my parameterp_yymm :=(1001,1002,:,:,1005,:,:,1008,,:,:,:,:,1101,1102) colon rep as non selected value
i need to get position of all values like
1001 -1
1002 -2
1102-14
then my ouput should like this (yynnynnynnnnyy)
create or replace
FUNCTION FN_SUB_BEHAVIOUR(P_YYMM IN VARCHAR2)
RETURN VARCHAR2
IS
TYPE TYP_ARR_TEST IS TABLE OF VARCHAR2(1000) INDEX BY VARCHAR2(1000);
TYPE ELIMINATE_TYP IS TABLE OF VARCHAR2(15);
V_ELIMINATE ELIMINATE_TYP;
ARR_LIST APEX_APPLICATION_GLOBAL.VC_ARR2;
V_LENGTH VARCHAR2(10000);
LOOP_VALUE VARCHAR2(10000):=1000;
I VARCHAR2(10000);
V_LIKE VARCHAR2(10000);
V_INDX NUMBER(10); v number(5);
BEGIN
--ARR_LIST := APEX_UTIL.STRING_TO_TABLE(p_YYMM,',');
ARR_LIST := APEX_UTIL.STRING_TO_TABLE(P_YYMM,',');
for i in 1..ARR_LIST.count loop
if i=1 then
v_LIKE:= ''''||ARR_LIST(i)||'''';
else
V_LIKE:=','||v_LIKE||','||''''||','||ARR_LIST(i)||'''';
end if;
V_ELIMINATE :=ELIMINATE_TYP(V_LIKE);
FOR I IN V_ELIMINATE.FIRST..V_ELIMINATE.LAST
LOOP
v:=i;
-- IF V_ELIMINATE(I)=';' THEN :='0';
-- ELSE V_ELIMINATE(I):='1'; END IF;
--END LOOP;
RETURN v;
end loop;
END LOOP;
END;
my ouput should like this (yynnynnynnnnyy)
Edited by: raj on Mar 23, 2011 2:55 AM
Edited by: raj on Mar 23, 2011 3:20 AM
don't you just want to do something like this then?
ARR_LIST := APEX_UTIL.STRING_TO_TABLE(P_YYMM,',');
for i in 1..ARR_LIST.count loop
if arr_list(i) in (';', ':', 'o') then v_result :='N';
else v_result :='Y';
end if;
v_outstring := v_outstring || v_result;
end loop;
return v_outstring;
Similar Messages
-
Help....I am trying to set up iClould on my pc....the set up was complete....when I try to sign in to set up it says the Apple ID is valid but is not an iCloud account. Please help me and tell me what I am doing wrong. Thx
Hi DesCoop,
You must initiallly activate iCloud from an IOS device or a Mac. You cannot inititally activated from a PC.
Sorry.
GB -
I just want to ask if there is any way i can fix my ipod touch 4G from watar damage and i dont think that a larg amount of water have entered and the ipod isnt working at all and i tried charging it but it didnt work so please help me, and thankyou.
Probably dead if you have tried to charge it.
You should never try to charge or turn on a wet electronic device.
You should let it dry for a week or so, then try. -
I forget answer to my qustion with rescue email adrees please help me and send the answer to my main mail. Thank you very much
We are fellow users here on these forums, you're not talking to iTunes Support.
If you don't have access to your rescue email account, or you don't have one on your iTunes account, then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down this page to add/change a rescue email address for potential future use : http://support.apple.com/kb/HT5312 -
I lost my iPhone 3 days ago.. it wasn't connet to internet and I don't know how find it without the connection.. please help me and give me some advices!!
Change your passwords.
-
I need to by apps but it keeps asking for my security questions ;/ but forgot the answers to my security questions and the security/rescue email too (i dont have USA number to call please help me and send my rest to my email
You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(115668) -
Hi, my name is Mira Ćenan. I from Zagreb,Croatia.
My ICloude is locked and canot use my Phone. Please help me and answer me.
Thank you!
MiraOnly the person who initiated the Activation Lock can remove it. Contact the seller/
previous owner for assistance. There is no workaround for Activation Lock. -
Please help - Joining three tables and get row values into Column. Please help!
Hi,
There is a SourceTable1 (Employee) with Columns like EmployeeID,Name,DOB.
There is a sourcetable2 (EmployeeCode) with columns like EmployeeID,Code,Order.
There is a source table 3 #EmployeeRegioncode and its columns are (EmployeeID , RegionCode , [Order]
The target table 'EmployeeDetails' has the following details. EmployeeID,Name,DOB,Code1,Code2,Code3,Code4,regioncode1
regioncode2 ,regioncode3 ,regioncode4
The requirement is , the value of the target table columns the Code1,code2,code3 ,code4,code5 values should
be column 'Code' from Sourcetable2 where its 'Order' column is accordingly. ie) Code1 value should be the 'Code' value where [Order] column =1, and Code2 value should be the 'Code' value where [Order] =2, and so on.
Same is the case for Source table 3- 'Region code' column also for the columns regioncode1
regioncode2 ,regioncode3 ,regioncode4
Here is the DDL and Sample date for your ref.
IF OBJECT_ID('TEMPDB..#Employee') IS NOT NULL DROP TABLE #Employee;
IF OBJECT_ID('TEMPDB..#EmployeeCode') IS NOT NULL DROP TABLE #EmployeeCode;
IF OBJECT_ID('TEMPDB..#EmployeeDetails') IS NOT NULL DROP TABLE #EmployeeDetails;
---Source1
CREATE table #Employee
(EmployeeID int, Empname varchar(20), DOB date )
insert into #Employee VALUES (1000,'Sachin','1975-12-12')
insert into #Employee VALUES (1001,'Sara','1996-12-10')
insert into #Employee VALUES (1002,'Arjun','2000-12-12')
---Source2
CREATE table #EmployeeCode
(EmployeeID int, Code varchar(10), [Order] int)
insert into #EmployeeCode VALUES (1000,'AA',1)
insert into #EmployeeCode VALUES (1000,'BB',2)
insert into #EmployeeCode VALUES (1000,'CC',3)
insert into #EmployeeCode VALUES (1001,'AAA',1)
insert into #EmployeeCode VALUES (1001,'BBB',2)
insert into #EmployeeCode VALUES (1001,'CCC',3)
insert into #EmployeeCode VALUES (1001,'DDD',4)
insert into #EmployeeCode VALUES (1002,'AAAA',1)
insert into #EmployeeCode VALUES (1002,'BBBB',2)
insert into #EmployeeCode VALUES (1002,'CCCC',3)
insert into #EmployeeCode VALUES (1002,'DDDD',4)
insert into #EmployeeCode VALUES (1002,'EEEE',5)
---Source tbl 3
CREATE table #EmployeeRegioncode
(EmployeeID int, RegionCode varchar(10), [Order] int)
insert into #EmployeeRegioncode VALUES (1000,'xx',1)
insert into #EmployeeRegioncode VALUES (1000,'yy',2)
insert into #EmployeeRegioncode VALUES (1000,'zz',3)
insert into #EmployeeRegioncode VALUES (1001,'xx',1)
insert into #EmployeeRegioncode VALUES (1001,'yy',2)
insert into #EmployeeRegioncode VALUES (1001,'zz',3)
insert into #EmployeeRegioncode VALUES (1001,'xy',4)
insert into #EmployeeRegioncode VALUES (1002,'qq',1)
insert into #EmployeeRegioncode VALUES (1002,'rr',2)
insert into #EmployeeRegioncode VALUES (1002,'ss',3)
---Target
Create table #EmployeeDetails
(EmployeeID int, Code1 varchar(10), Code2 varchar(10),Code3 varchar(10),Code4 varchar(10),Code5 varchar(10) , regioncode1 varchar(10),
regioncode2 varchar(10),regioncode3 varchar(10),regioncode4 varchar(10))
insert into #EmployeeDetails VALUES (1000,'AA','BB','CC','','','xx','yy','zz','')
insert into #EmployeeDetails VALUES (1001,'AAA','BBB','CCC','DDD','','xx','yy','zz','xy')
insert into #EmployeeDetails VALUES (1002,'AAAA','BBBB','CCCC','DDDD','EEEE','qq','rr','ss','')
SELECT * FROM #Employee
SELECT * FROM #EmployeeCode
SELECT * FROM #EmployeeRegioncode
SELECT * FROM #EmployeeDetails
Can you please help me to get the desired /targetoutput? I have sql server 2008.
Your help is greatly appreciated.select a.EmployeeID,b.code1,b.code2,b.code3,b.code4,b.code5,c.Reg1,c.Reg2,c.Reg3,c.Reg4 from
#Employee a
left outer join
(select EmployeeID,max(case when [Order] =1 then Code else '' end) code1,
max(case when [Order] =2 then Code else '' end)code2,
max(case when [Order] =3 then Code else '' end)code3,
max(case when [Order] =4 then Code else '' end)code4,
max(case when [Order] =5 then Code else '' end)code5 from #EmployeeCode group by EmployeeID) b
on a.EmployeeID=b.EmployeeID
left outer join
(select EmployeeID,max(case when [Order] =1 then RegionCode else '' end) Reg1,
max(case when [Order] =2 then RegionCode else '' end)Reg2,
max(case when [Order] =3 then RegionCode else '' end)Reg3,
max(case when [Order] =4 then RegionCode else '' end)Reg4 from #EmployeeRegioncode group by EmployeeID) c
on a.EmployeeID=c.EmployeeID
Thanks
Saravana Kumar C -
Multi dimensional arrays and table indicators
I'm wondering how I can write a string array with more than two dimensions to a table. Specifically what I want to do is this:
I am currently writing a 2d array to the table. Column 1 consists of the channel names from my DAQmx task and Column two is the current data for those channels. What I am trying to do is to split that up into a '2 column view' so that:
Column 1: 1st half of the channel names
Column 2: 1st half of the data
Column 3: 2nd half of the channel names
Column 4: 2nd half of the data
Here are the steps that I've done to try and make this work:
I've split the original 2d array in half by using the 'delete from array' vi which outputs both parts that I need then putting that through the build array vi. When I do this, the data wire out of the build array vi is of type '3d array' I'm thinking it should be a 4d array and I'm not sure why it isn't. When I try and wire the table to this it will not allow it because the sink type is for 2d arrays.
Any advice or suggestions?Hi scrook,
that you get a 3D array is absolut correct. If you have two 2D array, then the next dimension is 3D. Draw a 2D array on one paper (your first part) and a 2D array on another paper (your second part). If you combine them, put one on the other you get a 3D array.
But you need a 2D array.
See the attached example, pelase.
Hope it helps.
Mike
Attachments:
table_LV80.vi 10 KB -
Please , people help.. I am novice in the Java programming and working on the following problem right now.: Using a single-subscripted array need an applet that inputs 5 numbers, each of which betwee 10 and 100, inclusive. As each number is read,display it only if it is not a duplicate of a number already read. Have to provide for the "worst case" in which all 5 numbers are different . Need a smallest possible array to solve this problem.. Please help. Sitting here and can not do anything abt it..Need code..Sincerely A.
Have you attempted to do anything at all? Why should
we help you pass a class so that you can be dead
weight on our development projects later?this is genius! amen. -
Dear Sir,
I had purchased laptop “pavalion DV4/WR717PA” on 25th august 2010 from LAPTOP WORLD ,BHILAI, Dist- DURG. My system hard drive got corrupted as stated by the service centre people. They had given 15 days time limit to replace it. The problem is that my all documents, study material and presentation have been with the corrupted HARD DICS. Your service centre engineer is telling that system is not detecting HARD DISC.
AND NO RECOVERY DVD IS GIVEN TO ME AT THE TIME OF PURCHASING LAPTOP; EVEN THEY DON’T INFORM ME THAT SUCH CD IS PROVIDED BY COMPANY…
I request to you to please get my data’s with that HARD DISC as my examinations are starting from 2nd week of June. I am helpless without that study materials’ had worked very hard on the documents and presentations. Please get me those data’s any how…. Other wise I am unable to pass this year.
I had very much on faith your company’s laptop had purchased hour’s company laptop in spite of many lo-cost laptop present in the market.
Now I am seriously disappointed on hearing from your qualified engineers that they can not get my data back, and Telling that laptop is within the warranty period and we can only replace HARD DISC.
Isn’t useless to purchase products of your company by paying high amount. Don’t let us to loose our faith on your international brand company….
Please don’t be like cheap businessmen…and telling that laptop is within the warranty period and we can only replace HARD DISC.
Don’t you have any engineers who can recover data stored in the DISC.Please understand the seriousness of the matter
But within purchase of few months a fatal problem occurred. Sir what to do if there is no means of recovering data from your system… It is the failure of your product is going to spoil my one acedimic year…
I request you to please do some thing to get me out of this situation.
Please recover data and send me the data stored to my mail ID or a send in a DVD to my address.
I am sending the details of system and hard disc to you. As corrupted hard disc is send to your company as told by the service center engineers to us. Please follow-up the HARD DISC. I am sending all details related to my system..
Please don’t disappoint me, I know that you people can definitely do it… human values are also important along with business …
With regards
Priyanka
Details
Model No: Pavilion DV4/WR717PA
Serial No: {Removed for privacy}
CASE ID: 4629610593
Hard disc No: 2BAZBCL83YMDGX
Optical Drive: 7AWPNOLVBY
Cartage: 6AQEFO5BY9W FDD-5A
Date of purchase: 25th August 2010
Dealer: “LAPTOP WORLD”, Supela, Bhilai, District DURG (CHATTISGARH)
{Personal Information Removed}Welcome to the HP Consumer Support Community. This is a peer-to-peer community for customers to connect and share solutions regarding their HP products. If you have additional or direct feedback for HP about their products or services, please use the link below.
http://welcome.hp.com/country/us/en/wwcontact_us.html
If you have other questions and concerns about using the forum, please feel free to send me a private message.
Thank you.
Clicking the "Kudos star" to the left is a great way to say thanks!
When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
Rules of Participation -
Please help me...My ipod touch 4g is having trouble with the battery. My dad brought it in a Best Buy store. I use to charge it every night... Please help when ever i play a game after its fully charged after 3 minutes it says 20% battery remains, after 30 seconds it says 10% battery remains. please help me to fix it at no coast, because we are poor and on day my dad got me this ipod touch. i love it so much.... please help!!!!! please.............
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. If defect, within warranty (it should be because of when you purchased it), and not abused Apple will exchange it.
Apple Retail Store - Genius Bar -
Bricked Pavilion Dv6 3153, please help! and conclusion
Hey all!
I need some help with a BIOS I have that I flashed the BIOS to a newer version. I flashed the BIOS using the correct file and the update was sucessfull. Somehow, after I rebooted, it will no longer post. I tried to create a bootable pendrive for bios recovery with the correct batch file and a copy of the bios file, I tried to use HP BIOS Update UEFI saved in a pendrive and a pendrive with dos system startup but it didnt seem to work.
My laptop is a HP Pavillion DV6 3153ss an the BIOS file is a Insyde F.23, the filename packaged in the HP site is sp50942.exe and the BIOS file is 01448F23.bin. After thousand attempts and a lot of reading, I concluded that I need the signed file, but I dont have because I deleted the HD recovery partition, and also i cannot acces to HD because my laptop is bricked.
I have read that some people have managed to recover BIOS with a .sig file from another laptop with the same BIOS file, and i think that this is the last chance for my computer, please someone could send me your .sig file!!!, the file named 01448.sig and is in the HP recover partition. Thanks advance, and sorry for my bad English, I'm Spanish.Hi,
Ask in here: http://forums.mydigitallife.info/threads/870-Bios-Recovery-Procedures
They helped many people recover their bricked laptops..
Dv6-7000 /Full HD/Core i5-3360M/GF 650M/Corsair 8GB/Intel 7260AC/Samsung Pro 256GB
Testing - HP 15-p000
HP Touchpad provided by HP
Currently on Debian Wheeze
*Please, help other users with the same issue by marking your solved topics as "Accept as Solution"* -
PLEASE HELP, itunes and ipod trouble!
i have upgraded to the new itunes. uploaded new music into itunes, made space to put these songs on my ipod old 15GB model. when i plugged in the ipod into my imac it made the changes i made to deselecting songs but will not upload the new songs i have put into itunes...i tried restoring my ipod and it says that there is an unknown error...what do i do?!?!?! ahhhhh please help
thanks
-tmi would like to also add that i tried making changes to teh setting of my pod like syncing all songs in the music tab in ipod settingsand its says that the ipod cannot be found!?!?! pleaaaaaaaaaaseeeeee helpppp
-tm -
ok soo, I changed to a diffrent intrenet provider, for online games. "gamer intrenet"
But now, they said I have to type those lines in L2TP to connect thier server for better ping in online games.
I typed username, password, that they gave me.
and Host Name gch.bezeqint.net
But now when I press "connect" After few refreshes im getting this error: "Can not connect to L2TP server"
They said theres nothing to do, and I need a new router. But my router is a good one new and expensive, im not going to give up, any way to fix this?
I GOT ONLY 22 HOURS TO FIX THIS!! soo please help
Sorry for bad English, I really hope you get what im trying to say!
Uprage firmware will help?
Thanks to all!
NOTE*** RIGHT NOW IM USING DHCP.
Message Edited by Igurvitz on 12-22-2008 09:02 AMI typed username password and hostname in 192.168.1.1 >> L2TP.
and my provider is Cable not DSL, or maybe both, but I have a cable... I know I can call them and make myseif L2TP by default but I have 3 pcs in my house I want them to have Intrenet of course but my router (Linksys WRT300N) doesnot want to work with L2TP
Maybe you are looking for
-
Windows no longer loads.
For the past 10 months this has worked just fine. I use the Wiondows 7 side of my machine about 15% of the time. I start up my iMac holding down the alt/option key and select the Windows partician and Windows 7 loads. That is until this week. Now
-
Hi all, I'm hoping one of you good people can help me with this. I usually try and work out things by myself and is my first time posting as this one really has me stumped. A solution would be fantastic but if I could be given a definitive answer if
-
Hello, My ear speaker has failed in my two year old iPhone 4s. As this is a hardware failure under New Zealands consumers guarantees act apple is liable and is legally obligated to replace my device. Since I ordered my phone online from the apple nz
-
Supplier Self registration Configuration Guide
Can I do Supplier (Vendor) Registration without SUS or XI? Please guide how to implement the ROS?
-
Can I change Font List preferences to not start from A...
To explain further, previously in CS6 I could scroll from say "M" down to "R" no problem; whilst also seeing a preview. Now in CC, Say I'm using Meta and want to scroll down to say Rockwell - I have to start again from A (or my most recent fonts firs