I'm lost - knock up a quick table creation script and data script for someone to work through, and bung it on OTN (https://community.oracle.com/communi...sql_and_pl_sql)
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Any PL/SQL experts here?
Collapse
X
-
Originally posted by MaryPoppinsI hadn't really understood this 'pwned' expression until I read DirtyDog's post. -
Well the recordset | have looks like this
The above recordset has a dynamic set of columns (e.g. next run there may be no TICKER column, or some additional column(s) may appear). I need to create a second recordset from this data, of a known and fixed layout and with a larger number of columns, that is the columns in the first recordset are a subset of those in the second. Columns that are in the second recordset but not the first need top be NULL.Code:INT_ID EXTERNAL_ID ISSUE_CNTRY_CD LOC_CRRNCY_CD ASSET_CRRNCY_CD TICKER (...etc) 14701 10909534 IE EUR EUR IRISH 46189 103204741 DE EUR EUR DBR 3908 10909129 NL EUR EUR NETHER 41955 63212925 LU EUR EUR LGB 45398 88455125 IE EUR EUR IRISH ... (etc)
It's the dynamic nature of the columnset that gives me the headache. The answer's probably staring me in the proverbial, but my brain isn't seeing it ...My subconscious is annoying. It's got a mind of its own.Comment
-
My subconscious is annoying. It's got a mind of its own.Comment
-
First response will be "what database version are you on?" so I'd get that in there before thatOriginally posted by pjclarke View Post
Originally posted by MaryPoppinsI hadn't really understood this 'pwned' expression until I read DirtyDog's post.Comment
-
One last go to try and get my head round it - does (for example) TICKER always go into the same column in the target table? Or is the target table something like COL1, COL2, COL3 etc and it goes into any one of those?Originally posted by MaryPoppinsI hadn't really understood this 'pwned' expression until I read DirtyDog's post.Comment
-
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Burnham's housing vision vs. Starmer's home-buying reforms: what it means for your contractor mortgage Jul 22 00:59
- In Khalil v Innovate Transport, a limited company contractor wasn’t a worker and was on £2.30 — not £230 Jul 21 07:58
- Andy Burnham is PM: 5 new IT policies set to shape UK tech and its contractors Jul 20 06:29
- Taxed on money I haven't earned yet? Bold move, HMRC Jul 17 08:36
- The Fair Work Agency has got zero hours in its sights. Do you? Jul 16 08:44
- Cookie Policy Jul 15 11:50
- Cloned again: an umbrella company founder's warning on fraud, JSL and Companies House Jul 15 07:47
- How is JSL bedding in for contractor umbrella companies, 100 days in? Jul 14 07:45
- IT contractor demand cools in June 2026 amid UK heatwave Jul 13 08:18
- How could zero hours contract reform create unexpected problems for contractors? Jul 8 06:40


Comment